text
stringlengths
11
6.3k
embedding
listlengths
768
768
func UpdatedAtNEQ(v time.Time) predicate.OrderLineItem { return predicate.OrderLineItem(func(s *sql.Selector) { s.Where(sql.NEQ(s.C(FieldUpdatedAt), v)) }) }
[ -1.0032925605773926, -0.45378348231315613, 0.5129702687263489, 0.38294076919555664, -1.295049786567688, 0.8848577737808228, -0.878028154373169, -0.043309956789016724, -0.6508769989013672, 0.41457003355026245, -1.3844373226165771, 0.338215708732605, 1.3451100587844849, -0.010642768815159798...
func UpdatedAtIn(vs ...time.Time) predicate.OrderLineItem { v := make([]interface{}, len(vs)) for i := range v { v[i] = vs[i] } return predicate.OrderLineItem(func(s *sql.Selector) { // if not arguments were provided, append the FALSE constants, // since we can't apply "IN ()". This will make this predicate f...
[ -0.8498246073722839, -0.70305997133255, 0.6670083999633789, 0.6098179221153259, -0.7218945622444153, 1.1475155353546143, -0.5988038182258606, -0.19994434714317322, -0.6124940514564514, 0.14275462925434113, 0.38587209582328796, -0.035605065524578094, 0.5031953454017639, 0.23226967453956604,...
func UpdatedAtNotIn(vs ...time.Time) predicate.OrderLineItem { v := make([]interface{}, len(vs)) for i := range v { v[i] = vs[i] } return predicate.OrderLineItem(func(s *sql.Selector) { // if not arguments were provided, append the FALSE constants, // since we can't apply "IN ()". This will make this predicat...
[ -0.7951608896255493, -0.8410936594009399, 0.48484474420547485, 0.2280336618423462, -0.4402800500392914, 1.3147143125534058, -0.2957291901111603, -0.30768343806266785, -0.8647626042366028, 0.15722233057022095, 0.00016727606998756528, 0.13934502005577087, 0.28460389375686646, -0.206210449337...
func UpdatedAtGT(v time.Time) predicate.OrderLineItem { return predicate.OrderLineItem(func(s *sql.Selector) { s.Where(sql.GT(s.C(FieldUpdatedAt), v)) }) }
[ -0.2579587996006012, -0.2871790826320648, 0.38714390993118286, 0.2079927772283554, -1.4992823600769043, 0.948442280292511, -0.6369810700416565, 0.09654518216848373, -0.5884585976600647, 0.08053932338953018, -0.2240075320005417, 0.5441854000091553, 1.4028042554855347, 0.5803175568580627, ...
func UpdatedAtGTE(v time.Time) predicate.OrderLineItem { return predicate.OrderLineItem(func(s *sql.Selector) { s.Where(sql.GTE(s.C(FieldUpdatedAt), v)) }) }
[ 0.017528165131807327, -0.10227834433317184, 0.38563108444213867, 0.2870537340641022, -0.880709707736969, 1.3116542100906372, 0.016263114288449287, 0.24287529289722443, -1.4399104118347168, 0.5330448150634766, -0.26919782161712646, 0.4949190020561218, 1.0521637201309204, 0.5307772159576416,...
func UpdatedAtLT(v time.Time) predicate.OrderLineItem { return predicate.OrderLineItem(func(s *sql.Selector) { s.Where(sql.LT(s.C(FieldUpdatedAt), v)) }) }
[ 0.4649130403995514, -0.8133497834205627, 0.47855520248413086, -0.4102908968925476, -0.836497962474823, 1.1514893770217896, -0.5373225212097168, -0.7277279496192932, -0.29606977105140686, -0.3572709560394287, -0.32206088304519653, 0.31076669692993164, 1.1908671855926514, 0.2931322157382965,...
func UpdatedAtLTE(v time.Time) predicate.OrderLineItem { return predicate.OrderLineItem(func(s *sql.Selector) { s.Where(sql.LTE(s.C(FieldUpdatedAt), v)) }) }
[ 0.6657150387763977, -0.8240250945091248, 0.519145667552948, -0.32169097661972046, -0.3785957396030426, 1.0961412191390991, -0.31399407982826233, 0.048323314636945724, -0.6464545726776123, 0.2764767110347748, -0.9083940982818604, 0.5655036568641663, 1.031349539756775, 0.31671297550201416, ...
func HasOwner() predicate.OrderLineItem { return predicate.OrderLineItem(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), sqlgraph.To(OwnerTable, FieldID), sqlgraph.Edge(sqlgraph.M2O, true, OwnerTable, OwnerColumn), ) sqlgraph.HasNeighbors(s, step) }) }
[ 0.33169418573379517, 0.45629408955574036, 0.6146794557571411, 1.5822546482086182, -0.09346666932106018, 0.31308695673942566, 1.2643595933914185, 0.53777676820755, -0.6419349908828735, -0.6399749517440796, -0.12592674791812897, -0.661978006362915, 0.9283276200294495, 0.4003508687019348, -...
func HasOwnerWith(preds ...predicate.Order) predicate.OrderLineItem { return predicate.OrderLineItem(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), sqlgraph.To(OwnerInverseTable, FieldID), sqlgraph.Edge(sqlgraph.M2O, true, OwnerTable, OwnerColumn), ) sqlgraph.HasNeighbo...
[ 0.10625767707824707, -0.4375708997249603, 0.7186616659164429, 1.4442853927612305, -0.20430780947208405, -0.1573556661605835, 0.34319159388542175, -0.2408180981874466, -0.8489879369735718, 0.006175994873046875, -0.4916844666004181, -0.08023365586996078, 0.8682993054389954, 0.071228392422199...
func And(predicates ...predicate.OrderLineItem) predicate.OrderLineItem { return predicate.OrderLineItem(func(s *sql.Selector) { s1 := s.Clone().SetP(nil) for _, p := range predicates { p(s1) } s.Where(s1.P()) }) }
[ -0.31380659341812134, -1.4218779802322388, 0.43271327018737793, 0.9200654625892639, -0.01571572944521904, 0.9443208575248718, -0.33537670969963074, 0.9409868121147156, 0.045693252235651016, -0.3736496567726135, 0.10588790476322174, 0.22077274322509766, 0.16172286868095398, 0.02600743435323...
func Or(predicates ...predicate.OrderLineItem) predicate.OrderLineItem { return predicate.OrderLineItem(func(s *sql.Selector) { s1 := s.Clone().SetP(nil) for i, p := range predicates { if i > 0 { s1.Or() } p(s1) } s.Where(s1.P()) }) }
[ -1.2743961811065674, -0.5775984525680542, 0.32339757680892944, 0.9830034971237183, 0.3156805634498596, 0.8930522799491882, -0.5100184082984924, 0.8497644662857056, -0.08480749279260635, -0.34980738162994385, 0.4325646162033081, -0.6358866691589355, 0.588661253452301, -0.31437426805496216, ...
func Not(p predicate.OrderLineItem) predicate.OrderLineItem { return predicate.OrderLineItem(func(s *sql.Selector) { p(s.Not()) }) }
[ -0.6370957493782043, -0.11670636385679245, 0.33029496669769287, 0.722129762172699, -0.09581629931926727, 1.2890299558639526, -0.04146604239940643, 0.7182931303977966, -0.3824387490749359, -0.6579017639160156, -0.02910279855132103, -0.04352154582738876, 0.7548545598983765, 0.049060150980949...
func (space *Space) Update(info map[string]interface{}) { if value, ok := info["display_name"]; ok { space.DisplayName = value.(string) } if value, ok := info["description"]; ok { space.Description = value.(string) } if value, ok := info["thumbnail_url"]; ok { space.ThumbnailUrl = value.(string) } if value...
[ -0.7275442481040955, -0.8743895292282104, 0.30066853761672974, -0.5779276490211487, -0.6659092307090759, 0.18299013376235962, -0.8050217032432556, 0.11762919276952744, 0.10265102982521057, -0.18371307849884033, -0.6163392066955566, 0.21687699854373932, 0.265179842710495, 1.1694509983062744...
func (space *Space) JoinSpace(userId string) error { for _, id := range space.UserIDs { if id == userId { return fmt.Errorf("user: %+v is already in the space", userId) } } space.UserIDs = append(space.UserIDs, userId) return nil }
[ -0.016264138743281364, -0.2604146897792816, 0.2533290982246399, 0.5283747911453247, -0.19884353876113892, 0.7930433750152588, 0.14107003808021545, -0.00022498071484733373, 1.1885910034179688, 0.22448065876960754, -0.4266549050807953, 1.24931800365448, -0.7870784401893616, 1.489179968833923...
func (space *Space) LeaveSpace(ids []string) { for i := 0; i < len(space.UserIDs); i++ { item := space.UserIDs[i] for _, rem := range ids { if item == rem { space.UserIDs = append(space.UserIDs[:i], space.UserIDs[i+1:]...) i-- break } } } }
[ -0.5029422044754028, -0.8290422558784485, 0.2930358350276947, -0.41232168674468994, -0.30002960562705994, 0.4483138620853424, 0.0782126858830452, 0.2527002692222595, 1.3333008289337158, 0.6720917224884033, -0.2838349938392639, 0.7795587778091431, -1.405178427696228, 0.7017083764076233, 0...
func (space *Space) ToByte() []byte { raw, _ := json.Marshal(space) return raw }
[ 0.036290790885686874, 0.13447964191436768, 0.6822197437286377, -0.8061860203742981, 0.25590914487838745, -0.8619555830955505, -1.7040177583694458, -0.843449592590332, 0.5872892737388611, 0.11741231381893158, -0.712646484375, 1.4614804983139038, 0.041093986481428146, 0.3690730631351471, -...
func (space *Space) ToString() string { return string(space.ToByte()) }
[ 0.9633421897888184, -0.323019415140152, -0.12771902978420258, -0.12287569791078568, -0.021162424236536026, 0.870187520980835, -0.4244694709777832, -0.629003643989563, 0.6550831198692322, -0.017695751041173935, -0.5589838027954102, 0.6695026755332947, -0.2466343641281128, -0.197813451290130...
func (space *Space) AddEntityIDs(ids []string) { checkMap := make(map[string]bool) entityList := append(space.EntityIDs, ids...) space.EntityIDs = nil for _, item := range entityList { if _, value := checkMap[item]; !value { checkMap[item] = true space.EntityIDs = append(space.EntityIDs, item) } } }
[ -1.2051011323928833, -1.2281213998794556, 0.3634423613548279, -0.527344286441803, 0.2868451178073883, 0.625344455242157, -0.41133350133895874, 0.967547595500946, 0.4850701689720154, 0.4290596544742584, 0.35811281204223633, 0.4969423711299896, -0.5248177647590637, 1.7785298824310303, -0.8...
func (space *Space) RemoveEntityIDs(ids []string) { for i := 0; i < len(space.EntityIDs); i++ { item := space.EntityIDs[i] for _, rem := range ids { if item == rem { space.EntityIDs = append(space.EntityIDs[:i], space.EntityIDs[i+1:]...) i-- break } } } }
[ -1.0942513942718506, -1.6960442066192627, 0.2729451060295105, -0.8250901103019714, -0.5921874046325684, -0.05395174026489258, 0.11374250054359436, 1.0383394956588745, 0.4032878279685974, 0.9998677372932434, 0.3035143315792084, 0.4258500635623932, -1.2408740520477295, 0.883518397808075, -...
func (space *Space) AddAssetIDs(ids []string) { checkMap := make(map[string]bool) assetList := append(space.AssetIDs, ids...) space.AssetIDs = nil for _, item := range assetList { if _, value := checkMap[item]; !value { checkMap[item] = true space.AssetIDs = append(space.AssetIDs, item) } } }
[ -0.6826475262641907, -0.6026824712753296, 0.36831900477409363, -1.018134355545044, -0.1534411609172821, 0.4679130017757416, -0.6531190276145935, 0.04331614449620247, 0.36959823966026306, 0.8124790787696838, 0.027811773121356964, 0.9076220989227295, -0.25659093260765076, 0.5261779427528381,...
func (space *Space) RemoveAssetIDs(ids []string) { for i := 0; i < len(space.AssetIDs); i++ { item := space.AssetIDs[i] for _, rem := range ids { if item == rem { space.AssetIDs = append(space.AssetIDs[:i], space.AssetIDs[i+1:]...) i-- break } } } }
[ -0.6143768429756165, -1.1411983966827393, 0.2571268081665039, -1.243935465812683, -0.9850174784660339, -0.26041367650032043, -0.1994887888431549, 0.010943779721856117, 0.25669026374816895, 1.3211923837661743, 0.06522735953330994, 0.9581900238990784, -0.8548265695571899, -0.4311828017234802...
func (space *Space) AddAvatarIDs(ids []string) { checkMap := make(map[string]bool) avatarList := append(space.AvatarIDs, ids...) space.AvatarIDs = nil for _, item := range avatarList { if _, value := checkMap[item]; !value { checkMap[item] = true space.AvatarIDs = append(space.AvatarIDs, item) } } }
[ -1.284746766090393, -0.39078083634376526, 0.3885367214679718, -0.31657475233078003, -0.7219445705413818, 0.851366400718689, -0.5002242922782898, 0.4421229958534241, 0.9426159858703613, 0.7583715915679932, -0.4578670561313629, 0.6995277404785156, -0.43009403347969055, 0.9123529195785522, ...
func (space *Space) RemoveAvatarID(ids []string) { for i := 0; i < len(space.AvatarIDs); i++ { item := space.AvatarIDs[i] for _, rem := range ids { if item == rem { space.AvatarIDs = append(space.AvatarIDs[:i], space.AvatarIDs[i+1:]...) i-- break } } } }
[ -1.1040980815887451, -1.0909756422042847, 0.35913366079330444, -0.6718562245368958, -1.2386152744293213, 0.2754499018192291, 0.2679135799407959, 0.7508153319358826, 1.0243444442749023, 1.4458094835281372, -0.30418771505355835, 0.6320769190788269, -0.8103110790252686, 0.23554560542106628, ...
func calculateStartAndEndOfAPiece(index int, pieceLength int, fileTotalLength int) (begin int, end int) { // Why we need to calculate fmt.Println("calculateStartAndEndOfAPiece index ", index, " pieceLength", pieceLength) begin = index * pieceLength end = begin + pieceLength if end > fileTotalLength { end = fileT...
[ 0.5399989485740662, 0.15575233101844788, 0.5683526992797852, -0.6826379895210266, -0.8459789752960205, 0.28714224696159363, 0.44559407234191895, 0.013182028196752071, -0.2098826915025711, 0.16203230619430542, -0.7596907019615173, 1.0356894731521606, -0.40478575229644775, 0.0255459342151880...
func (r *Resource) getAllHandler(c *gin.Context) { // get restaurant_id query param (empty string if not provided) restaurantID := c.Query("restaurant_id") // return all tables if no restaurant_id query param, else get all tables // for specific restaurant if restaurantID == "" { // fetch all from databa...
[ -0.3437318503856659, 0.1736019253730774, 1.0911229848861694, 1.1191145181655884, -0.5314328670501709, 0.6902005076408386, -0.03688263148069382, -0.044337835162878036, -0.20985755324363708, 0.17482422292232513, 0.0873325988650322, 0.29262328147888184, -0.10823868960142136, 1.689308166503906...
func Test_search_a_resource_based_on_a_field(t *testing.T) { //delete the content from disk if it exists from previous tests deleteJsonFromDisk("users", "2") deleteJsonFromDisk("users", "3") //define a json content content1 := "{\"country\":\"Argentina\",\"id\":2,\"name\":\"Natalia\"}" content2 := "{\"country\"...
[ -0.1172923669219017, -0.18369035422801971, 0.575194776058197, -0.04380453750491142, 0.31657442450523376, 0.1257932484149933, 0.362458199262619, -0.8082813620567322, -0.9869550466537476, 0.268131285905838, -0.5109024047851562, -0.7315168976783752, -0.42506131529808044, 0.10556682199239731, ...
func NewHTTPClient(formats strfmt.Registry) *JusticePlatformService { return NewHTTPClientWithConfig(formats, nil) }
[ 0.24163998663425446, -0.17494964599609375, 0.1596183478832245, 0.07668323069810867, -0.27440616488456726, 0.7375638484954834, 0.48103955388069153, 0.03552324324846268, -0.8833474516868591, -0.4580659866333008, 0.3962957561016083, 0.41206419467926025, -0.6791724562644958, 1.0477787256240845...
func NewHTTPClientWithConfig(formats strfmt.Registry, cfg *TransportConfig) *JusticePlatformService { // ensure nullable parameters have default if cfg == nil { cfg = DefaultTransportConfig() } // create transport and client transport := httptransport.New(cfg.Host, cfg.BasePath, cfg.Schemes) // custom transpo...
[ 0.6110786199569702, -0.6729015111923218, 0.3942692279815674, -0.30693548917770386, -0.4581086039543152, 0.3905755877494812, 0.3989056348800659, -0.04485215246677399, -0.8820168375968933, 0.2074761688709259, -0.38526952266693115, -0.019988637417554855, -0.4309554398059845, 0.639632225036621...
func New(transport runtime.ClientTransport, runtime *httptransport.Runtime, formats strfmt.Registry) *JusticePlatformService { // ensure nullable parameters have default if formats == nil { formats = strfmt.Default } cli := new(JusticePlatformService) cli.Transport = transport cli.Runtime = runtime cli.Achiev...
[ 0.27016252279281616, -0.5320700407028198, 0.5831303000450134, -0.13634392619132996, -0.4196735620498657, 0.3675408959388733, -0.21374823153018951, -0.3388458490371704, -1.1047559976577759, -0.023053623735904694, 0.23320317268371582, 0.21730206906795502, 0.21563602983951569, 0.7941270470619...
func DefaultTransportConfig() *TransportConfig { return &TransportConfig{ Host: DefaultHost, BasePath: DefaultBasePath, Schemes: DefaultSchemes, } }
[ 0.6516007781028748, 0.5099914073944092, 0.2976681888103485, -0.04029851406812668, 0.019503900781273842, 0.3551711142063141, 0.02248888649046421, 0.07740854471921921, -0.1158280074596405, -0.07815846800804138, -1.7115750312805176, -0.0566072054207325, -0.1677665263414383, 0.4148017168045044...
func (cfg *TransportConfig) WithHost(host string) *TransportConfig { cfg.Host = host return cfg }
[ 0.3066752254962921, -0.35025304555892944, 0.4489263892173767, -0.3116134703159332, -0.8618073463439941, 0.4357738494873047, -0.4415070712566376, 0.7393101453781128, -0.7514298558235168, 0.23864656686782837, -1.0797336101531982, -0.7364169955253601, 0.4675319790840149, -0.3348555266857147, ...
func (cfg *TransportConfig) WithBasePath(basePath string) *TransportConfig { cfg.BasePath = basePath return cfg }
[ 0.10512029379606247, -1.0065064430236816, 0.40453070402145386, 0.2097141146659851, -0.38588541746139526, 0.9712070226669312, 0.6102752089500427, 0.05979129672050476, 0.05104689300060272, 0.6434462666511536, -0.37611523270606995, -0.566248893737793, -0.14725272357463837, -0.0671120509505271...
func (cfg *TransportConfig) WithSchemes(schemes []string) *TransportConfig { cfg.Schemes = schemes return cfg }
[ -0.06356855481863022, 0.6771969199180603, 0.28658321499824524, -0.9120622277259827, -0.5665977597236633, 0.5934562087059021, -0.03162311390042305, -0.38856062293052673, 0.3425178527832031, -0.0894145742058754, -1.1098837852478027, -1.3577730655670166, 0.1402362585067749, 0.2987343966960907...
func (c *JusticePlatformService) SetTransport(transport runtime.ClientTransport) { c.Transport = transport c.AchievementPlatform.SetTransport(transport) c.Anonymization.SetTransport(transport) c.Campaign.SetTransport(transport) c.CatalogChanges.SetTransport(transport) c.Category.SetTransport(transport) c.Currenc...
[ 0.29212817549705505, 0.019645091146230698, 0.7088567614555359, -0.19080105423927307, -0.2699175477027893, 0.16659444570541382, 0.47619977593421936, -0.6675495505332947, -0.38848260045051575, -0.20198094844818115, -0.9269484877586365, -0.026474596932530403, -0.4398639500141144, 0.8369279503...
func (s ModifyReplicationGroupInput) String() string { return awsutil.Prettify(s) }
[ -0.11600044369697571, 0.09075117856264114, 0.04659977927803993, -0.6662534475326538, -0.7567968964576721, 0.0367249958217144, 0.8392110466957092, -0.6116275787353516, 0.3180503845214844, 0.07869482040405273, 0.08903951197862625, 0.9397432804107666, -0.7425798177719116, -0.10014710575342178...
func (s *ModifyReplicationGroupInput) Validate() error { invalidParams := aws.ErrInvalidParams{Context: "ModifyReplicationGroupInput"} if s.ReplicationGroupId == nil { invalidParams.Add(aws.NewErrParamRequired("ReplicationGroupId")) } if invalidParams.Len() > 0 { return invalidParams } return nil }
[ -0.7165478467941284, 0.5364311933517456, 0.3388778865337372, -0.4076467752456665, -0.5093793272972107, -0.3439430892467499, 0.07553387433290482, 0.13805055618286133, -0.012152309529483318, 0.44577163457870483, 0.7637086510658264, 0.4274243712425232, -1.42299485206604, 1.2222561836242676, ...
func (s ModifyReplicationGroupOutput) String() string { return awsutil.Prettify(s) }
[ 0.4200775623321533, -0.30100032687187195, 0.07963418960571289, -0.6534372568130493, -1.0863977670669556, -0.6315983533859253, 0.996292769908905, -0.5879427194595337, -0.024665383622050285, 0.006603461690247059, 0.21193796396255493, 0.6670282483100891, -0.34591472148895264, -0.3262099623680...
func (r ModifyReplicationGroupRequest) Send(ctx context.Context) (*ModifyReplicationGroupResponse, error) { r.Request.SetContext(ctx) err := r.Request.Send() if err != nil { return nil, err } resp := &ModifyReplicationGroupResponse{ ModifyReplicationGroupOutput: r.Request.Data.(*ModifyReplicationGroupOutput),...
[ -1.4049078226089478, 0.4564082622528076, 0.0874851644039154, -0.019136007875204086, -0.35109084844589233, -0.7066225409507751, 0.1808624565601349, -0.27278026938438416, 0.2474440634250641, 0.14511127769947052, -0.5524112582206726, 1.214386224746704, -1.037152886390686, 0.26113566756248474,...
func (r *ModifyReplicationGroupResponse) SDKResponseMetdata() *aws.Response { return r.response }
[ -0.4574336111545563, -0.2001343071460724, 0.29169443249702454, -0.6143019795417786, -0.7018405795097351, -0.08105248957872391, -0.10846257209777832, -0.2689373791217804, 1.0423632860183716, 0.0743345096707344, -0.3306916356086731, 0.32396602630615234, -0.3460763096809387, -0.70369410514831...
func NewAffine(c anyvec.Creator, scaler, bias float64) *Affine { scalerVec := c.MakeVector(1) biasVec := c.MakeVector(1) scalerVec.AddScalar(c.MakeNumeric(scaler)) biasVec.AddScalar(c.MakeNumeric(bias)) return &Affine{ Scalers: anydiff.NewVar(scalerVec), Biases: anydiff.NewVar(biasVec), } }
[ 0.5097993016242981, -0.4309966564178467, 0.24649067223072052, 0.48468315601348877, -0.4973479211330414, -0.6707919239997864, -0.7232524752616882, -1.1877564191818237, -0.9436858296394348, -0.4569569230079651, 0.0007957439520396292, 0.40484485030174255, -0.02580409124493599, 0.6586480140686...
func DeserializeAffine(d []byte) (*Affine, error) { var s, b *anyvecsave.S if err := serializer.DeserializeAny(d, &s, &b); err != nil { return nil, essentials.AddCtx("deserialize Affine", err) } return &Affine{ Scalers: anydiff.NewVar(s.Vector), Biases: anydiff.NewVar(b.Vector), }, nil }
[ 0.1283043622970581, 0.252829909324646, 0.39878958463668823, 0.08148565888404846, -0.7967722415924072, -0.8495007753372192, -0.5564798712730408, -1.1117873191833496, 0.11230006068944931, -0.40894418954849243, -0.30453070998191833, -0.25640058517456055, -0.2135200798511505, 0.417023062705993...
func (a *Affine) Apply(in anydiff.Res, n int) anydiff.Res { if in.Output().Len()%n != 0 { panic("input size not divisible by batch size") } inLen := in.Output().Len() / n if inLen%a.Scalers.Vector.Len() != 0 || inLen%a.Biases.Vector.Len() != 0 { panic("scaler and bias count must divide input count") } return ...
[ -0.1763002723455429, 0.3255924880504608, 0.4566136598587036, 0.42161130905151367, -0.36254164576530457, -0.16050252318382263, 0.1894192099571228, -0.6281447410583496, 0.05129712074995041, -0.29202035069465637, 0.5860341787338257, -0.5284895300865173, -0.4946272373199463, 0.8301881551742554...
func (a *Affine) Parameters() []*anydiff.Var { return []*anydiff.Var{a.Scalers, a.Biases} }
[ -0.6255866289138794, -0.6689919829368591, -0.02076459489762783, -0.2944762408733368, 0.49493417143821716, 0.4217725992202759, -0.06828276813030243, -0.803777813911438, 0.13401709496974945, 0.1159842386841774, 0.38165047764778137, 0.715532124042511, 0.045338958501815796, 1.61064612865448, ...
func (a *Affine) SerializerType() string { return "github.com/unixpickle/anynet.Affine" }
[ 0.3611637353897095, -0.13729864358901978, 0.22477610409259796, 0.34394004940986633, 0.09642622619867325, 0.12372932583093643, -0.06465105712413788, 0.2256823480129242, 0.9792793393135071, -0.009085469879209995, -0.012355895712971687, -0.3573252260684967, -0.19992446899414062, 0.98129159212...
func (a *Affine) Serialize() ([]byte, error) { return serializer.SerializeAny( &anyvecsave.S{Vector: a.Scalers.Vector}, &anyvecsave.S{Vector: a.Biases.Vector}, ) }
[ -0.2640765309333801, 0.09319308400154114, 0.3791021406650543, 0.4820151925086975, 0.4738582372665405, -1.0088131427764893, -0.7179751992225647, -0.927141010761261, -0.27604445815086365, 0.1433374136686325, -0.24836865067481995, 0.3893352746963501, 0.04046212509274483, 1.0018230676651, -0...
func DeserializeConstAffine(d []byte) (*ConstAffine, error) { var res ConstAffine if err := serializer.DeserializeAny(d, &res.Scale, &res.Bias); err != nil { return nil, essentials.AddCtx("deserialize ConstAffine", err) } return &res, nil }
[ -0.1641194075345993, 0.007137104868888855, 0.2608071267604828, 0.11174751818180084, -0.6125907301902771, -0.6688781976699829, 0.20018741488456726, 0.7648206949234009, -1.518488883972168, 0.20603127777576447, -0.9385585784912109, -1.2160391807556152, -1.2168843746185303, 0.4376161992549896,...
func (c *ConstAffine) Apply(in anydiff.Res, n int) anydiff.Res { cr := in.Output().Creator() return anydiff.AddScalar( anydiff.Scale(in, cr.MakeNumeric(c.Scale)), cr.MakeNumeric(c.Bias), ) }
[ -0.1644141674041748, -0.10350465029478073, 0.20378397405147552, 0.36659303307533264, -0.2939695417881012, -0.11890540271997452, 0.20308981835842133, 0.17028893530368805, -0.7191311717033386, -0.47291120886802673, -0.3943266272544861, -0.918134868144989, -0.543173611164093, 0.52697646617889...
func (c *ConstAffine) SerializerType() string { return "github.com/unixpickle/anynet.ConstAffine" }
[ 0.24086882174015045, -0.22891975939273834, 0.1619146466255188, 0.5646636486053467, 0.558021068572998, -0.039608653634786606, 0.25802382826805115, 1.193703532218933, 0.056229107081890106, -0.06592516601085663, -0.4771570861339569, -0.8128093481063843, -0.9338069558143616, 0.9454504251480103...
func (c *ConstAffine) Serialize() ([]byte, error) { return serializer.SerializeAny(c.Scale, c.Bias) }
[ -0.47271955013275146, 0.18549109995365143, 0.27290040254592896, 0.8430328369140625, 0.4798294007778168, -0.7726092338562012, -0.26677727699279785, -0.024586496874690056, -1.477729082107544, 0.23814910650253296, -1.1343133449554443, -0.6262865662574768, -1.4770427942276, 0.9438599944114685,...
func (uh UserHandler) CreateUser(w http.ResponseWriter, r *http.Request) { log.Print(utils.InfoLog + "UserHandler:CreateUser called") var newUser models.User reqBody, genErr := ioutil.ReadAll(r.Body); if genErr != nil { utils.ReturnWithError(w, http.StatusBadRequest, http.StatusText(http.StatusBadRequest), genErr...
[ -1.1936426162719727, -0.7948285341262817, 1.1506054401397705, 0.7575318217277527, 0.1886964738368988, 0.9663073420524597, 0.3638216555118561, -0.4169248342514038, 0.22084464132785797, -0.16848774254322052, -0.6247212886810303, -0.21924380958080292, -0.28685104846954346, 1.0074386596679688,...
func (uh UserHandler) GetAllUsers(w http.ResponseWriter, r *http.Request) { log.Print(utils.InfoLog + "UserHandler:GetAllUsers called") var results *[]models.User results, err := uh.UserManager.GetUsers(); if err != nil { utils.ReturnWithErrorLong(w, *err) log.Println(utils.ErrorLog + "Insert body here") // TOD...
[ -1.3005446195602417, -0.26923060417175293, 0.7743654847145081, 0.813022255897522, -0.33206045627593994, 0.20067672431468964, -0.25181543827056885, -0.12141240388154984, 0.4613289535045624, -0.4361249506473541, -0.5205090641975403, 0.44528475403785706, -0.32515931129455566, 1.17427885532379...
func Fibonacci(n int) (f int) { if n == 0 { return 0 } else if n == 1 { return 1 } else { f = Fibonacci(n-2) + Fibonacci(n-1) } return }
[ 0.04044065997004509, 0.8965595960617065, 0.16854576766490936, 1.397071361541748, 0.535874605178833, -0.8436086177825928, 0.9064522981643677, 0.08620472252368927, -0.08595063537359238, -0.4076877534389496, -0.255784809589386, 0.11955419182777405, 0.21172000467777252, 0.7894496321678162, 0...
func findGreaterOrEqualInLooping(base int, acceptable []int) (int, bool) { looped := false closest := findGreaterOrEqualIn(base, acceptable) if closest == -1 { looped = true closest = findGreaterOrEqualIn(0, acceptable) } if closest == -1 { panic(fmt.Sprintf("All acceptable integers given are negative!")) }...
[ -0.906583309173584, -0.09946224093437195, 0.6749777793884277, 0.3388451039791107, -1.4141089916229248, 1.4118973016738892, -0.5841907262802124, -0.5046473741531372, -0.6762831211090088, 0.7737863659858704, 0.36674636602401733, 0.6608228087425232, -1.2430484294891357, 1.213173747062683, 0...
func findGreaterOrEqualIn(base int, acceptable []int) int { if base < 0 { panic(fmt.Sprintf("%v is not a positive integer!", base)) } for _, value := range acceptable { if value >= base { return value } } return -1 }
[ -0.5686514377593994, -0.3105212450027466, 0.4978814423084259, 0.14372533559799194, -1.2914352416992188, 0.4582805633544922, -0.7072032690048218, -0.3607984483242035, -0.751530110836029, 0.5224047899246216, 0.6935969591140747, 0.2380722612142563, -1.1978933811187744, 0.8056453466415405, 0...
func extractHourAndMinute(formatted string) (int, int) { time := strings.Split(formatted, ":") if len(time) < 2 { panic(fmt.Sprintf("Invalid argument \"%v\", supposed to be in the HH:MM format", formatted)) } hour, err := strconv.Atoi(time[0]) if err != nil { panic(fmt.Sprint("Something improbable went wrong ...
[ -0.36219751834869385, -1.4354544878005981, 0.8223581910133362, 0.3472699224948883, -0.3451424241065979, 0.11699765920639038, -0.3836033046245575, 0.5618228912353516, -0.21453678607940674, 0.562900960445404, -0.19098180532455444, 0.09082295745611191, -0.8593406081199646, -0.4179371893405914...
func extractAcceptableIntegers(valuesString string, limit int) []int { var acceptableInts []int if valuesString == "*" { for i := 0; i <= limit; i++ { acceptableInts = append(acceptableInts, i) } return acceptableInts } valueStrings := strings.Split(valuesString, ",") for _, valueString := range valueStr...
[ -0.6838473081588745, -0.35278934240341187, 0.5939576029777527, -0.17521758377552032, -1.2486958503723145, -0.14651286602020264, 0.2442137598991394, 0.5306546092033386, -0.09662247449159622, 0.4536495804786682, 0.7036343216896057, 0.8769121766090393, -0.7136375904083252, -0.549279510974884,...
func init() { root := controllers.Registry var ok bool var stock *controllers.Group stock, ok = root.GetGroup("/stock") if !ok { stock = root.AddGroup("/stock") } var barcode *controllers.Group barcode, ok = stock.GetGroup("/barcode") if !ok { barcode = stock.AddGroup("/barcode") } if barcode.HasControll...
[ 0.15499231219291687, 0.9044585824012756, 0.6554731726646423, 0.12140800803899765, 1.4692697525024414, -0.2654411792755127, 0.24252508580684662, -0.13970354199409485, -0.1844373345375061, -1.1066542863845825, 0.02503844164311886, 0.5364878177642822, -0.11175776273012161, 1.5851389169692993,...
func (r *gatewayThree) Run() { r.state = RstateRunning // event handling is a NOP in this model rxcallback := func(ev EventInterface) int { log(LogV, "rxcallback", r.String(), ev.String()) // validate that we got response from the right target id := ev.GetSource().GetID() assert(r.waitingResponse[id] != 0)...
[ -0.7557469606399536, -0.05250435695052147, 0.6853880882263184, -0.9127792716026306, 0.7489780783653259, -0.1017831340432167, 0.4087368845939636, -0.13143755495548248, 0.574013352394104, 0.0661601796746254, -0.7787619829177856, -0.1379815638065338, -0.252386212348938, -0.08575829863548279, ...
func (r *serverThree) Run() { r.state = RstateRunning // event handling is a NOP in this model rxcallback := func(ev EventInterface) int { assert(r == ev.GetTarget()) log(LogV, "rxcallback", r.String(), ev.String()) realevent, ok := ev.(*TimedUniqueEvent) assert(ok) // send the response gwysrc := ev.G...
[ -0.7288629412651062, 0.09375540167093277, 0.6262897253036499, -0.8703860640525818, 0.7012915015220642, 0.45659685134887695, 0.3929624557495117, -0.024878855794668198, 0.6828582286834717, -0.19077275693416595, -1.2385056018829346, -0.12758199870586395, -0.29409316182136536, -0.3151208758354...
func (m *modelThree) NewGateway(i int) NodeRunnerInterface { gwy := &gatewayThree{ NodeRunnerBase: NodeRunnerBase{RunnerBase: RunnerBase{id: i}, strtype: GWY}, waitingResponse: nil, } gwy.init(config.numServers) l := cap(gwy.eps) gwy.waitingResponse = make([]int64, l) return gwy }
[ -0.356303870677948, 0.7677911520004272, 0.3491634726524353, -0.19035571813583374, -0.3056235909461975, 0.5847390294075012, 0.49505993723869324, -0.5548577308654785, 0.05012219399213791, 0.28298473358154297, -0.712095320224762, 0.050477415323257446, -0.8463545441627502, 0.6634857058525085, ...
func LookupApp(ctx *pulumi.Context, args *LookupAppArgs, opts ...pulumi.InvokeOption) (*LookupAppResult, error) { var rv LookupAppResult err := ctx.Invoke("azure-native:iotcentral/v20180901:getApp", args, &rv, opts...) if err != nil { return nil, err } return &rv, nil }
[ 0.30611473321914673, -0.03857099264860153, 0.5760708451271057, -0.17610716819763184, 0.3076070249080658, 1.1778188943862915, -0.4221073389053345, -0.7348703742027283, 0.9113659858703613, 0.6521371603012085, 0.857695996761322, 0.39395344257354736, 0.1325647085905075, -1.721642017364502, 0...
func (s *store) GetStaleSourcedCommits(ctx context.Context, minimumTimeSinceLastCheck time.Duration, limit int, now time.Time) (_ []shared.SourcedCommits, err error) { ctx, trace, endObservation := s.operations.getStaleSourcedCommits.With(ctx, &err, observation.Args{}) defer endObservation(1, observation.Args{}) tx...
[ -0.5686395764350891, 0.6500186324119568, 0.9108020067214966, -0.43736544251441956, -0.40305259823799133, -0.4041713774204254, -0.09640735387802124, -0.22782759368419647, -0.22415879368782043, -0.057170990854501724, -0.2836441695690155, 0.6063548922538757, -0.31706392765045166, 0.3733285963...
func (s *store) UpdateSourcedCommits(ctx context.Context, repositoryID int, commit string, now time.Time) (uploadsUpdated int, err error) { ctx, trace, endObservation := s.operations.updateSourcedCommits.With(ctx, &err, observation.Args{LogFields: []log.Field{ log.Int("repositoryID", repositoryID), log.String("com...
[ -0.5827387571334839, -0.12389856576919556, 0.6887693405151367, -0.6059544086456299, -0.6749230027198792, -0.641166090965271, 0.16885145008563995, -0.5552093982696533, -0.2830321788787842, 0.4830414950847626, -1.0014609098434448, 0.7720348238945007, -0.9497919082641602, 0.6032456755638123, ...
func (s *store) DeleteSourcedCommits(ctx context.Context, repositoryID int, commit string, maximumCommitLag time.Duration, now time.Time) ( uploadsUpdated, uploadsDeleted int, err error, ) { ctx, trace, endObservation := s.operations.deleteSourcedCommits.With(ctx, &err, observation.Args{LogFields: []log.Field{ log...
[ 0.6293586492538452, 0.08034533262252808, 0.6438964009284973, -0.13227534294128418, -0.459765762090683, -0.6773098707199097, 0.3988862931728363, -0.11122476309537888, -0.2934543490409851, 0.17493559420108795, -0.25828197598457336, 0.17566771805286407, -0.3078591823577881, 0.9777053594589233...
func (s *store) GetCommitsVisibleToUpload(ctx context.Context, uploadID, limit int, token *string) (_ []string, nextToken *string, err error) { ctx, _, endObservation := s.operations.getCommitsVisibleToUpload.With(ctx, &err, observation.Args{LogFields: []log.Field{ log.Int("uploadID", uploadID), log.Int("limit", l...
[ -0.10668004304170609, 0.3886035978794098, 0.8159094452857971, -1.473874568939209, -0.4569050073623657, -0.8429239988327026, -0.05182098224759102, -0.8676672577857971, -0.08595670014619827, 0.6477780938148499, 0.211879700422287, 0.7744393348693848, -0.4042387902736664, -0.4627552926540375, ...
func (s *store) GetOldestCommitDate(ctx context.Context, repositoryID int) (_ time.Time, _ bool, err error) { ctx, _, endObservation := s.operations.getOldestCommitDate.With(ctx, &err, observation.Args{LogFields: []log.Field{ log.Int("repositoryID", repositoryID), }}) defer endObservation(1, observation.Args{}) ...
[ 0.17143133282661438, 0.2985876500606537, 0.5685375332832336, -1.0382109880447388, 0.003129172371700406, -0.9989251494407654, -0.3907923400402069, -0.8161866068840027, -0.35184356570243835, 0.05637910217046738, 0.3176429569721222, -0.131170853972435, -1.0963492393493652, 1.0016294717788696,...
func NewStats() *Stats { r := &Stats{ AdaptiveSelection: make(map[string]AdaptiveSelection, 0), Attributes: make(map[string]string, 0), Breakers: make(map[string]Breaker, 0), ScriptCache: make(map[string][]ScriptCache, 0), ThreadPool: make(map[string]ThreadCount, 0), } return ...
[ 0.25318723917007446, -0.8668131232261658, 0.0563858337700367, -0.8851884007453918, -0.4159693717956543, -0.18061582744121552, -0.03209678828716278, -1.3262807130813599, 0.5140285491943359, -0.655755877494812, 0.07837657630443573, 0.42419612407684326, -0.2020854949951172, 0.8681237101554871...
func (a *AuthToken) AsSignable() ([]byte, error) { clone := &AuthToken{ AccessToken: a.AccessToken, Time: a.Time, } return json.Marshal(clone) }
[ -0.6344262957572937, -1.2608405351638794, 0.47996240854263306, -0.8168898820877075, -0.32374292612075806, 0.05445317178964615, -1.186248540878296, 0.10774434357881546, -0.1835995465517044, 0.7758193612098694, -1.0674934387207031, 1.2442035675048828, 0.3505919575691223, -0.4030909240245819,...
func (a *AuthToken) Verify(edPk ed25519.PublicKey) bool { if a.Sig == nil { return false } payload, err := a.AsSignable() if err != nil { // TODO: log return false } return ed25519.Verify(edPk, payload, a.Sig) }
[ -0.7528932094573975, 0.3323775827884674, 0.4373386800289154, 0.22455519437789917, -0.10803786665201187, 0.34575679898262024, -0.20168174803256989, -0.0012837568065151572, -0.16431891918182373, 0.15176808834075928, -1.2783548831939697, 0.14417040348052979, -0.23392455279827118, 1.3213945627...
func (s *Store) Register(name string, f InitFunc) error { if f == nil { return errdefs.InvalidInput("provided init function cannot not be nil") } s.mu.Lock() s.ls[name] = f s.mu.Unlock() return nil }
[ -0.2680310904979706, -0.1605537384748459, 0.3137725591659546, 0.1758471578359604, -0.05664190649986267, -0.48655861616134644, -0.07136894762516022, 0.8477903008460999, -0.35895422101020813, -0.8887144327163696, -0.8245905637741089, 0.3935222625732422, -0.13010132312774658, -0.2057331949472...
func (s *Store) Get(name string) InitFunc { s.mu.Lock() f := s.ls[name] s.mu.Unlock() return f }
[ -0.5126058459281921, -0.7828845977783203, 0.45090746879577637, -0.6870042681694031, -0.6304896473884583, -1.141005277633667, -0.05430442839860916, -0.08578050881624222, 0.4887230694293976, -0.6427516937255859, -0.638868510723114, 0.8207908272743225, -0.24682366847991943, -0.929169595241546...
func (s *Store) List() []string { s.mu.Lock() defer s.mu.Unlock() ls := make([]string, 0, len(s.ls)) for p := range s.ls { ls = append(ls, p) } return ls }
[ -0.09159160405397415, -1.1068639755249023, 0.19019204378128052, -0.27749103307724, -0.24925674498081207, -0.01775263622403145, -0.9222362041473389, 0.9525856375694275, 1.2567055225372314, 0.4619733989238739, 0.08586965501308441, 0.7498487234115601, -0.20201025903224945, 0.46968019008636475...
func (s *Store) Exists(name string) bool { s.mu.Lock() _, ok := s.ls[name] s.mu.Unlock() return ok }
[ -0.9963021874427795, -0.5773299336433411, 0.45523306727409363, -0.7918408513069153, -0.5285809636116028, 0.017079630866646767, -0.6927650570869446, 0.05441301688551903, 0.5729845762252808, 0.19407686591148376, -0.6604487895965576, -0.4043547511100769, -0.38064488768577576, -0.1887732744216...
func (o *UpdateProductsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewUpdateProductsOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil ...
[ -0.8468606472015381, -1.4414350986480713, 0.8397095203399658, 0.6057404279708862, -0.04339826852083206, -0.6724115610122681, 0.1462598294019699, -0.5557602643966675, 0.8130175471305847, 0.8624961376190186, 0.04189590364694595, -0.39170005917549133, -0.9453819990158081, -0.2694481909275055,...
func NewUpdateProductsOK() *UpdateProductsOK { return &UpdateProductsOK{} }
[ -1.2606959342956543, -1.0400351285934448, 0.4236709773540497, 0.9928984642028809, -1.2619794607162476, -0.1393624097108841, 0.728981614112854, -0.22406509518623352, -0.0052933162078261375, 0.9942522644996643, -0.884367048740387, -0.06622385233640671, 0.7466126680374146, -0.5890857577323914...
func NewUpdateProductsBadRequest() *UpdateProductsBadRequest { return &UpdateProductsBadRequest{} }
[ -1.6704044342041016, -0.8490434885025024, 0.6445645689964294, 0.6779789924621582, -0.7743974924087524, 0.26353919506073, -0.44089585542678833, 0.08747173100709915, 0.3417230248451233, 0.4625553786754608, -0.4542129337787628, 0.6083676815032959, 0.10879446566104889, -0.20273332297801971, ...
func NewUpdateProductsUnauthorized() *UpdateProductsUnauthorized { return &UpdateProductsUnauthorized{} }
[ -1.5408705472946167, -0.7795032262802124, 0.5141119956970215, 0.8904464244842529, -1.264876365661621, 0.026140794157981873, 0.19458340108394623, 0.6174353361129761, 0.5816525816917419, -0.0710940733551979, -0.6038229465484619, 1.1611928939819336, 0.05185696855187416, -1.2382817268371582, ...
func NewUpdateProductsForbidden() *UpdateProductsForbidden { return &UpdateProductsForbidden{} }
[ -0.5992174744606018, -0.38275283575057983, 0.5074413418769836, 0.9979289770126343, -0.817699670791626, 0.7262755632400513, 0.368546724319458, -0.6103218197822571, 0.05475630238652229, 0.5884117484092712, -0.6877211332321167, 0.7552520632743835, -0.35293659567832947, -1.2869248390197754, ...
func NewUpdateProductsNotFound() *UpdateProductsNotFound { return &UpdateProductsNotFound{} }
[ -1.1751718521118164, -1.9538583755493164, 0.27682799100875854, 0.0855560153722763, -0.463278591632843, 1.1493290662765503, 0.402351438999176, -0.06057623028755188, 0.5765590071678162, 0.5505304932594299, -0.6829593777656555, 0.21051058173179626, -0.027956534177064896, -0.6225385665893555, ...
func NewUpdateProductsTooManyRequests() *UpdateProductsTooManyRequests { return &UpdateProductsTooManyRequests{} }
[ -1.8793652057647705, -0.5120947957038879, 0.5122767686843872, 0.33862313628196716, -0.15199892222881317, -0.2633303701877594, -0.11820944398641586, -0.27800002694129944, 0.8122395873069763, 1.082764983177185, -0.4186256527900696, -0.26009678840637207, 0.005156427621841431, -0.5604154467582...
func NewPairAnyValueAnyValue(type_ string, ) *PairAnyValueAnyValue { this := PairAnyValueAnyValue{} this.Type = type_ return &this }
[ -0.8025039434432983, -1.1703455448150635, 0.4785207211971283, 0.92210453748703, -1.0069974660873413, -0.7050075531005859, -0.3943801820278168, 0.15382298827171326, -0.46998029947280884, -1.167995810508728, -0.1549588143825531, -0.45060428977012634, -0.44604548811912537, -0.0583441928029060...
func NewPairAnyValueAnyValueWithDefaults() *PairAnyValueAnyValue { this := PairAnyValueAnyValue{} var type_ string = "Pair_AnyValue_AnyValue_" this.Type = type_ return &this }
[ -0.6678363084793091, -0.6478052139282227, 0.33341923356056213, 1.1341952085494995, -0.44885802268981934, -0.45607590675354004, -0.7329373359680176, 0.19443295896053314, -0.20707274973392487, -1.5289570093154907, -0.49907973408699036, -1.5423915386199951, -0.7593625783920288, 0.615221679210...
func (o *PairAnyValueAnyValue) GetFirst() interface{} { if o == nil { var ret interface{} return ret } return o.First }
[ 0.1918194591999054, 0.6245459914207458, 0.2601041793823242, 1.1881859302520752, 0.27954739332199097, -0.6987320780754089, 0.41651758551597595, -0.022639935836195946, 0.4348028004169464, -0.6790725588798523, -0.2554488778114319, -0.05923972651362419, -0.08612468093633652, 0.5865893959999084...
func (o *PairAnyValueAnyValue) GetFirstOk() (*interface{}, bool) { if o == nil || o.First == nil { return nil, false } return &o.First, true }
[ 0.3477364182472229, -0.12858135998249054, 0.542819082736969, 1.2391430139541626, 0.04413526505231857, -0.68809574842453, 0.22819942235946655, 0.29587918519973755, 0.08741584420204163, -0.36469584703445435, -0.4857536852359772, -0.3481089770793915, 0.2932720482349396, 1.6123385429382324, ...
func (o *PairAnyValueAnyValue) HasFirst() bool { if o != nil && o.First != nil { return true } return false }
[ 0.47944197058677673, 0.5001538991928101, 0.42058128118515015, 0.3193114101886749, 0.5802156329154968, -1.1847984790802002, -0.6225317716598511, 0.5207000374794006, -0.2573643624782562, -0.8798726797103882, -0.6746699213981628, -0.721377968788147, 0.019752321764826775, 1.006150484085083, ...
func (o *PairAnyValueAnyValue) GetSecond() interface{} { if o == nil { var ret interface{} return ret } return o.Second }
[ 0.5980885028839111, -0.12205416709184647, 0.23247525095939636, 1.5324277877807617, -0.5177180767059326, -0.8348643779754639, 0.5264668464660645, -0.29414334893226624, 0.03879762440919876, -0.950463593006134, -0.5728290677070618, -0.37703797221183777, -0.6245730519294739, 0.4804320335388183...
func (o *PairAnyValueAnyValue) GetSecondOk() (*interface{}, bool) { if o == nil || o.Second == nil { return nil, false } return &o.Second, true }
[ 0.06980692595243454, -0.5469434261322021, 0.7823366522789001, 1.7255926132202148, -0.40072742104530334, -0.5163483619689941, 0.415557861328125, 0.40955016016960144, -0.45442551374435425, -0.4496113061904907, -1.0686631202697754, 0.26880940794944763, 0.7267906069755554, 1.172701358795166, ...
func (o *PairAnyValueAnyValue) HasSecond() bool { if o != nil && o.Second != nil { return true } return false }
[ 1.4313594102859497, -0.23829078674316406, 0.5316739678382874, 0.8379038572311401, 0.09418589621782303, -0.4859357476234436, -0.39133498072624207, 0.48602375388145447, -1.0074961185455322, -1.573936104774475, -0.693795382976532, -0.5294202566146851, 0.28940674662590027, 1.2333837747573853, ...
func (o *PairAnyValueAnyValue) GetType() string { if o == nil { var ret string return ret } return o.Type }
[ 0.049137815833091736, 0.4175730049610138, -0.13540679216384888, 1.0677157640457153, 0.5427448749542236, -0.21047663688659668, 0.39606359601020813, -0.13826927542686462, 0.7865622043609619, -0.4532904028892517, 0.24261337518692017, -0.9198832511901855, -0.6703954935073853, 0.243503719568252...
func (o *PairAnyValueAnyValue) GetTypeOk() (*string, bool) { if o == nil { return nil, false } return &o.Type, true }
[ -0.18999050557613373, 0.25272712111473083, 0.689384937286377, 1.0026143789291382, 0.19246052205562592, 0.4058709144592285, 0.5526430606842041, 0.08356386423110962, 0.1622115820646286, 0.8573304414749146, -0.9647478461265564, -0.7401906847953796, -0.3622584640979767, 0.403524786233902, 0....
func (o *PairAnyValueAnyValue) SetType(v string) { o.Type = v }
[ -0.40830862522125244, 0.0956757664680481, -0.03052203357219696, 0.5907336473464966, -0.4832600951194763, -0.26814064383506775, -0.06423598527908325, 0.2108989804983139, 0.06927662342786789, -0.12038249522447586, -0.21556764841079712, -0.02393118478357792, -0.6240655183792114, 0.30057212710...
func (b Bounds3) Corner(i int) Point3 { var pX, pY, pZ float64 if i&1 != 0 { pX = b.pMax.X } else { pX = b.pMin.X } if i&2 != 0 { pY = b.pMax.Y } else { pY = b.pMin.Y } if i&4 != 0 { pZ = b.pMax.Z } else { pZ = b.pMin.Z } return Point3{X: pX, Y: pY, Z: pZ} }
[ 0.1148628368973732, -1.831775188446045, 0.6950165033340454, 0.14811266958713531, -0.23753347992897034, 1.2494299411773682, 0.22658434510231018, -0.16708654165267944, 1.2564918994903564, 0.11145691573619843, 0.2853747010231018, 0.05489518493413925, -0.6201422214508057, -0.5906339287757874, ...
func (b Bounds3) MaxExtent() int { d := b.Diagonal() if d.X > d.Y && d.X > d.Z { return 0 } else if d.Y > d.Z { return 1 } else { return 2 } }
[ 0.6177844405174255, -0.0698089748620987, 0.7034339308738708, 0.5196132659912109, -0.5530856251716614, 0.8556020259857178, 0.011430813930928707, -0.11999081075191498, 1.390744686126709, 0.4377218186855316, -0.7333701252937317, -0.23505069315433502, -0.5391466021537781, 0.0010812737746164203...
func (b Bounds3) Lerp(t Point3) Point3 { x := Lerp(t.X, b.pMin.X, b.pMax.X) y := Lerp(t.Y, b.pMin.Y, b.pMax.Y) z := Lerp(t.Z, b.pMin.Z, b.pMax.Z) return Point3{X: x, Y: y, Z: z} }
[ 0.28237077593803406, -0.6433419585227966, 0.6553866863250732, -0.36235758662223816, -0.6666090488433838, 1.404633641242981, -1.282414197921753, -0.32147401571273804, 0.9701967835426331, 0.7491119503974915, -0.024792226031422615, -0.6801946759223938, -0.4743390381336212, -1.0787527561187744...
func (b Bounds3) Offset(p Point3) Vec3 { o := p.SubtractP(b.pMin) if b.pMax.X > b.pMin.X { o.X /= b.pMax.X - b.pMin.X } if b.pMax.Y > b.pMin.Y { o.Y /= b.pMax.Y - b.pMin.Y } if b.pMax.Z > b.pMin.Z { o.Z /= b.pMax.Z - b.pMin.Z } return o }
[ 0.6725558638572693, -0.7157633304595947, 0.7702439427375793, 0.4017883837223053, -1.2360600233078003, 2.6097311973571777, 0.26648324728012085, 0.6883895993232727, 1.032898187637329, 0.3076907992362976, 0.23913173377513885, 0.29321911931037903, -0.928783118724823, -0.6009337902069092, 0.3...
func (b Bounds3) IntersectP(ray Ray) (bool, float64, float64) { t0 := float64(0) t1 := ray.tMax for i := 0; i < 3; i++ { // cheaper to multiply than divide so compute reciprocal first invRayDir := 1 / ray.Dir.Get(i) tNear := (b.pMin.Get(i) - ray.Orig.Get(i)) * invRayDir tFar := (b.pMax.Get(i) - ray.Orig.Get(...
[ 0.0282584335654974, -0.18158532679080963, 0.9974365234375, 0.17231270670890808, -0.6134159564971924, 1.0769599676132202, -0.3056259751319885, 0.5880270004272461, -0.12099400162696838, 1.2834911346435547, -0.12285366654396057, -0.8426815271377563, -1.3406288623809814, -0.0014059074455872178...
func UnionB3P(b Bounds3, p Point3) Bounds3 { p1 := Point3{X: math.Min(b.pMin.X, p.X), Y: math.Min(b.pMin.Y, p.Y), Z: math.Min(b.pMin.Z, p.Z)} p2 := Point3{X: math.Max(b.pMax.X, p.X), Y: math.Max(b.pMax.Y, p.Y), Z: math.Max(b.pMax.Z, p.Z)} return Bounds3{p1, p2} }
[ 1.0549136400222778, -0.4557167589664459, 0.8477067947387695, 0.27848851680755615, 0.1421462744474411, 1.6370747089385986, -1.2607160806655884, -0.0345735028386116, 0.8554891347885132, 1.3024492263793945, -0.46391820907592773, 0.2786708176136017, -1.4613661766052246, -1.3211451768875122, ...
func UnionB3B3(b0, b1 Bounds3) Bounds3 { p1 := Point3{X: math.Min(b0.pMin.X, b1.pMin.X), Y: math.Min(b0.pMin.Y, b1.pMin.Y), Z: math.Min(b0.pMin.Z, b1.pMin.Z)} p2 := Point3{X: math.Max(b0.pMax.X, b1.pMax.X), Y: math.Max(b0.pMax.Y, b1.pMax.Y), Z: math.Max(b0.pMax.Z, b1.pMax.Z)} return Bounds3{p1, p2} }
[ 0.8676503896713257, -0.37581372261047363, 0.8988007307052612, 0.18084701895713806, 0.36448243260383606, 1.2131696939468384, -0.9768533706665039, -0.052284467965364456, 0.35544201731681824, 0.9235200881958008, -0.6239838004112244, 0.404460608959198, -1.3816514015197754, -0.4688725769519806,...
func ExpandB3(b Bounds3, t float64) Bounds3 { delta := Vec3{X: t, Y: t, Z: t} return Bounds3{b.pMin.SubtractV(delta), b.pMax.AddV(delta)} }
[ 1.059936285018921, 0.04701125621795654, 0.794867992401123, 0.7118043899536133, -0.3568260073661804, 1.3817552328109741, -0.7343628406524658, 0.6754102110862732, 0.733975887298584, 0.09748701006174088, -0.05872488394379616, -0.21728374063968658, -1.4424904584884644, -0.15720267593860626, ...
func (b Bounds2) Corner(i int) Point2 { var pX, pY float64 if i&1 != 0 { pX = b.pMax.X } else { pX = b.pMin.X } if i&2 != 0 { pY = b.pMax.Y } else { pY = b.pMin.Y } return Point2{X: pX, Y: pY} }
[ -0.20905034244060516, -2.0127625465393066, 0.6401005983352661, 0.2632620632648468, -0.44936829805374146, 0.8153448104858398, 0.1902364194393158, -0.32864144444465637, 0.9346863031387329, -0.11421328037977219, 0.6460860371589661, 0.3838701844215393, -0.06777793914079666, -0.2820018231868744...