text
stringlengths
11
6.3k
embedding
listlengths
768
768
func InsertPackageAggRows(ctx context.Context, db SQLHandle, rows ...*PackageAggRow) (numRows int64, err error) { numRows, err = execWithJSONArgs(ctx, db, SQLInsertPackageAggRows, rows) if err != nil { return numRows, formatError("InsertPackageAggRows", err) } return numRows, nil }
[ -1.3282743692398071, 1.5323933362960815, 0.6056420207023621, 0.15544909238815308, 0.09879795461893082, -0.08681698888540268, 0.7545620203018188, -0.2563678026199341, -0.10052690654993057, 0.6624268889427185, -0.3712520897388458, -0.49105116724967957, -0.4296192228794098, 0.9166555404663086...
func InsertReturningPackageAggRows(ctx context.Context, db SQLHandle, inputs ...*PackageAggRow) (numRows int, err error) { rows := PackageAggRows(inputs) numRows, err = queryWithJSONArgs(ctx, db, rows.ReceiveRows, SQLInsertReturningPackageAggRows, rows) if err != nil { return numRows, formatError("InsertReturningP...
[ -0.8113088011741638, 0.9813299179077148, 0.6387646794319153, 0.22827981412410736, 0.06973844021558762, -0.1747829020023346, 0.7127911448478699, -0.3157362639904022, -0.17576183378696442, 0.5445308089256287, -0.07646305859088898, -0.4191366732120514, -1.0496569871902466, 0.39131805300712585...
func FindPackageAggRows(ctx context.Context, db SQLHandle, cond PackageAggValues) (rows PackageAggRows, err error) { if _, err = queryWithJSONArgs(ctx, db, rows.ReceiveRows, SQLFindPackageAggRows, cond); err != nil { return nil, formatError("FindPackageAggRows", err) } return rows, nil }
[ -0.5285946726799011, 1.097672462463379, 0.31530559062957764, -0.17726454138755798, -0.4705933928489685, -0.1989816427230835, 0.08212941884994507, -0.8688711524009705, -0.021305309608578682, 0.5883954763412476, 0.5561498403549194, 0.18129220604896545, -0.09370826184749603, 2.159648180007934...
func DeletePackageAggRows(ctx context.Context, db SQLHandle, cond PackageAggValues) (numRows int64, err error) { if numRows, err = execWithJSONArgs(ctx, db, SQLDeletePackageAggRows, cond); err != nil { return numRows, formatError("DeletePackageAggRows", err) } return numRows, nil }
[ -0.5430934429168701, 1.1674877405166626, 0.47846829891204834, 0.08199319988489151, -0.24173453450202942, -0.02986198477447033, 0.8410208225250244, -0.22758972644805908, 0.18606536090373993, 0.36570030450820923, 0.5004031658172607, 0.32950443029403687, -0.003947997931391001, 1.4837425947189...
func CountPackageAggRows(ctx context.Context, db SQLHandle, cond PackageAggValues) (count int, err error) { if _, err = queryWithJSONArgs(ctx, db, func(int) []interface{} { return []interface{}{&count} }, SQLCountPackageAggRows, cond); err != nil { return 0, formatError("CountPackageAggRows", err) } return count, ...
[ -0.5172582864761353, 1.0043916702270508, 0.5387860536575317, 0.10603596270084381, -0.3369678854942322, 0.25083106756210327, 0.42043063044548035, -0.17765450477600098, -0.14795230329036713, 0.6810303330421448, -0.34687110781669617, 0.18423767387866974, 0.4675164818763733, 1.7189717292785645...
func (r *PackageAggRow) ReceiveRow() []interface{} { return []interface{}{&r.Data.ID, &r.Data.Name, &r.Data.Available, &r.Data.Count} }
[ -1.0007003545761108, -0.15815190970897675, 0.6565042734146118, -0.8811203241348267, -0.12150189280509949, -0.20627185702323914, -0.45860037207603455, -0.31773340702056885, 0.5954667925834656, 0.3592372536659241, -0.7929978966712952, -0.20445354282855988, 0.7931622266769409, 0.6136820912361...
func (rs *PackageAggRows) ReceiveRows(i int) []interface{} { if len(*rs) <= i { *rs = append(*rs, new(PackageAggRow)) } else if (*rs)[i] == nil { (*rs)[i] = new(PackageAggRow) } return (*rs)[i].ReceiveRow() }
[ -0.8935220241546631, 0.49822819232940674, 0.5809674859046936, -0.2773200273513794, -0.026558302342891693, -0.9326090216636658, 0.37270045280456543, -0.519413948059082, 1.1469825506210327, 0.5699264407157898, -0.22352366149425507, -0.23801088333129883, -0.33108559250831604, 0.50037950277328...
func (ks Keys) Unique() (uks Keys) { seen := make(map[interface{}]struct{}, len(ks)) uks = make(Keys, 0, len(uks)) for _, k := range ks { if _, ok := seen[k]; !ok && k != nil { seen[k] = struct{}{} uks = append(uks, k) } } return uks }
[ -1.0365830659866333, 0.07038049399852753, 0.5276482105255127, -0.5150066018104553, -0.25817999243736267, -0.3924258351325989, -0.1338684856891632, -0.009130104444921017, 0.4609561264514923, 0.7005593180656433, -0.8769945502281189, 0.13566964864730835, -0.21017250418663025, 0.52217406034469...
func Read(path string, records [][]string) ([][]string, error) { //Make sure the file exists _, err := os.Stat(path) if os.IsNotExist(err) { err = fmt.Errorf("file: %s does not exist", path) return records, err } //Open the file file, err := os.Open(path) if err != nil { return records, err } defer file...
[ 0.32758423686027527, -0.3013075888156891, 0.6857256293296814, -0.32818853855133057, 0.02842020057141781, 0.07073885947465897, -0.081087127327919, 0.11526840180158615, -0.6666523218154907, 0.8403236865997314, 0.7768185138702393, 0.05826517939567566, -0.8304376006126404, 0.06125892698764801,...
func (e *Hosts) Call(ctx context.Context, req *hosts.Request, rsp *hosts.Response) error { log.Log("Received Hosts.Call request") rsp.Msg = "Hello " + req.Name return nil }
[ -0.7332320213317871, 0.2771740257740021, 0.4459874927997589, 0.15046072006225586, 0.2946228086948395, 1.0859732627868652, -0.9481493234634399, -0.42901793122291565, -0.2270483672618866, 0.10849329829216003, 0.35977238416671753, 0.6293179392814636, -0.11797014623880386, 0.6828999519348145, ...
func (e *Hosts) Stream(ctx context.Context, req *hosts.StreamingRequest, stream hosts.Hosts_StreamStream) error { log.Logf("Received Hosts.Stream request with count: %d", req.Count) for i := 0; i < int(req.Count); i++ { log.Logf("Responding: %d", i) if err := stream.Send(&hosts.StreamingResponse{ Count: int64...
[ -0.7838835120201111, 0.6461480855941772, 0.5518733263015747, 0.4054139256477356, 0.37360870838165283, 0.5365710854530334, 0.7347265481948853, -0.42115670442581177, -0.47085040807724, -0.4902387261390686, 0.38965171575546265, 0.46458837389945984, 0.1803886890411377, 0.8451467752456665, -0...
func (e *Hosts) PingPong(ctx context.Context, stream hosts.Hosts_PingPongStream) error { for { req, err := stream.Recv() if err != nil { return err } log.Logf("Got ping %v", req.Stroke) if err := stream.Send(&hosts.Pong{Stroke: req.Stroke}); err != nil { return err } } }
[ -0.06267937272787094, 0.3894749581813812, 0.549997091293335, -0.2827538847923279, 0.4118979573249817, 0.3115348815917969, -0.14495879411697388, 0.64711993932724, -0.9352338910102844, 0.5203301906585693, -0.43355268239974976, 0.3547893166542053, -0.003597133792936802, 1.0525031089782715, ...
func NormalizeJsonString(jsonString interface{}) (string, error) { var j interface{} if jsonString == nil || jsonString.(string) == "" { return "", nil } s := jsonString.(string) err := json.Unmarshal([]byte(s), &j) if err != nil { return s, err } bytes, _ := json.Marshal(j) return string(bytes[:]), ni...
[ -0.038802798837423325, 0.3197581470012665, 0.6224914193153381, -0.6088483333587646, -0.9836097359657288, -0.6163143515586853, 0.20346859097480774, -0.3327602744102478, 1.2393735647201538, 0.10240957885980606, 0.42382851243019104, 0.34401237964630127, -0.3876357972621918, -0.073011852800846...
func IndexDir(dir string) ([]Entry, error) { dir = filepath.Clean(dir) var e []Entry wf := func(path string, info os.FileInfo, err error) error { if err != nil { return err } if info.IsDir() { return nil } relpath := path[len(dir)+1:] if isIgnoredFile(relpath) { return nil } d, err := enja.L...
[ -0.12832359969615936, 0.1277821660041809, 0.6493585109710693, 0.13726244866847992, -0.8142303824424744, 0.08552470058202744, 0.9259462356567383, 0.031063543632626534, 0.33468863368034363, 0.399130642414093, 0.6656513214111328, 0.09970439970493317, -0.3792313039302826, 0.46738699078559875, ...
func docEntry(path string, d enja.Document) (e Entry, err error) { ext := filepath.Ext(path) e.Path = path[:len(path)-len(ext)] if v := d.Header["title"]; v != "" { e.Title = v } else { return e, errors.New("missing title") } if v := d.Header["published"]; v != "" { e.Published = v } if v := d.Header["mod...
[ 0.3779282867908478, -0.33141496777534485, 0.6686605215072632, -0.4431360960006714, -0.5892808437347412, 0.03970801830291748, -0.059212591499090195, 0.26485559344291687, 0.08758074045181274, 0.4677038788795471, 0.8119388818740845, 0.45612967014312744, 0.27665799856185913, -0.092859998345375...
func Name(g *game.T, seat *game.Seat, trigger string) []game.Stater { events := make([]game.Stater, 0) log := g.Log().With(cast.JSON{ "Seat": seat.Username, "Trigger": trigger, }).Tag("game/trigger/name") for _, t := range seat.Present { if e := g.Runtime.Service.Trigger(g, seat, t, trigger, t); len(e) > 0...
[ -0.7759684920310974, -0.5735369324684143, 0.718798041343689, -0.49533355236053467, -0.5196577906608582, -1.0380569696426392, -0.7489989399909973, -0.3068789541721344, -0.5492551922798157, 1.62562096118927, -0.9159961938858032, -0.5301132202148438, 0.5956631898880005, 0.10433833301067352, ...
func (plugin *Plugin) Add(args *cniSkel.CmdArgs) error { // Parse network configuration. netConfig, err := config.New(args) if err != nil { log.Errorf("Failed to parse netconfig from args: %v.", err) return err } log.Infof("Executing ADD with netconfig: %+v ContainerID:%v Netns:%v IfName:%v Args:%v.", netCo...
[ -0.3307168483734131, 0.1501339226961136, 0.9285547137260437, 0.4161214530467987, 1.5009262561798096, -0.0782918706536293, 0.1241382583975792, 0.02243964374065399, 0.27127036452293396, 0.08172623068094254, -0.027982208877801895, -0.3723739683628082, 0.12040220201015472, 0.4003095030784607, ...
func (plugin *Plugin) Del(args *cniSkel.CmdArgs) error { // Parse network configuration. netConfig, err := config.New(args) if err != nil { log.Errorf("Failed to parse netconfig from args: %v.", err) return err } log.Infof("Executing DEL with netconfig: %+v ContainerID:%v Netns:%v IfName:%v Args:%v.", netCo...
[ 0.3858029246330261, -0.24919842183589935, 0.8930152654647827, 0.3684166371822357, 0.6792383790016174, 0.5124178528785706, 0.4632211923599243, 0.20613384246826172, -0.0268325824290514, 0.2460748255252838, -0.006401204504072666, -0.47200721502304077, 0.2323445826768875, -0.1444285362958908, ...
func (m *ClusterTemplateRequest) Validate(formats strfmt.Registry) error { var res []error if err := m.validateCloudPlatform(formats); err != nil { res = append(res, err) } if err := m.validateDescription(formats); err != nil { res = append(res, err) } if err := m.validateName(formats); err != nil { res ...
[ -0.9375330805778503, 0.47173386812210083, 0.33710944652557373, -0.06721529364585876, -0.28710389137268066, -0.5093941688537598, 0.17085187137126923, -0.3247775435447693, -0.7768720984458923, 0.5572702884674072, 0.05432860925793648, 0.3900938332080841, -0.7396923303604126, 1.173230290412902...
func (p Person) greet() string { return "Hello I'm " + p.firstName + " " + p.lastName + " and I'm " + strconv.Itoa(p.age) }
[ -0.2445579171180725, -0.9963243007659912, 0.6715368628501892, -0.9161235690116882, -0.7263098955154419, 1.325508713722229, -1.349532961845398, 0.2845613956451416, -0.4180131256580353, -0.4140084385871887, 0.026043690741062164, 0.028858978301286697, -0.10942551493644714, 0.4654003381729126,...
func (p *Person) hasBirthday() { p.age++ }
[ 0.5779611468315125, -0.02136036567389965, 0.6156975030899048, 0.6686555743217468, 1.0056957006454468, 0.28573301434516907, -0.05827547237277031, 0.37978968024253845, -0.6720841526985168, -1.1959346532821655, -0.7074541449546814, -0.6881292462348938, 0.3591235280036926, 1.3692175149917603, ...
func (mr *metaindexRow) Reset() { mr.TSID = TSID{} mr.BlockHeadersCount = 0 mr.MinTimestamp = (1 << 63) - 1 mr.MaxTimestamp = -1 << 63 mr.IndexBlockOffset = 0 mr.IndexBlockSize = 0 }
[ -0.6139041185379028, 0.6236250400543213, 0.24964739382266998, -0.12200052291154861, -0.2542121708393097, -0.6809774041175842, 0.22067447006702423, -0.5239152312278748, 0.012295706197619438, 0.36594364047050476, -0.17091621458530426, 0.6903343796730042, -0.14061789214611053, -0.349270343780...
func (mr *metaindexRow) RegisterBlockHeader(bh *blockHeader) { mr.BlockHeadersCount++ if mr.BlockHeadersCount == 1 { mr.TSID = bh.TSID mr.MinTimestamp = bh.MinTimestamp mr.MaxTimestamp = bh.MaxTimestamp return } if bh.MinTimestamp < mr.MinTimestamp { mr.MinTimestamp = bh.MinTimestamp } if bh.MaxTimesta...
[ -0.8719563484191895, 0.7124748826026917, 0.8028926849365234, 0.6468856930732727, 0.467938095331192, -0.5562813878059387, -0.7215930819511414, -0.7882694005966187, 0.13533277809619904, 0.4607484042644501, -0.5645160675048828, 0.3081090748310089, -0.4368727207183838, 0.2559489607810974, 0....
func (mr *metaindexRow) Marshal(dst []byte) []byte { dst = mr.TSID.Marshal(dst) dst = encoding.MarshalUint32(dst, mr.BlockHeadersCount) dst = encoding.MarshalInt64(dst, mr.MinTimestamp) dst = encoding.MarshalInt64(dst, mr.MaxTimestamp) dst = encoding.MarshalUint64(dst, mr.IndexBlockOffset) dst = encoding.MarshalU...
[ 0.06498987227678299, 0.856960117816925, 0.24224931001663208, -0.45265984535217285, -0.9885328412055969, 0.08343759179115295, -1.0270365476608276, -0.06841670721769333, 0.4554959237575531, -0.09688282012939453, 0.00617462070658803, 0.9407935738563538, 0.572891354560852, 0.255596399307251, ...
func (mr *metaindexRow) Unmarshal(src []byte) ([]byte, error) { // Unmarshal TSID tail, err := mr.TSID.Unmarshal(src) if err != nil { return src, fmt.Errorf("cannot unmarshal TSID: %w", err) } src = tail // Unmarshal BlockHeadersCount if len(src) < 4 { return src, fmt.Errorf("cannot unmarshal BlockHeadersCo...
[ -0.20869167149066925, 0.5555081367492676, 0.78424471616745, -0.6958006024360657, -1.1123912334442139, -1.0044479370117188, 0.2861310839653015, 0.132718026638031, 0.39707812666893005, 0.23060941696166992, -0.2511042058467865, 0.2743488848209381, -0.06528761982917786, -0.11841816455125809, ...
func newClient(auth azure.Authorizer) *azureClient { c := newPrivateZonesClient(auth.SubscriptionID(), auth.BaseURI(), auth.Authorizer()) v := newVirtualNetworkLinksClient(auth.SubscriptionID(), auth.BaseURI(), auth.Authorizer()) r := newRecordSetsClient(auth.SubscriptionID(), auth.BaseURI(), auth.Authorizer()) ret...
[ 0.6253429055213928, -0.352344274520874, 0.4811997413635254, 0.7001479864120483, -0.8437104821205139, 0.015570126473903656, 0.07169972360134125, -0.3319830596446991, 0.5990118980407715, -0.34126996994018555, 0.8784416913986206, 1.1354763507843018, -0.24710451066493988, -0.06807555258274078,...
func newPrivateZonesClient(subscriptionID string, baseURI string, authorizer autorest.Authorizer) privatedns.PrivateZonesClient { zonesClient := privatedns.NewPrivateZonesClientWithBaseURI(baseURI, subscriptionID) azure.SetAutoRestClientDefaults(&zonesClient.Client, authorizer) return zonesClient }
[ -0.08622054010629654, 0.022290855646133423, -0.1774613857269287, 0.4931972920894623, -0.6138877272605896, -1.0255765914916992, 0.14669755101203918, -0.8820326328277588, 0.7699234485626221, 0.040558237582445145, -1.147563099861145, 1.0139594078063965, -0.6945353746414185, -0.437356442213058...
func newVirtualNetworkLinksClient(subscriptionID string, baseURI string, authorizer autorest.Authorizer) privatedns.VirtualNetworkLinksClient { linksClient := privatedns.NewVirtualNetworkLinksClientWithBaseURI(baseURI, subscriptionID) azure.SetAutoRestClientDefaults(&linksClient.Client, authorizer) return linksClien...
[ 0.12005529552698135, -0.01743478700518608, -0.13929370045661926, -0.07615520060062408, -0.33733445405960083, -0.6716576218605042, -0.9756333827972412, -0.09478514641523361, 0.2599336802959442, -0.6129928231239319, -0.27362656593322754, 0.6444256901741028, -0.7531583905220032, 0.01518008485...
func newRecordSetsClient(subscriptionID string, baseURI string, authorizer autorest.Authorizer) privatedns.RecordSetsClient { recordsClient := privatedns.NewRecordSetsClientWithBaseURI(baseURI, subscriptionID) azure.SetAutoRestClientDefaults(&recordsClient.Client, authorizer) return recordsClient }
[ 0.19293291866779327, 0.5194123983383179, 0.2666671872138977, 0.16829483211040497, -0.6405576467514038, -0.7959511876106262, 0.16222217679023743, -0.8421996235847473, 0.035961415618658066, -0.48927998542785645, -0.1878507137298584, 1.9915566444396973, -0.0981714278459549, -0.281944662332534...
func (ac *azureClient) GetZone(ctx context.Context, resourceGroupName, zoneName string) (privatedns.PrivateZone, error) { ctx, _, done := tele.StartSpanWithLogger(ctx, "privatedns.AzureClient.GetZone") defer done() zone, err := ac.privatezones.Get(ctx, resourceGroupName, zoneName) if err != nil { return privatedn...
[ -0.8455561399459839, 0.620079517364502, 0.2567836344242096, 0.049766574054956436, 0.050527919083833694, -0.7335992455482483, 0.773344874382019, -1.2490170001983643, 0.6426947712898254, -0.6230716109275818, 0.4623943865299225, 0.9449072480201721, -1.211840271949768, -0.038280587643384933, ...
func (ac *azureClient) CreateOrUpdateZone(ctx context.Context, resourceGroupName string, zoneName string, zone privatedns.PrivateZone) error { ctx, _, done := tele.StartSpanWithLogger(ctx, "privatedns.AzureClient.CreateOrUpdateZone") defer done() future, err := ac.privatezones.CreateOrUpdate(ctx, resourceGroupName, ...
[ -1.0542081594467163, 0.23718278110027313, 0.2662377655506134, -0.6589332222938538, 0.28503140807151794, 0.2898635268211365, 0.09042074531316757, -0.6020001769065857, 1.0326138734817505, 0.09608718752861023, -0.152258038520813, -0.41115063428878784, -1.0216225385665894, 0.26973772048950195,...
func (ac *azureClient) DeleteZone(ctx context.Context, resourceGroupName, name string) error { ctx, _, done := tele.StartSpanWithLogger(ctx, "privatedns.AzureClient.DeleteZone") defer done() future, err := ac.privatezones.Delete(ctx, resourceGroupName, name, "") if err != nil { return err } err = future.WaitFo...
[ -0.8455116748809814, 0.727119505405426, 0.2794220745563507, -0.4680023193359375, -0.2866208553314209, -0.3776479959487915, 0.8026677370071411, -0.6180917620658875, 0.6288865208625793, -0.6647956967353821, -0.03703135624527931, 0.40339556336402893, -1.2847366333007812, 0.349724680185318, ...
func (ac *azureClient) GetLink(ctx context.Context, resourceGroupName, zoneName, vnetLinkName string) (privatedns.VirtualNetworkLink, error) { ctx, _, done := tele.StartSpanWithLogger(ctx, "privatedns.AzureClient.GetLink") defer done() vnetLink, err := ac.vnetlinks.Get(ctx, resourceGroupName, zoneName, vnetLinkName)...
[ 0.03040424920618534, 0.5162050127983093, 0.15943056344985962, 0.3278461694717407, 0.16008718311786652, -0.2288048267364502, -0.25467735528945923, -1.0862712860107422, 0.6185448169708252, 0.03623729571700096, 0.45020151138305664, 1.0110269784927368, -0.779961109161377, 0.009220876730978489,...
func (ac *azureClient) CreateOrUpdateLink(ctx context.Context, resourceGroupName, privateZoneName, name string, link privatedns.VirtualNetworkLink) error { ctx, _, done := tele.StartSpanWithLogger(ctx, "privatedns.AzureClient.CreateOrUpdateLink") defer done() future, err := ac.vnetlinks.CreateOrUpdate(ctx, resource...
[ -0.7553958892822266, 0.21095386147499084, 0.20089444518089294, -0.11901432275772095, 0.13098262250423431, 0.6026461720466614, -0.6065986156463623, -0.4041764438152313, 0.563642680644989, 0.2172134816646576, -0.15189191699028015, -0.48472246527671814, -0.5712108016014099, 0.3689626455307007...
func (ac *azureClient) DeleteLink(ctx context.Context, resourceGroupName, privateZoneName, name string) error { ctx, _, done := tele.StartSpanWithLogger(ctx, "privatedns.AzureClient.DeleteLink") defer done() future, err := ac.vnetlinks.Delete(ctx, resourceGroupName, privateZoneName, name, "") if err != nil { ret...
[ -0.21078385412693024, 0.37468263506889343, 0.23692435026168823, -0.025245310738682747, 0.036718156188726425, 0.057426851242780685, 0.04409424215555191, -0.5246614813804626, 0.5574477314949036, -0.49588313698768616, 0.09160571545362473, 0.697710394859314, -0.8727360963821411, 0.428456068038...
func (ac *azureClient) CreateOrUpdateRecordSet(ctx context.Context, resourceGroupName string, privateZoneName string, recordType privatedns.RecordType, name string, set privatedns.RecordSet) error { ctx, _, done := tele.StartSpanWithLogger(ctx, "privatedns.AzureClient.CreateOrUpdateRecordSet") defer done() _, err :...
[ -0.832036018371582, -0.13445179164409637, 0.32162559032440186, -0.8416425585746765, 0.03392757102847099, 0.36217889189720154, -0.24608416855335236, -1.0500625371932983, 0.35130220651626587, 0.7142565846443176, 0.3650490641593933, 0.10600898414850235, -1.0115362405776978, 0.0247889328747987...
func (ac *azureClient) DeleteRecordSet(ctx context.Context, resourceGroupName string, privateZoneName string, recordType privatedns.RecordType, name string) error { ctx, _, done := tele.StartSpanWithLogger(ctx, "privatedns.AzureClient.DeleteRecordSet") defer done() _, err := ac.recordsets.Delete(ctx, resourceGroupN...
[ -0.28857651352882385, 0.1936814785003662, 0.2575903832912445, -0.39579474925994873, -0.05504801869392395, -0.32321104407310486, 0.408168762922287, -1.1961982250213623, 0.20943833887577057, -0.5458695888519287, 0.30546146631240845, 1.2068673372268677, -1.185525894165039, 0.14649811387062073...
func Primitive(name string, fun PrimitiveFunction, result *Object, args []*Object, rest *Object, defaults []*Object, keys []*Object) *Object { // the rest type indicates arguments past the end of args will all have the given type. the length must be checked by primitive // -> they are all optional, then. So, (<any>+)...
[ -0.5657060146331787, 0.4517737329006195, 0.648529589176178, 0.16613662242889404, -0.13682042062282562, -0.7493953108787537, -0.8650102019309998, -0.28696408867836, -0.470449298620224, -0.11234626173973083, -0.5815253853797913, 0.23684819042682648, -0.7423028945922852, -0.4767550230026245, ...
func (vm *vm) instrumentedExec(code *Code, env *frame) (*Object, error) { stack := make([]*Object, vm.stackSize) // stack sp := vm.stackSize // stack pointer ops := code.ops // opcodes pc := 0 // program counter var err error // error for { op := ops[pc] if op == opcodeCall { // CALL // println("call") i...
[ 0.03510133549571037, 0.7169855237007141, 1.1638869047164917, 0.6777567863464355, -0.19107851386070251, -0.4834419786930084, 0.14767350256443024, -0.8234710097312927, -0.20319795608520508, 0.9732060432434082, 0.40910300612449646, 0.44098541140556335, -0.4439586400985718, 0.148032546043396, ...
func Crawl(url string, depth int, f fetcher) { ch := make(chan message) m := &mapSafe{m: make(map[string]byte)} go crawl(url, depth, f, ch, m) var r message cnt := 1 for { r = <-ch if !r.Nil() { fmt.Println(r) } cnt += r.Cnt - 1 if cnt <= 0 { return } } }
[ -0.30966997146606445, 0.8270055055618286, 0.6864567995071411, 0.03230198845267296, 0.18642106652259827, -0.3482680916786194, 1.309380054473877, -0.5285338163375854, -1.1726107597351074, -0.8999364972114563, 0.0219923984259367, 0.4443533420562744, 0.009683498181402683, 0.30252906680107117, ...
func NewBuiltinFunctionOperator( allocator *colmem.Allocator, evalCtx *tree.EvalContext, funcExpr *tree.FuncExpr, columnTypes []*types.T, argumentCols []int, outputIdx int, input colexecop.Operator, ) (colexecop.Operator, error) { switch funcExpr.ResolvedOverload().SpecializedVecBuiltin { case tree.SubstringSt...
[ -0.6016777157783508, -0.21445898711681366, 0.3888756334781647, 0.35134515166282654, -0.5372782349586487, -0.9214151501655579, 0.3961159884929657, 0.21459071338176727, -0.18672685325145721, -0.29635685682296753, -0.11811654269695282, 0.17158089578151703, -0.03068302944302559, -0.71198475360...
func (c Config) Media() string { // Return path with strings replaced, trailing slash removed, // tilde replaced with current user's home directory return path.Clean(common.ExpandHomeDir(c.MediaFolder)) }
[ -0.38614708185195923, -0.16399520635604858, 0.1264672726392746, 1.2648683786392212, -0.4246724247932434, 0.6507714986801147, 0.7945452928543091, 0.6397971510887146, -0.01772846095263958, 0.054725296795368195, 1.4003124237060547, -0.12036146223545074, -0.949851930141449, 1.1699012517929077,...
func (s *BoolStack) Pop() bool { if s.sp < 0 { return false } r := s.data[s.sp] s.data = s.data[:s.sp] s.sp-- return r }
[ -0.33047521114349365, 0.5837958455085754, 0.5614166855812073, -0.19457241892814636, -1.1251426935195923, 0.2451137900352478, 0.5324272513389587, -0.1802220195531845, -0.2341109663248062, 1.0644177198410034, -0.5844120383262634, -0.2890455722808838, -0.9317066073417664, -0.5313448905944824,...
func (s *BoolStack) Push(b bool) { s.sp++ s.data = append(s.data, b) }
[ 0.09723582863807678, 1.0236488580703735, 0.20151063799858093, 0.6404274106025696, -0.12936101853847504, 0.6104100346565247, -0.14860674738883972, -0.11197720468044281, -0.15594850480556488, 0.6331408023834229, -1.3241636753082275, 0.9899695515632629, -0.28374382853507996, 0.119366198778152...
func NewStack() (stack *BoolStack, release func()) { b := pool.Get().(*BoolStack) if b.sp > -1 { b.sp = -1 b.data = b.data[:0] } return b, func() { pool.Put(b) } }
[ -0.34810614585876465, 0.13725152611732483, 0.4874727427959442, 0.5022689700126648, -0.13701064884662628, -0.9213401675224304, 0.28501471877098083, -0.4148365557193756, -0.15567070245742798, 0.9886361956596375, -0.5970801711082458, 1.1403459310531616, -0.20279856026172638, -0.36870986223220...
func (c *Cow) Shout() string { return "Muuu" }
[ 0.2599281966686249, 0.4813709259033203, 0.44642889499664307, 0.6420178413391113, -0.4293552339076996, 0.7101590633392334, -0.7010850310325623, -0.5890504717826843, -0.3428976237773895, -0.6630969643592834, -0.6312163472175598, 0.7584266066551208, -0.581506609916687, 0.602264404296875, 0....
func (d *Dog) Shout() string { return "Rau rau!" }
[ -0.03650909289717674, 0.23193491995334625, 0.3953128159046173, -0.1318815052509308, -0.13893574476242065, 0.8703166842460632, -1.3585166931152344, -0.0021751211024820805, 0.30465495586395264, -0.9205442070960999, -0.18064750730991364, 0.9275763630867004, -0.6472043395042419, 0.389197438955...
func NewSeriesKey(measurement string) SeriesKey { return SeriesKey{Measurement: measurement} }
[ 0.19593524932861328, -0.1117388904094696, 0.006524214055389166, 0.654600977897644, -1.371692180633545, -0.09244896471500397, 0.016703186556696892, -0.7911092042922974, 0.47483861446380615, 0.42248454689979553, -0.5564216375350952, 1.200421929359436, 0.08291424810886383, -0.0285672899335622...
func (s SeriesKey) WithTag(key, value string) SeriesKey { s.Tags = s.Tags.Set(key, value) return s }
[ 0.16340743005275726, 0.14310504496097565, 0.38087037205696106, -0.3431701064109802, -0.32657894492149353, 0.11104945838451385, -0.30883949995040894, -0.172787144780159, -0.4320329427719116, 0.5341708660125732, -0.45474886894226074, -0.25511202216148376, 0.90968257188797, 0.1907919794321060...
func (s SeriesKey) WithTags(tags ...SeriesTag) SeriesKey { s.Tags = s.Tags.SetTags(tags...) return s }
[ 0.2750824987888336, 0.4916711151599884, 0.14599831402301788, -0.026335231959819794, -0.09888537228107452, -0.42648154497146606, -0.5785921812057495, -1.0219110250473022, -0.09580130130052567, -0.20701761543750763, -0.3300647735595703, 0.06645030528306961, 0.7249089479446411, 0.222683370113...
func (s SeriesKey) String() string { var builder strings.Builder writeMeasurement(&builder, s.Measurement) if s.Tags.Len() > 0 { builder.WriteByte(',') builder.WriteString(s.Tags.String()) } return builder.String() }
[ 0.38194018602371216, -0.23402342200279236, 0.23247098922729492, -0.6136871576309204, -0.1932094842195511, 0.06463505327701569, 0.17397885024547577, -1.4400956630706787, -0.14187510311603546, 0.42750677466392517, 0.08982759714126587, 0.48565375804901123, -0.12005741894245148, 0.286324709653...
func Collect(mon StatSource) map[string]float64 { rv := make(map[string]float64) mon.Stats(func(key SeriesKey, field string, val float64) { rv[key.WithField(field)] = val }) return rv }
[ 0.1228221133351326, 0.14178062975406647, 0.3515717685222626, -0.8935167789459229, -0.5122475624084473, 0.03891609236598015, -0.1575811803340912, -1.0278617143630981, -0.24747887253761292, 0.14975327253341675, 0.04897478222846985, 0.28589528799057007, 1.8824894428253174, 1.1961934566497803,...
func InitServer(srv *server.Server, opt Options) { pb.RegisterRecorderServer(srv.PRPC, &pb.DecoratedRecorder{ Service: &recorderServer{Options: &opt}, Prelude: internal.CommonPrelude, Postlude: internal.CommonPostlude, }) }
[ -1.0761646032333374, 0.2990286350250244, 0.7730762362480164, 0.4558477997779846, 0.7760323882102966, 0.38617604970932007, -0.20689858496189117, 0.6071921586990356, 0.5983268022537231, -0.0905781015753746, -0.696677029132843, 1.4030609130859375, -1.4109551906585693, 1.1729793548583984, 0....
func (u *upstream) callGeoProxyAPI() { geoProxyData, err := u.APIClient.GetGeoProxyData() if err != nil { log.WithError(err).WithFields(log.Fields{"geoProxyBackend": u.geoProxyBackend}).Error("Geo Proxy: Unable to determine Geo Proxy URL. Fallback on cached value.") return } hasProxyDataChanged := false if u....
[ -0.4800701141357422, -0.17166538536548615, 0.6464149355888367, -0.35758793354034424, -0.6302321553230286, 0.6702257394790649, -0.7459677457809448, -0.38843104243278503, -0.027719516307115555, 0.8330940008163452, -0.27392053604125977, 0.44116130471229553, -0.7968118786811829, 0.342658340930...
func TestDecode(t *testing.T) { tearDown := setUp(t) defer tearDown(t) data := packet.Serialize() newPkt, err := Decode(data, &net.UDPAddr{}) assert.NoError(t, err) // Ensure the new packet serializes the same newData := newPkt.Serialize() assert.Equal(t, data, newData) }
[ -0.2819833755493164, 0.26415425539016724, 0.4252643287181854, -0.10653465241193771, 0.5307935476303101, 0.10969322919845581, -0.3751451075077057, 0.44489791989326477, 1.2542232275009155, -1.8019754886627197, -0.6215610504150391, -0.042471226304769516, -0.8349179029464722, -0.74893528223037...
func TestPacket_Serialize(t *testing.T) { tearDown := setUp(t) defer tearDown(t) data := packet.Serialize() assert.Equal(t, []byte{0x21, 0x31}, data[0:2]) assert.Equal(t, uint16(len(payload)+32), binary.BigEndian.Uint16(data[2:4])) assert.Equal(t, uint32(0), binary.BigEndian.Uint32(data[4:8])) assert.Equal(t, u...
[ -0.2020348608493805, 0.9672216176986694, 0.47008275985717773, -1.1047649383544922, 0.35115155577659607, -0.19891619682312012, -0.13273485004901886, -0.7149728536605835, 0.5134603381156921, -0.9986910223960876, -1.0024105310440063, -0.059073686599731445, -0.6934964060783386, -0.311390578746...
func TestPacket_CalcChecksum(t *testing.T) { tearDown := setUp(t) defer tearDown(t) chk, err := packet.CalcChecksum() assert.NoError(t, err) assert.Equal(t, []byte{0x41, 0x7a, 0x35, 0xb4, 0x21, 0x5c, 0x64, 0xad, 0xd5, 0xe0, 0xcd, 0x3f, 0x51, 0x47, 0xf5, 0xc2}, chk) }
[ 0.833679735660553, 0.21516691148281097, 0.6837505102157593, -0.3094952702522278, 0.5659689903259277, 0.37417492270469666, 0.5951802730560303, 0.1335887908935547, 0.5102872252464294, -0.6444509029388428, -1.13164484500885, -0.5426505208015442, -0.5532680153846741, 0.13591289520263672, -0....
func TestPacket_WriteChecksum(t *testing.T) { tearDown := setUp(t) defer tearDown(t) packet.Header.Checksum = bytes.Repeat([]byte{0xFF}, checksumLengthBytes) chk, err := packet.CalcChecksum() assert.NoError(t, err) err = packet.WriteChecksum() assert.NoError(t, err) assert.Equal(t, chk, packet.Header.Checksu...
[ -0.01137857511639595, -0.33638274669647217, 0.45910829305648804, -0.24178333580493927, 1.627232313156128, 0.017929470166563988, 0.21383796632289886, 0.33856627345085144, 0.6001974940299988, -1.1812025308609009, -0.9682484269142151, -0.23340816795825958, -0.19939494132995605, -0.11044228076...
func TestPacket_DataLength(t *testing.T) { tearDown := setUp(t) defer tearDown(t) assert.Equal(t, len(payload), packet.DataLength()) }
[ 0.44123274087905884, 0.953942060470581, 0.025376254692673683, -1.2039815187454224, 0.5122984051704407, 0.8164175748825073, -0.6319130659103394, 0.20829011499881744, 0.7166304588317871, -0.9227690696716309, -1.3357230424880981, 0.010345155373215675, 0.4246664345264435, 0.002620343817397952,...
func TestPacket_VerifyFail1(t *testing.T) { tearDown := setUp(t) defer tearDown(t) err := packet.WriteChecksum() assert.NoError(t, err) // Mutate the checksum packet.Header.Checksum[0]++ err = packet.Verify(deviceToken) assert.NotNil(t, err) }
[ 0.232576385140419, 0.9990741610527039, 0.24865002930164337, 0.7142826318740845, 1.0089346170425415, 0.10648654401302338, -0.21494339406490326, -0.10299118608236313, 0.5519334077835083, -1.20023775100708, -1.3594155311584473, 0.05055056884884834, 0.07525338232517242, 0.20961414277553558, ...
func TestPacket_VerifyFail2(t *testing.T) { tearDown := setUp(t) defer tearDown(t) err := packet.WriteChecksum() assert.NoError(t, err) // Mutate the data packet.Data[0]++ err = packet.Verify(deviceToken) assert.NotNil(t, err) }
[ 0.26718956232070923, 0.9332086443901062, 0.20276309549808502, 0.4010516405105591, 1.070352554321289, -0.17641186714172363, -0.2598933279514313, -0.2768413722515106, 0.3448232412338257, -1.4826416969299316, -1.5479692220687866, 0.3853258490562439, 0.23038829863071442, 0.16571542620658875, ...
func TestPacket_VerifySuccess(t *testing.T) { tearDown := setUp(t) defer tearDown(t) err := packet.WriteChecksum() assert.NoError(t, err) err = packet.Verify(deviceToken) assert.NoError(t, err) }
[ 0.18995900452136993, 0.8062402606010437, 0.22873452305793762, 0.38230690360069275, 0.9481382966041565, 0.5565630197525024, -0.24508744478225708, 0.2845243215560913, 0.34224700927734375, -1.1583497524261475, -1.3585950136184692, 0.04753345996141434, 0.11251980066299438, -0.19328905642032623...
func TestPacket_VerifyNoMutation(t *testing.T) { tearDown := setUp(t) defer tearDown(t) packet.WriteChecksum() before := packet.Serialize() packet.Verify(deviceToken) after := packet.Serialize() assert.Equal(t, before, after) }
[ -0.531845211982727, 0.6573594212532043, 0.11543433368206024, 0.27515506744384766, 0.9302206039428711, 0.09109241515398026, 0.30357232689857483, -0.09113200753927231, 0.6232684850692749, -1.6875152587890625, -1.3816797733306885, 0.32554948329925537, -0.778498113155365, 0.1920512169599533, ...
func Decompress(b AbstractBlob) AbstractBlob { if b==nil || !b.IsDirect() { return b } lzb,ok := b.(*BlobLz4Compressed) if !ok { return b } l := lzb.UCLen if l>0x7E000000 { return nil } buf := make([]byte,l) i,e := lz4.UncompressBlock(lzb.Lz4Content,buf,0) if e!=nil { return nil } if i<l { buf = buf[:i] } ...
[ 1.012714147567749, -0.4017816483974457, 0.7925371527671814, 0.17338912189006805, -0.9796268939971924, -0.0916353166103363, 0.761601448059082, -0.17071707546710968, -0.32170426845550537, -0.7701794505119324, -0.9029883742332458, -0.6195666790008545, -1.3992254734039307, 0.05002151057124138,...
func NewGRPCClientConn(opts *Options) (*grpc.ClientConn, error) { if opts.Addr == nil { return nil, errors.New("internal/grpc: connection address required") } connAddr := opts.Addr.Host // no colon exists in the connection string, assume one must be added manually if _, _, err := net.SplitHostPort(connAddr); er...
[ 0.3517957329750061, -0.1525491178035736, 0.9035586714744568, 0.16296106576919556, -0.5123212933540344, -0.07255379110574722, 0.8207411766052246, -0.8024513721466064, -0.23149171471595764, 0.2260938584804535, 0.3317614197731018, 0.6110240817070007, -0.42606034874916077, -0.37078890204429626...
func grpcTimeoutInterceptor(timeout time.Duration) grpc.UnaryClientInterceptor { return func(ctx context.Context, method string, req, reply interface{}, cc *grpc.ClientConn, invoker grpc.UnaryInvoker, opts ...grpc.CallOption) error { if timeout <= 0 { return invoker(ctx, method, req, reply, cc, opts...) } ctx...
[ 0.10196487605571747, 0.0030093134846538305, 0.5838014483451843, -1.2988524436950684, -0.46422308683395386, 0.3344237506389618, -0.5000102519989014, 0.4748585522174835, 0.6561381816864014, 0.5251297950744629, 0.7439437508583069, -0.3348173201084137, -0.6036331057548523, -0.6416270732879639,...
func NewBitReader(r io.ByteReader) *BitReader { return &BitReader{ r: r, mask: 0b00000001, } }
[ 0.16511644423007965, -0.8031479120254517, 0.14429055154323578, 0.254207581281662, -1.0050294399261475, 0.04289102926850319, -0.11196701973676682, -0.5340973734855652, 0.6042696833610535, 0.020279526710510254, -0.3261548578739166, -0.18828953802585602, -0.29180461168289185, 0.43660601973533...
func (br *BitReader) ReadBit() (bit int, err error) { br.mask = bits.RotateLeft8(br.mask, -1) if br.mask == 0b10000000 { br.buf, err = br.r.ReadByte() if err != nil { return } } return bits.OnesCount8(br.buf & br.mask), nil }
[ -0.4408552944660187, 0.13680431246757507, 0.8134984374046326, 0.5545791983604431, 0.0859416201710701, 0.3473004102706909, 0.5268499851226807, -1.0565217733383179, -0.5481470227241516, -0.49314799904823303, 0.6953046917915344, 0.06303469091653824, -0.7801237106323242, 0.15547522902488708, ...
func (br *BitReader) ReadBits(n int) (bits []byte, l int, err error) { buf := new(bytes.Buffer) w := NewBitWriter(buf) for ; l < n; l++ { var bit int bit, err = br.ReadBit() if err != nil { w.Flush() bits = buf.Bytes() return } w.WriteBit(bit) } w.Flush() bits = buf.Bytes() return }
[ -1.0092895030975342, 0.2613495886325836, 0.44754377007484436, -0.6184251308441162, -0.3861030340194702, 0.09874381870031357, -0.18826927244663239, -1.0211676359176636, -0.7539969086647034, -0.5731953382492065, 0.4020949602127075, 0.1397877186536789, -0.4161140024662018, 1.0576794147491455,...
func NewBroker(address string, nodeID int32, config *BrokerConfig) (*Broker, error) { //TODO get available api versions broker := &Broker{ config: config, address: address, nodeID: nodeID, correlationID: 0, dead: true, } conn, err := newConn(address, config) if err != nil { return nil, fmt...
[ -0.45610570907592773, -0.3185501992702484, 0.8249496817588806, 0.3728470206260681, -0.5957488417625427, 0.21797135472297668, -0.31182557344436646, 0.8105244636535645, 0.4765225946903229, 0.11105441302061081, -0.20789934694766998, 0.5597124695777893, -0.8165369629859924, 0.686515748500824, ...
func (broker *Broker) requestOffsets(clientID, topic string, partitionIDs []int32, timeValue int64, offsets uint32) (*OffsetsResponse, error) { offsetsRequest := NewOffsetsRequest(topic, partitionIDs, timeValue, offsets, clientID) responseBuf, err := broker.Request(offsetsRequest) if err != nil { return nil, err ...
[ -1.0982955694198608, 0.330500066280365, 0.4224984049797058, 0.1687777191400528, -0.19866672158241272, -0.2970184087753296, -0.01845831610262394, -1.0130643844604492, 0.0755167230963707, -0.6869015693664551, 0.4410354197025299, 0.19025330245494843, -1.6904174089431763, 0.5633083581924438, ...
func Execute() { goflag.Set("logtostderr", "true") goflag.CommandLine.Parse([]string{}) if err := rootCommand.cobraCommand.Execute(); err != nil { // exit with errors } }
[ 0.45585349202156067, 0.053683090955019, 0.6703866124153137, 0.7351421117782593, 1.2555776834487915, 0.5868502855300903, -0.6772075295448303, 0.7884874939918518, -1.152199149131775, 0.6791765093803406, -0.3496588468551636, -0.27470889687538147, -0.4759749174118042, 0.12892398238182068, 0....
func CreateToken(ti TokenInfo) (string, error) { var ( claims = ti.convertToJWTClaims() token = jwt.NewWithClaims(jwt.SigningMethodHS256, claims) tokenStr, err = token.SignedString(ti.Secret) ) if err != nil { return "", err } return tokenStr, nil }
[ 0.4790637195110321, -1.1883413791656494, 0.4629290997982025, -0.5967845916748047, -0.17913132905960083, 0.03193316608667374, -0.2558571696281433, -0.12835149466991425, 0.0008274881984107196, 0.1327449381351471, -0.22007741034030914, -0.11777613312005997, 0.2595016360282898, -0.206202164292...
func createSyncCertificates(t *testing.T, ip string, useDocker bool) syncCertificates { image := os.Getenv("ARANGODB") if image == "" && useDocker { t.Fatal("Need ARANGODB envvar with name of ArangoDB docker image") } dir, err := ioutil.TempDir("", "starter-test") if err != nil { t.Fatalf("TempDir failed: %s"...
[ 1.0567054748535156, 0.40597498416900635, 0.8251103758811951, 0.7118635773658752, 0.6779929399490356, 0.024433283135294914, 1.2930957078933716, -0.5588861703872681, -0.21560139954090118, 0.11969674378633499, -0.06268775463104248, 0.5904902815818787, 0.7032309174537659, 0.4521642327308655, ...
func (p *PrefixNLRI) MarshalJSON() ([]byte, error) { var jsonData []byte jsonData = append(jsonData, '{') jsonData = append(jsonData, []byte("\"protocolID\":")...) jsonData = append(jsonData, []byte(fmt.Sprintf("%d,", p.ProtocolID))...) jsonData = append(jsonData, []byte("\"identifier\":")...) jsonData = append(...
[ 0.01604473404586315, -0.6246164441108704, 0.8170335292816162, -1.0655806064605713, -0.6794106364250183, -0.5024610757827759, -0.673740029335022, -0.27120962738990784, -0.24030141532421112, 0.23546649515628815, -0.2663324475288391, 1.0883517265319824, -0.4124329388141632, 0.4623505771160126...
func UnmarshalPrefixNLRI(b []byte) (*PrefixNLRI, error) { glog.V(6).Infof("PrefixNLRI Raw: %s", internal.MessageHex(b)) pr := PrefixNLRI{} p := 0 pr.ProtocolID = b[p] p++ pr.Identifier = binary.BigEndian.Uint64(b[p : p+8]) p += 8 // Get Node Descriptor's length, skip Node Descriptor Type ndl := binary.BigEndia...
[ 0.2674228250980377, -0.17738637328147888, 0.6995849013328552, -1.280042290687561, -0.6158437728881836, 0.10764368623495102, -0.28075462579727173, -0.1588013768196106, 0.2593997120857239, 0.3017718195915222, -0.13976037502288818, 0.2275066077709198, -0.6557769775390625, 0.04686305299401283,...
func NewClientsBootstrap(devMode bool) *ClientsBootstrap { return &ClientsBootstrap{ inDevMode: devMode, } }
[ 0.10374235361814499, -0.1555163711309433, 0.0010079577332362533, 0.3642067015171051, -0.33091190457344055, -0.47382688522338867, -0.3846432864665985, -1.564344882965088, -0.4871731698513031, -0.36950841546058655, -0.22707834839820862, 0.7359720468521118, -0.9463373422622681, 0.251272201538...
func (cb *ClientsBootstrap) BootstrapHandler( _ context.Context, _ *sync.WaitGroup, startupTimer startup.Timer, dic *di.Container) bool { lc := container.LoggingClientFrom(dic.Get) config := container.ConfigurationFrom(dic.Get) cb.registry = container.RegistryFrom(dic.Get) jwtSecretProvider := secret.NewJWTSec...
[ -0.19086363911628723, -0.12334086745977402, 0.8370311856269836, -0.14628317952156067, -0.42591771483421326, 0.00919299852102995, 0.5950707197189331, -0.526216447353363, 0.00023787256213836372, 0.5065459609031677, 0.3195742070674896, 0.18587249517440796, -0.08104905486106873, 0.668868064880...
func (a AacAudio) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "bitrate", a.Bitrate) populate(objectMap, "channels", a.Channels) populate(objectMap, "label", a.Label) objectMap["@odata.type"] = "#Microsoft.Media.AacAudio" populate(objectMap, "profile", a.Profile) populate...
[ 0.4840546250343323, -0.5635520815849304, 0.26543620228767395, -0.9313198924064636, -0.26195472478866577, -0.35601797699928284, 0.5870095491409302, -0.14957483112812042, 0.7576993703842163, 0.6340480446815491, -0.33231014013290405, 0.7931572198867798, 0.6177939772605896, 0.7459889054298401,...
func (a *AacAudio) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { return fmt.Errorf("unmarshalling type %T: %v", a, err) } for key, val := range rawMsg { var err error switch key { case "bitrate": err = unpopulate(val, "Bitra...
[ 0.04220353811979294, 0.08591379970312119, 0.7873250246047974, -1.3379569053649902, -0.6852491497993469, -0.6140370965003967, 0.6509855389595032, -0.8542407751083374, -0.053752604871988297, 0.7250610589981079, 0.25057530403137207, 0.4576297402381897, 0.4980694055557251, 1.1782052516937256, ...
func (a AbsoluteClipTime) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) objectMap["@odata.type"] = "#Microsoft.Media.AbsoluteClipTime" populate(objectMap, "time", a.Time) return json.Marshal(objectMap) }
[ -1.1461732387542725, -1.1285312175750732, 0.4652610123157501, -0.6736378073692322, -0.9591606259346008, 0.12730547785758972, -0.05413860082626343, -0.18096709251403809, 0.5244074463844299, 1.3989880084991455, -0.3729589581489563, -0.001927838777191937, 1.0509800910949707, 1.732313632965088...
func (a *AbsoluteClipTime) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { return fmt.Errorf("unmarshalling type %T: %v", a, err) } for key, val := range rawMsg { var err error switch key { case "@odata.type": err = unpopulate...
[ -1.1396892070770264, -0.1860862672328949, 0.8908635973930359, -1.4853005409240723, -1.1537659168243408, 0.009924470447003841, -0.06600090116262436, -0.5542455911636353, -0.41233208775520325, 1.5861026048660278, 0.09022940695285797, -0.3348149061203003, 0.8624564409255981, 2.026580572128296...
func (a AccessControl) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "defaultAction", a.DefaultAction) populate(objectMap, "ipAllowList", a.IPAllowList) return json.Marshal(objectMap) }
[ 0.17323751747608185, -0.35484856367111206, 0.05036943033337593, -0.2630020081996918, 0.029650699347257614, -0.2860596179962158, 0.7368469834327698, 0.5128874778747559, 0.49679794907569885, 0.21187497675418854, -0.2585681080818176, 0.6043865084648132, 0.16888760030269623, 0.3129009306430816...
func (a *AccessControl) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { return fmt.Errorf("unmarshalling type %T: %v", a, err) } for key, val := range rawMsg { var err error switch key { case "defaultAction": err = unpopulate(...
[ -0.012454481795430183, 0.4099378287792206, 0.49795976281166077, -1.0866864919662476, -0.30263736844062805, -0.4012104868888855, 0.6333478689193726, -0.08359905332326889, -0.20559784770011902, 0.590242326259613, 0.07038077712059021, 0.0294253658503294, 0.18380528688430786, 0.570136666297912...
func (a AccountEncryption) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "identity", a.Identity) populate(objectMap, "keyVaultProperties", a.KeyVaultProperties) populate(objectMap, "status", a.Status) populate(objectMap, "type", a.Type) return json.Marshal(objectMap) }
[ -1.0323880910873413, -0.4930892884731293, 0.22796335816383362, 0.4051770865917206, 0.05551842600107193, -0.49042317271232605, 0.9021185040473938, -0.22607527673244476, 0.803117573261261, 0.6481097936630249, -0.7907029390335083, 0.8063164353370667, 0.35657262802124023, 0.3866884410381317, ...
func (a *AccountEncryption) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { return fmt.Errorf("unmarshalling type %T: %v", a, err) } for key, val := range rawMsg { var err error switch key { case "identity": err = unpopulate(v...
[ -1.0428849458694458, 0.21372030675411224, 0.7039337754249573, -0.44189152121543884, -0.23581255972385406, -0.535830557346344, 1.018198013305664, -0.383861243724823, 0.2965750992298126, 1.0163211822509766, -0.323822021484375, 0.1787196844816208, -0.039635978639125824, 0.5790156722068787, ...
func (a AccountFilter) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "id", a.ID) populate(objectMap, "name", a.Name) populate(objectMap, "properties", a.Properties) populate(objectMap, "systemData", a.SystemData) populate(objectMap, "type", a.Type) return json.Marshal(obje...
[ -0.6958540678024292, -0.7102137804031372, 0.08646725863218307, -0.19071830809116364, -0.22786781191825867, -0.5602506995201111, 0.9150765538215637, 0.3961733281612396, 0.37474268674850464, -0.2747764587402344, -0.36029666662216187, 1.5898232460021973, -0.008014068938791752, 0.8445363640785...
func (a *AccountFilter) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { return fmt.Errorf("unmarshalling type %T: %v", a, err) } for key, val := range rawMsg { var err error switch key { case "id": err = unpopulate(val, "ID", ...
[ -0.7950664162635803, -0.022215770557522774, 0.7330614924430847, -0.7165822982788086, -0.5059714317321777, -0.565313994884491, 0.8338472843170166, -0.30926498770713806, -0.35649412870407104, 0.03464755788445473, 0.2899033725261688, 0.6870546340942383, -0.18807493150234222, 1.134738564491272...
func (a AccountFilterCollection) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "@odata.nextLink", a.ODataNextLink) populate(objectMap, "value", a.Value) return json.Marshal(objectMap) }
[ -0.7829581499099731, 0.05312059819698334, 0.14039388298988342, -0.2695295810699463, -0.15477252006530762, -0.5870094895362854, 0.8521489500999451, -0.05409637466073036, 0.301464706659317, -0.5148200392723083, 0.20080187916755676, 1.5730865001678467, 0.03227967023849487, 0.7275604009628296,...
func (a *AccountFilterCollection) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { return fmt.Errorf("unmarshalling type %T: %v", a, err) } for key, val := range rawMsg { var err error switch key { case "@odata.nextLink": err =...
[ -0.9563361406326294, 0.3348887860774994, 0.6746382713317871, -1.051926612854004, -0.6095765233039856, -0.6150645613670349, 0.8773031234741211, -0.4636062681674957, -0.29220691323280334, -0.12858445942401886, 0.47014230489730835, 0.8663744330406189, -0.11275236308574677, 1.0055619478225708,...
func (a AkamaiAccessControl) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "akamaiSignatureHeaderAuthenticationKeyList", a.AkamaiSignatureHeaderAuthenticationKeyList) return json.Marshal(objectMap) }
[ 0.0380987748503685, -0.29954957962036133, 0.04697241261601448, -0.5698028206825256, -1.0912145376205444, -0.7873398661613464, 0.3899502754211426, -0.032744597643613815, 1.1358487606048584, 0.7165809869766235, -0.07964108139276505, 0.3753304183483124, 0.10315688699483871, -0.448320865631103...
func (a *AkamaiAccessControl) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { return fmt.Errorf("unmarshalling type %T: %v", a, err) } for key, val := range rawMsg { var err error switch key { case "akamaiSignatureHeaderAuthentic...
[ -0.20190249383449554, 0.1600479632616043, 0.5347879528999329, -1.1442171335220337, -1.3323323726654053, -0.9633969664573669, 0.5289111733436584, -0.5144721865653992, 0.5067868828773499, 1.0420458316802979, 0.14727257192134857, -0.37737125158309937, 0.06992538273334503, -0.07604896277189255...
func (a AkamaiSignatureHeaderAuthenticationKey) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "base64Key", a.Base64Key) populateTimeRFC3339(objectMap, "expiration", a.Expiration) populate(objectMap, "identifier", a.Identifier) return json.Marshal(objectMap) }
[ -1.214409589767456, -0.11439359188079834, 0.133610799908638, 0.21978233754634857, -1.0448471307754517, -0.3261774182319641, 0.35195231437683105, 0.7065166234970093, 0.45745936036109924, 1.237868070602417, -0.23050600290298462, 0.4573095440864563, -0.20896808803081512, -0.04666556417942047,...
func (a *AkamaiSignatureHeaderAuthenticationKey) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { return fmt.Errorf("unmarshalling type %T: %v", a, err) } for key, val := range rawMsg { var err error switch key { case "base64Key":...
[ -1.4932003021240234, 0.19141332805156708, 0.47063562273979187, -0.44625142216682434, -1.453605055809021, -0.2726442515850067, 0.3757379949092865, 0.11508344113826752, -0.12085459381341934, 1.4837778806686401, -0.01646994613111019, -0.09971663355827332, -0.08407463133335114, 0.3793257772922...
func (a ArmStreamingEndpointCapacity) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "default", a.Default) populate(objectMap, "maximum", a.Maximum) populate(objectMap, "minimum", a.Minimum) populate(objectMap, "scaleType", a.ScaleType) return json.Marshal(objectMap) }
[ -0.5883533954620361, -0.6607941389083862, 0.21772457659244537, -0.24189844727516174, 0.27449843287467957, -0.38728830218315125, 0.4367832541465759, -0.12123571336269379, -0.3344126343727112, 0.8078467845916748, -0.7635972499847412, 0.5008232593536377, 0.5059344172477722, 0.4977380335330963...
func (a *ArmStreamingEndpointCapacity) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { return fmt.Errorf("unmarshalling type %T: %v", a, err) } for key, val := range rawMsg { var err error switch key { case "default": err = un...
[ -0.816440224647522, 0.05557714030146599, 0.6407322883605957, -0.9613921642303467, -0.29914480447769165, -0.21545986831188202, 0.37668874859809875, -0.4762907028198242, -0.8641232252120972, 1.2540998458862305, -0.07140905410051346, 0.03442004695534706, 0.3048039376735687, 0.4905236959457397...
func (a ArmStreamingEndpointCurrentSKU) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "capacity", a.Capacity) populate(objectMap, "name", a.Name) return json.Marshal(objectMap) }
[ -0.9074174165725708, -0.8945393562316895, 0.15948353707790375, -0.14453454315662384, -0.7094096541404724, -0.8350006937980652, 0.35172003507614136, 0.1561232954263687, -0.13136965036392212, 0.23873713612556458, 0.4008243680000305, 1.1402101516723633, 0.41004836559295654, 0.7624887228012085...
func (a *ArmStreamingEndpointCurrentSKU) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { return fmt.Errorf("unmarshalling type %T: %v", a, err) } for key, val := range rawMsg { var err error switch key { case "capacity": err =...
[ -0.8917650580406189, -0.08908335864543915, 0.43038293719291687, -0.5037144422531128, -1.083200454711914, -0.9151482582092285, 0.39191481471061707, -0.3604018986225128, -0.7842134833335876, 0.34673649072647095, 0.7073214054107666, 0.5659127831459045, 0.18626274168491364, 0.9162979125976562,...
func (a ArmStreamingEndpointSKU) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "name", a.Name) return json.Marshal(objectMap) }
[ -0.21554675698280334, 0.1042877733707428, 0.16409090161323547, 0.0025323815643787384, -0.7443705201148987, -0.1385648548603058, -0.05172162875533104, 0.5011682510375977, 0.2992863059043884, 0.9801912307739258, -0.40447747707366943, 1.1557579040527344, 0.08431937545537949, 0.381412923336029...
func (a *ArmStreamingEndpointSKU) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { return fmt.Errorf("unmarshalling type %T: %v", a, err) } for key, val := range rawMsg { var err error switch key { case "name": err = unpopulate...
[ -0.5446282029151917, 0.7908985614776611, 0.5741655230522156, -0.7277459502220154, -1.1509461402893066, -0.04125691577792168, 0.0614590086042881, 0.050714101642370224, -0.3695441484451294, 1.0257436037063599, 0.03228045627474785, 0.8126099109649658, -0.29912281036376953, 0.611640214920044, ...