text
stringlengths
11
6.3k
embedding
listlengths
768
768
func (_DayLimitMock *DayLimitMockTransactorSession) ResetSpentToday() (*types.Transaction, error) { return _DayLimitMock.Contract.ResetSpentToday(&_DayLimitMock.TransactOpts) }
[ -0.24797119200229645, 0.07265818864107132, 0.41925981640815735, 0.2768842577934265, 0.6350542902946472, -0.6244346499443054, 0.6622827053070068, -0.6770806908607483, -0.20634359121322632, 0.4466595947742462, -0.45494046807289124, 0.26626092195510864, -0.23687495291233063, -0.45440882444381...
func (_DayLimitMock *DayLimitMockTransactor) SetDailyLimit(opts *bind.TransactOpts, _newLimit *big.Int) (*types.Transaction, error) { return _DayLimitMock.contract.Transact(opts, "setDailyLimit", _newLimit) }
[ -0.7802696228027344, 0.8342170119285583, 0.5236907005310059, 0.7954049110412598, -0.06582999974489212, -0.469156950712204, 0.35123658180236816, 0.024254685267806053, -0.4311295449733734, 0.17028293013572693, -0.8008456826210022, -0.1663106232881546, 0.03503688424825668, 0.07837307453155518...
func (_DayLimitMock *DayLimitMockSession) SetDailyLimit(_newLimit *big.Int) (*types.Transaction, error) { return _DayLimitMock.Contract.SetDailyLimit(&_DayLimitMock.TransactOpts, _newLimit) }
[ -0.532599151134491, 0.7227201461791992, 0.431459903717041, 0.7671759128570557, -0.020659446716308594, -0.6572313904762268, 0.45669615268707275, -0.04987504333257675, -0.3186814486980438, 0.21847271919250488, -0.8696259260177612, -0.2287343293428421, 0.09420134127140045, -0.1302040368318557...
func (_DayLimitMock *DayLimitMockTransactorSession) SetDailyLimit(_newLimit *big.Int) (*types.Transaction, error) { return _DayLimitMock.Contract.SetDailyLimit(&_DayLimitMock.TransactOpts, _newLimit) }
[ -0.5479186773300171, 0.7489550709724426, 0.4409979283809662, 0.6652527451515198, 0.03598627820611, -0.6077287793159485, 0.4088458716869354, 0.01888291910290718, -0.35759350657463074, 0.1968078464269638, -0.7160743474960327, -0.22569473087787628, 0.1639842987060547, -0.14460556209087372, ...
func (r *CampaignRow) GetID() string { return r.Data.ID }
[ 0.717921793460846, -0.21499837934970856, 0.1302185356616974, -0.08966536074876785, 0.19454316794872284, 0.5394512414932251, -0.3272322714328766, 0.028834419324994087, 1.5587098598480225, 0.18078695237636566, 0.057807862758636475, 0.39784297347068787, -0.634281575679779, 0.41785264015197754...
func (r *CampaignRow) SetID(id string) { r.Data.ID = id }
[ 0.057111311703920364, -0.17268285155296326, 0.020748358219861984, -0.10919226706027985, -0.2593940198421478, 0.8038049936294556, -0.7352492213249207, 0.5117320418357849, 1.4758142232894897, 0.1651785671710968, -0.7591409683227539, 0.41573119163513184, -0.2526550889015198, 1.085584878921508...
func (r *CampaignRow) GetPopName() string { return *r.Data.PopName }
[ -0.5724928975105286, 0.3393494784832001, 0.4192854166030884, 0.15421442687511444, -1.2331948280334473, -0.15372642874717712, -0.3768002986907959, -0.2985897660255432, 0.4561869502067566, 1.0623555183410645, 0.28271186351776123, -0.7861837148666382, 0.4495919644832611, -0.6872919797897339, ...
func (r *CampaignRow) SetPopName(popName string) { r.Data.PopName = &popName }
[ -0.763264536857605, 0.32816213369369507, 0.24321937561035156, 0.1872965693473816, -1.1904083490371704, -0.11502429842948914, -0.5396237373352051, 0.21638227999210358, 0.6997549533843994, 0.9025176167488098, -0.6090999841690063, -0.7610975503921509, 0.5139909982681274, -0.39072713255882263,...
func (r *CampaignRow) ClearPopName() { r.Data.PopName = nil }
[ -0.14194491505622864, 0.2681601047515869, 0.170410618185997, -0.22618919610977173, -1.549509882926941, 0.35402846336364746, -0.8675119280815125, -0.5598956942558289, 0.3632042407989502, 1.4679181575775146, 0.15510094165802002, -0.15084949135780334, 0.5720467567443848, -0.6338835954666138, ...
func (r *CampaignRow) HasValidPopName() bool { return r.Data.PopName != nil }
[ 0.001941476366482675, 0.10587237775325775, 0.24140362441539764, -0.1913769692182541, -0.5969502925872803, -0.4524408280849457, -0.9409246444702148, 0.11221026629209518, 0.5205199122428894, 0.0664868876338005, -0.5454808473587036, -1.5969653129577637, 0.30118006467819214, 0.2328405231237411...
func (r *CampaignRow) GetPopYear() int32 { return *r.Data.PopYear }
[ -0.10118182003498077, 0.3693844974040985, 0.5347034335136414, -0.2846944034099579, -1.0392636060714722, 0.5174760222434998, 0.07497509568929672, -0.4280310273170471, 0.2752512991428375, 0.44575896859169006, -0.23083479702472687, -0.1879623532295227, -0.06557974964380264, -0.107229515910148...
func (r *CampaignRow) SetPopYear(popYear int32) { r.Data.PopYear = &popYear }
[ -0.7474095821380615, 0.31241050362586975, 0.46807631850242615, -0.6772310733795166, -0.9652920961380005, 0.9378150105476379, -0.4318079650402069, -0.3171465992927551, 0.6450152397155762, 0.6754782199859619, -0.7351216077804565, -0.39779430627822876, 0.17400501668453217, 0.19401398301124573...
func (r *CampaignRow) ClearPopYear() { r.Data.PopYear = nil }
[ -0.024147506803274155, 0.11306913942098618, 0.31490686535835266, -0.5035983324050903, -1.1059120893478394, 0.9494783282279968, -0.8295111656188965, -0.5844463109970093, 0.3241268992424011, 1.5024278163909912, 0.080193430185318, 0.12209060043096542, 0.33751338720321655, -0.09243129938840866...
func (r *CampaignRow) HasValidPopYear() bool { return r.Data.PopYear != nil }
[ 0.0459914393723011, -0.2013130635023117, 0.3694065809249878, -0.2173905372619629, -0.38927897810935974, 0.134314626455307, -1.020163655281067, 0.2579207420349121, 0.27529919147491455, 0.04376120865345001, -0.3803119659423828, -1.2145472764968872, -0.07485819607973099, 0.5072277784347534, ...
func NewCampaignTable(h SQLHandle) *CampaignTable { return &CampaignTable{h} }
[ 1.0321612358093262, -0.9761161804199219, 0.011661714874207973, 0.53888338804245, -1.3598268032073975, -0.061495959758758545, 0.22602830827236176, 0.3136487901210785, -0.7356654405593872, 0.07516653835773468, -0.6293509602546692, 0.7466521263122559, -0.27577242255210876, 0.9292466640472412,...
func InsertCampaignRows(ctx context.Context, db SQLHandle, rows ...*CampaignRow) (numRows int64, err error) { numRows, err = execWithJSONArgs(ctx, db, SQLInsertCampaignRows, rows) if err != nil { return numRows, formatError("InsertCampaignRows", err) } return numRows, nil }
[ -0.8435972332954407, 0.7355316281318665, 0.3942365348339081, 0.2099149525165558, 0.13181576132774353, -0.16202573478221893, 0.4095028340816498, 0.9474409818649292, 0.003510306356474757, 0.506730854511261, -0.5743357539176941, -0.6908373236656189, -1.0576810836791992, 1.0468380451202393, ...
func InsertReturningCampaignRows(ctx context.Context, db SQLHandle, inputs ...*CampaignRow) (numRows int, err error) { rows := CampaignRows(inputs) numRows, err = queryWithJSONArgs(ctx, db, rows.ReceiveRows, SQLInsertReturningCampaignRows, rows) if err != nil { return numRows, formatError("InsertReturningCampaignR...
[ -0.4364849925041199, 0.2852250337600708, 0.40739673376083374, 0.048359598964452744, -0.1261155903339386, -0.26580917835235596, 0.5704982280731201, 0.574948251247406, -0.06155646592378616, 0.3353380858898163, -0.05104789882898331, -0.3830873668193817, -1.3810062408447266, 0.1066089347004890...
func FindCampaignRows(ctx context.Context, db SQLHandle, cond CampaignValues) (rows CampaignRows, err error) { if _, err = queryWithJSONArgs(ctx, db, rows.ReceiveRows, SQLFindCampaignRows, cond); err != nil { return nil, formatError("FindCampaignRows", err) } return rows, nil }
[ 0.17808791995048523, 0.010602942667901516, -0.01638215221464634, 0.2142370343208313, -0.5122373104095459, -0.2345222532749176, -0.13113580644130707, 0.2029392123222351, -0.03266918659210205, 0.22444219887256622, 0.4150964617729187, -0.17174005508422852, -0.30558037757873535, 2.186306715011...
func DeleteCampaignRows(ctx context.Context, db SQLHandle, cond CampaignValues) (numRows int64, err error) { if numRows, err = execWithJSONArgs(ctx, db, SQLDeleteCampaignRows, cond); err != nil { return numRows, formatError("DeleteCampaignRows", err) } return numRows, nil }
[ -0.32074683904647827, 0.03882577642798424, 0.3484756350517273, 0.4367614686489105, -0.5080387592315674, -0.2532831132411957, 0.24625755846500397, 0.688844621181488, 0.11875252425670624, -0.16046088933944702, 0.2915988862514496, -0.056704118847846985, -0.3028882145881653, 1.329209804534912,...
func CountCampaignRows(ctx context.Context, db SQLHandle, cond CampaignValues) (count int, err error) { if _, err = queryWithJSONArgs(ctx, db, func(int) []interface{} { return []interface{}{&count} }, SQLCountCampaignRows, cond); err != nil { return 0, formatError("CountCampaignRows", err) } return count, nil }
[ -0.08188590407371521, -0.03235390782356262, 0.3948724865913391, 0.40078771114349365, -0.6449189186096191, -0.048985205590724945, 0.10126933455467224, 0.6375269293785095, -0.6095787286758423, 0.6708831191062927, -0.3362377882003784, -0.17267920076847076, 0.16798371076583862, 1.7074179649353...
func SaveCampaignRows(ctx context.Context, db SQLHandle, rows ...*CampaignRow) (err error) { _, err = execWithJSONArgs(ctx, db, SQLSaveCampaignRows, rows) if err != nil { return formatError("SaveCampaignRows", err) } return nil }
[ -0.9608123898506165, -0.10123967379331589, 0.14653918147087097, 0.5921656489372253, 0.026636267080903053, 0.014207281172275543, 0.06822991371154785, 0.26783254742622375, 0.16250190138816833, 0.7865581512451172, -1.2105263471603394, -0.4546201229095459, -0.5477152466773987, 1.48820376396179...
func SaveReturningCampaignRows(ctx context.Context, db SQLHandle, inputs ...*CampaignRow) (err error) { rows := CampaignRows(inputs) _, err = queryWithJSONArgs(ctx, db, rows.ReceiveRows, SQLSaveReturningCampaignRows, rows) if err != nil { return formatError("SaveReturningCampaignRows", err) } return nil }
[ -0.5245192646980286, -0.3067975342273712, 0.14382418990135193, 0.008629392832517624, -0.16851197183132172, -0.11982690542936325, 0.3225288689136505, -0.0007939254865050316, 0.06767556816339493, 0.5082805156707764, -0.46260660886764526, -0.37081775069236755, -0.9459971189498901, 0.406082957...
func GetCampaignRowsByID(ctx context.Context, db SQLHandle, keys ...interface{}) (rows CampaignRows, err error) { rows = make(CampaignRows, 0, len(keys)) if _, err = queryWithJSONArgs(ctx, db, rows.ReceiveRows, SQLGetCampaignRowsByID, Keys(keys)); err != nil { return nil, formatError("GetCampaignRowsByID", err) } ...
[ -0.29545092582702637, -0.254741370677948, -0.04749530553817749, 0.19702328741550446, -0.31158387660980225, -0.9647497534751892, -0.3986038863658905, 0.08829309046268463, 0.36514174938201904, 0.6022267937660217, 0.10483993589878082, 0.36086219549179077, -0.37512755393981934, 1.3596584796905...
func DeleteCampaignRowsByID(ctx context.Context, db SQLHandle, keys ...interface{}) (numRows int64, err error) { numRows, err = execWithJSONArgs(ctx, db, SQLDeleteCampaignRowsByID, keys) if err != nil { return numRows, formatError("DeleteCampaignRowsByID", err) } return numRows, nil }
[ -0.2930033504962921, -0.4709474742412567, 0.15907339751720428, 0.05145641788840294, -0.1379997432231903, -0.6534717082977295, -0.10121917724609375, 0.18368543684482574, 0.5672515630722046, 0.05879918485879898, -0.042368900030851364, -0.024618251249194145, -0.37610626220703125, 1.2578294277...
func UpdateCampaignRowsByID(ctx context.Context, db SQLHandle, changeset CampaignValues, keys ...interface{}) (numRows int64, err error) { numRows, err = execWithJSONArgs(ctx, db, SQLUpdateCampaignRowsByID, changeset, keys) if err != nil { return numRows, formatError("UpdateCampaignRowsByID", err) } return numRow...
[ -0.8522003293037415, -0.6774879097938538, 0.1886632889509201, -0.0757456123828888, -0.8332775235176086, -0.8347818851470947, -0.43173226714134216, 0.14136478304862976, 0.11440688371658325, 0.8266170620918274, -0.3072320818901062, 0.47148117423057556, -0.3740161657333374, 1.2679224014282227...
func (r *CampaignRow) ReceiveRow() []interface{} { return []interface{}{&r.Data.ID, &r.Data.PopName, &r.Data.PopYear} }
[ -0.935904324054718, -0.48671242594718933, 0.6191915273666382, -0.9565996527671814, -0.342414528131485, 0.057159073650836945, -0.9693512916564941, 0.16150854527950287, 0.7439628839492798, 0.7377629280090332, -0.7050619721412659, 0.004746742080897093, 0.519881546497345, 0.5198282599449158, ...
func (rs *CampaignRows) ReceiveRows(i int) []interface{} { if len(*rs) <= i { *rs = append(*rs, new(CampaignRow)) } else if (*rs)[i] == nil { (*rs)[i] = new(CampaignRow) } return (*rs)[i].ReceiveRow() }
[ -0.7968161106109619, 0.08709883689880371, 0.5109858512878418, -0.7976723909378052, -0.19256004691123962, -0.7941174507141113, 0.05985255166888237, 0.15951262414455414, 1.502961277961731, 0.7452147603034973, -0.07583659887313843, -0.07443853467702866, -0.5435301661491394, 0.4544669091701507...
func (g *Group) Conflicts() int { return (len(g.PriorityStudents) + len(g.Students)) - g.Capacity }
[ -1.1260772943496704, 0.4062429666519165, 0.589288055896759, -0.10814467817544937, 0.09470414370298386, 0.23701408505439758, 0.7710259556770325, 0.6552484631538391, 0.10574714094400406, -0.6815500855445862, -0.7617677450180054, -1.0273185968399048, -1.20685875415802, -0.021899130195379257, ...
func (g *Group) Collide(a *Group) bool { // TODO: groups can be twice a week, so they can be on the same weekday and at the same hour // Frequency & start date if g.Weekday != a.Weekday { return false } // There is a fixed time schedule at the university if g.StartTime != a.StartTime { return false } retur...
[ -1.0896207094192505, 0.1375805139541626, 0.5675082206726074, 0.024314647540450096, -0.05959757789969444, 0.00603211484849453, 0.15214796364307404, -0.08022676408290863, 0.14738886058330536, 0.05886589363217354, 0.8999162912368774, -0.7294855713844299, -1.083661437034607, 0.7196531891822815...
func (g *Group) RemoveStudent(st *Student) { newStudents := []*Student{} for _, s := range g.Students { if st.Name != s.Name { newStudents = append(newStudents, s) } } g.Students = newStudents }
[ -1.5676876306533813, -0.5227622389793396, 0.2825535535812378, -0.6725443601608276, -1.0689406394958496, 0.5179880857467651, 0.061620403081178665, 0.33886051177978516, -0.61090487241745, 1.065387487411499, -1.1798465251922607, 0.6076895594596863, -0.29005059599876404, -0.057220444083213806,...
func (g *Group) Save() [][]string { res := make([][]string, len(g.PriorityStudents)+len(g.Students)) var i int saveStudents(g.PriorityStudents, res, &i) saveStudents(g.Students, res, &i) return res }
[ -1.4590703248977661, 0.05318179354071617, 0.34750303626060486, -0.6264822483062744, -0.20598310232162476, -0.35797223448753357, 0.48131388425827026, -0.10307155549526215, -0.38679900765419006, 0.9137082695960999, -0.7424599528312683, -0.2620308995246887, -0.6793704628944397, 0.633708715438...
func (ep *EntranceParkingService) GetID() int { return ep.ID }
[ 0.42375150322914124, 0.20912176370620728, 0.48788177967071533, 0.6746688485145569, 0.7513009905815125, 0.6948132514953613, 0.4361693561077118, 1.0088996887207031, 0.9367234706878662, -0.402048796415329, -0.012111186981201172, 0.025533122941851616, -0.8559779524803162, 0.4262597858905792, ...
func (ep *EntranceParkingService) SetID(id int) { ep.ID = id }
[ -0.23734095692634583, 0.038028765469789505, 0.35064250230789185, 0.8149104714393616, 0.1409761905670166, 1.096510410308838, 0.06481727212667465, 1.2211954593658447, 0.9965530037879944, -0.03656325116753578, -0.4359564483165741, -0.13720718026161194, -0.7299197912216187, 0.9466305375099182,...
func (ep *EntranceParkingService) Entrance(c echo.Context) (*int64, error) { db := c.Get("db").(*sql.DB) prepareStatement, err := db.Prepare("INSERT INTO Parking (status, start_time, department_store_id) VALUES (?, ?, ?)") if err != nil { return nil, err } defer prepareStatement.Close() response, err := prep...
[ -0.3176890015602112, 0.502438485622406, 0.9233065843582153, -0.7356544733047485, 0.18677553534507751, -0.11436288058757782, 1.2915421724319458, 0.6121596693992615, 0.2987734377384186, 0.5257114768028259, 0.12864822149276733, -0.22070960700511932, -1.0896220207214355, 0.673873782157898, 0...
func (e *MinimaxEngine) SuggestedMove(pos *chess.Position, maxPlayer bool) *chess.Move { startingDepth := 3 return e.minimax(pos, startingDepth, maxPlayer).move }
[ -0.5776901841163635, 0.1832529753446579, 0.3295571804046631, 0.3379731774330139, -0.6859925985336304, -0.34407496452331543, -0.7410064935684204, -0.18448884785175323, -0.12819011509418488, 0.3287871181964874, -0.09425098448991776, 0.45564061403274536, -0.32073265314102173, -0.4653084576129...
func (e *MinimaxEngine) minimax(pos *chess.Position, depth int, maxPlayer bool) *positionScore { if depth == 0 || len(pos.ValidMoves()) == 0 { return &positionScore{ value: e.evaluatePosition(pos), } } bestScore := &positionScore{} var comparator func(float64, float64) float64 if maxPlayer { bestScore.v...
[ -0.8991329073905945, -0.31145429611206055, 0.6238946914672852, 0.05057717114686966, 0.05054180324077606, -0.6861758828163147, -0.681754469871521, 0.6947115659713745, 0.014333527535200119, 0.29042404890060425, -0.020145706832408905, 0.3083727955818176, -0.5661505460739136, 0.13143390417099,...
func (e *MinimaxEngine) evaluatePosition(pos *chess.Position) float64 { str := pos.String() var acc float64 for piece, value := range pieceVals { acc += float64(strings.Count(str, piece)) * value } return acc }
[ 0.20900091528892517, -0.4126039743423462, 0.3697125017642975, -1.3376418352127075, -0.2134251743555069, -0.6415036916732788, -0.2542150020599365, 0.5929194092750549, -0.21118801832199097, 0.026275984942913055, -0.6366971731185913, -0.8493810892105103, -0.22836190462112427, 0.07026927173137...
func newSlot(id int) *slot { s := &slot{ id: id, mux: new(sync.Mutex), } s.elements = make(map[interface{}]interface{}) return s }
[ 0.06263116747140884, 0.24970468878746033, 0.06755156069993973, -0.6143819689750671, -1.8560711145401, -0.3240571916103363, 0.14455649256706238, -0.4191638231277466, 0.29125311970710754, -0.5487892627716064, -0.07883457094430923, 0.48534485697746277, 0.20352162420749664, -0.2122084051370620...
func (s *slot) add(c interface{}) { s.mux.Lock() defer s.mux.Unlock() s.elements[c] = c }
[ -0.3300958275794983, -0.17431005835533142, 0.23740339279174805, -0.27500319480895996, -0.6736158728599548, 1.0212961435317993, 0.778763473033905, 0.2428860068321228, 0.46626290678977966, -0.09416985511779785, 0.07808706164360046, 0.360351026058197, -0.5921523571014404, 0.8539890050888062, ...
func (s *slot) remove(c interface{}) { s.mux.Lock() defer s.mux.Unlock() delete(s.elements, c) }
[ -0.02023383043706417, -0.04357382282614708, 0.2911720275878906, -0.3228558301925659, -1.5984973907470703, 0.12763527035713196, 1.0307945013046265, 0.7167237401008606, 0.46944791078567505, 0.3032442629337311, -0.1426888257265091, -0.2591214179992676, -0.8271670937538147, 0.825206995010376, ...
func NewTimeWheel(tickDuration time.Duration, ticksOfWheel int, f handler, manager interface{}) *TimeWheel { if tickDuration < 1 || ticksOfWheel < 1 || nil == f { return nil } // A slot that will always come out and it just for 0. ticksOfWheel++ // Whenever you new a timewheel, you will get currentTickIndex is 0...
[ 0.4322594404220581, 0.2715691030025482, 0.5361045598983765, 0.3157024085521698, -0.853881299495697, -0.2246323823928833, 0.2729965150356293, -0.09843729436397552, -0.5238590240478516, -0.028782330453395844, -0.3431622385978699, -0.3139090836048126, 0.16530892252922058, 1.392482042312622, ...
func (tw *TimeWheel) Start() { tw.ticker = time.NewTicker(tw.tickDuration) go tw.run() }
[ 0.39689239859580994, 0.24112506210803986, 0.1357705146074295, 0.1750478297472, 0.23972590267658234, 0.6002375483512878, 0.5030574202537537, 0.4202882945537567, -1.278607726097107, 0.8165616989135742, -0.6292826533317566, 0.39554640650749207, 0.3140788972377777, 1.8542139530181885, 0.1617...
func (tw *TimeWheel) Remove(c interface{}) { tw.mux.Lock() defer tw.mux.Unlock() if v, ok := tw.indicator[c]; ok { v.remove(c) } }
[ -0.3050984740257263, 0.2422092854976654, 0.14058227837085724, -0.05957166850566864, -0.8308306336402893, 0.12048280984163284, 0.6967222094535828, 0.21632888913154602, -0.07625925540924072, 1.3709336519241333, -0.6977022290229797, -1.0812668800354004, -0.8967341780662537, 1.3833286762237549...
func (tw *TimeWheel) getPreviousTickIndex() int { tw.mux.Lock() defer tw.mux.Unlock() cti := tw.currentTickIndex // When cti==0 then cti's id wiil be ticksOfWheel-1 if 0 == cti { return tw.ticksOfWheel - 1 } return cti - 1 }
[ 0.082985058426857, 0.1339971125125885, 0.6070252656936646, 0.0766180008649826, -0.5013073682785034, -0.007399106398224831, 2.0539040565490723, -0.10903989523649216, -0.05274542421102524, -0.5246139764785767, -0.2504570782184601, -0.13741588592529297, -1.3017991781234741, 0.6871764659881592...
func (tw *TimeWheel) run() { for { select { case <-tw.quitChan: tw.ticker.Stop() break case <-tw.ticker.C: tw.mux.Lock() if tw.ticksOfWheel == tw.currentTickIndex { tw.currentTickIndex = 0 } slot := tw.wheel[tw.currentTickIndex] for _, v := range slot.elements { slot.remove(v) d...
[ -0.3637450039386749, -0.5111351609230042, 0.5375300645828247, -0.47677966952323914, -0.5050767660140991, 0.11607544124126434, 1.6383110284805298, -0.13523665070533752, -0.34113144874572754, 0.25660717487335205, -0.3481651544570923, -0.6640749573707581, -0.7323472499847412, 1.13988053798675...
func InitPersonMdlExt() *PersonMdlExt { personMdlExp = PersonMdlExt{} return &personMdlExp }
[ 0.2485198974609375, -0.35735562443733215, 0.4402623176574707, -0.09158824384212494, -2.0747926235198975, -0.0836418867111206, -1.0716590881347656, 0.7126861810684204, 0.5563199520111084, -0.9294269680976868, -0.3151218295097351, 0.30294933915138245, -0.1804513782262802, -0.1910557150840759...
func (crtEP *MdlPersonCreateExt) BeforeDB(ent interface{}) error { // fmt.Println("TypeOf ent:", reflect.TypeOf(ent)) // fmt.Println("ValueOf ent:", reflect.ValueOf(ent)) // p := ent.(*models.Person) // make changes / validate the content struct pointer (p) here // p.Name = "A new field value" return nil }
[ -0.3762853145599365, -0.022806497290730476, 0.6433590054512024, -0.5087105631828308, -0.26857683062553406, 1.0493721961975098, 0.316137433052063, -0.08748948574066162, -0.23740647733211517, -0.4991101920604706, -0.22973455488681793, -0.5176936984062195, -1.188502550125122, 1.30021166801452...
func (crtEP *MdlPersonCreateExt) AfterDB(ent interface{}) error { // fmt.Println("TypeOf ent:", reflect.TypeOf(ent)) // fmt.Println("ValueOf ent:", reflect.ValueOf(ent)) // p := ent.(*models.Person) // make changes / validate the content struct pointer (p) here // p.Name = "A new field value" return nil }
[ -0.4371560513973236, -0.5369217991828918, 0.5730966329574585, -0.22286656498908997, -0.7421858310699463, 1.3080610036849976, 0.6277276277542114, 0.18504473567008972, -0.19394850730895996, -0.7832222580909729, -0.5245649814605713, -0.595176637172699, -0.9426791071891785, 1.1404603719711304,...
func (updEP *MdlPersonUpdateExt) BeforeDB(ent interface{}) error { // fmt.Println("TypeOf ent:", reflect.TypeOf(ent)) // fmt.Println("ValueOf ent:", reflect.ValueOf(ent)) // p := ent.(*models.Person) // make changes / validate the content struct pointer (p) here // p.Name = "A new field value" return nil }
[ -0.5716670155525208, -0.16719330847263336, 0.6882138848304749, -0.589227557182312, -0.6376645565032959, 0.9318425059318542, 0.3259384036064148, -0.010145723819732666, 0.002991059795022011, -0.445510596036911, -0.11850551515817642, -0.44760122895240784, -1.189498782157898, 0.989695012569427...
func (updEP *MdlPersonUpdateExt) AfterDB(ent interface{}) error { // fmt.Println("TypeOf ent:", reflect.TypeOf(ent)) // fmt.Println("ValueOf ent:", reflect.ValueOf(ent)) // p := ent.(*models.Person) // make changes / validate the content struct pointer (p) here // p.Name = "A new field value" return nil }
[ -0.6583705544471741, -0.7139596939086914, 0.6139516830444336, -0.3305988013744354, -1.0743337869644165, 1.2290226221084595, 0.6338985562324524, 0.281302273273468, 0.01262565329670906, -0.7317512035369873, -0.3784923255443573, -0.4830913245677948, -0.9852743148803711, 0.8719656467437744, ...
func (getEP *MdlPersonGetExt) BeforeDB(ent interface{}) error { // fmt.Println("TypeOf ent:", reflect.TypeOf(ent)) // fmt.Println("ValueOf ent:", reflect.ValueOf(ent)) // p := ent.(*models.Person) // make changes / validate the content struct pointer (p) here // p.Name = "A new field value" return nil }
[ -0.3889676332473755, -0.21317660808563232, 0.7289138436317444, -0.6035420894622803, -0.46509528160095215, 0.5994753837585449, 0.18145117163658142, 0.028369152918457985, -0.14635306596755981, -0.4603189527988434, 0.018800072371959686, -0.5514365434646606, -1.082187533378601, 0.8942251801490...
func (getEP *MdlPersonGetExt) AfterDB(ent interface{}) error { // fmt.Println("TypeOf ent:", reflect.TypeOf(ent)) // fmt.Println("ValueOf ent:", reflect.ValueOf(ent)) // p := ent.(*Person) // make changes / validate the content struct pointer (p) here // p.Name = "A new field value" return nil }
[ -0.40350422263145447, -0.7263841032981873, 0.668179988861084, -0.4853098392486572, -0.9905321598052979, 0.8853442072868347, 0.5467438697814941, 0.22223930060863495, -0.07252135872840881, -0.7254565358161926, -0.24779389798641205, -0.2775815725326538, -0.9389657378196716, 0.7034576535224915...
func CloudFunctionRouteToFiber(fiberApp *fiber.App, w http.ResponseWriter, r *http.Request) error { return RouteToFiber(fiberApp, w, r, "/execute") }
[ -0.13018153607845306, -0.08468400686979294, 0.3334619998931885, 0.7985770106315613, 1.1590057611465454, -0.1368107944726944, 0.1723395138978958, -0.5262690782546997, -1.3917559385299683, -0.023173179477453232, 0.3744776248931885, 0.06603483855724335, -0.5951482653617859, 0.8039597272872925...
func RouteToFiber(fiberApp *fiber.App, w http.ResponseWriter, r *http.Request, rootURL ...string) error { ln := fasthttputil.NewInmemoryListener() defer ln.Close() // Copy request body, err := io.ReadAll(r.Body) if err != nil { return err } url := fmt.Sprintf("%s://%s%s", "http", "0.0.0.0", r.RequestURI) if...
[ -0.7416029572486877, -0.5618584156036377, 1.1125082969665527, 0.07408761233091354, -0.07895892858505249, -0.4107016623020172, -0.007887160405516624, -0.5259205102920532, -0.6528270244598389, 0.16124027967453003, 0.7736509442329407, 0.022612322121858597, -0.7161065340042114, 0.8384056687355...
func Handler(config *Config) func(c *cli.Context) error { return func(c *cli.Context) error { manager, err := NewManager(config) if err != nil { return fmt.Errorf("failed to initialize cluster manager. %s", err) } return Start(c.Context, config, manager) } }
[ 0.0874999612569809, -0.07988806068897247, 0.38175487518310547, 0.5903971195220947, 0.35951435565948486, 0.6598004698753357, 0.8734898567199707, 0.0355614572763443, -0.18281327188014984, -0.7322902679443359, -0.42965489625930786, 0.4256703853607178, 0.7923309803009033, 0.026701679453253746,...
func makeContext(c context.Context) (context.Context, context.CancelFunc, <-chan struct{}) { exit := make(chan os.Signal, 1) notif := make(chan struct{}) signal.Notify(exit, os.Interrupt, syscall.SIGTERM) ctx, cancel := context.WithCancel(c) go func() { select { case <-c.Done(): case <-exit: } log.Pr...
[ 0.5768207907676697, 0.03974798321723938, 0.5452703833580017, -0.20350554585456848, -0.6189736723899841, -0.36443936824798584, -0.10158265382051468, -0.270165354013443, 0.061433225870132446, 0.3216458559036255, -0.4840314984321594, -0.9907804131507874, -0.1105584055185318, -0.19531208276748...
func FourOfaKind(handMap map[string]int) (string, []string) { var rank string var cardsOut []string if len(handMap) == 2 { for k, val := range handMap { if val == 4 { rank = "four-of-a-kind" cardsOut = append([]string{k, k, k, k}, cardsOut...) } else { cardsOut = append(cardsOut, k) } } } ...
[ -0.5494782328605652, -0.7343149781227112, 0.41513800621032715, 0.20111116766929626, -0.448273241519928, -0.8849136829376221, -0.35392773151397705, -0.08165308833122253, -0.8749620318412781, 0.37214216589927673, -0.1878822147846222, -0.2363273650407791, 0.21250617504119873, 0.63493525981903...
func FullHouse(handMap map[string]int) (string, []string) { var cardTriple []string var cardDouble []string var rank string var cardsOut []string if len(handMap) == 2 { for k, val := range handMap { if val == 3 { cardTriple = []string{k, k, k} } else if val == 2 { cardDouble = []string{k, k} }...
[ -0.3906535506248474, -0.5144059062004089, 0.8612064719200134, 0.8847898840904236, 0.022439735010266304, -0.1635274738073349, -0.5377434492111206, 1.3108189105987549, 0.05087096616625786, 0.5388846397399902, -0.44578078389167786, 0.06308241933584213, -0.17524921894073486, 0.6424915194511414...
func Triple(handMap map[string]int) (string, []string) { var cardTriple bool var rank string var cardsOut []string weightMap := make(map[int]string) var weightArr []int for k, val := range handMap { if val == 3 { cardTriple = true cardsOut = append([]string{k, k, k}, cardsOut...) } else { weightMap...
[ -1.006473183631897, 0.09127268940210342, 0.759388267993927, -0.08199680596590042, -0.24139687418937683, -0.2019927054643631, -1.0352368354797363, 0.947913646697998, -0.4284646809101105, 0.6530926823616028, -0.09399081021547318, -0.11880271136760712, -0.056228965520858765, -0.17726171016693...
func TwoPairs(handMap map[string]int) (string, []string) { var numPairs int var rank string var cardsOut []string var tempSingleCard string if len(handMap) == 3 { for k, val := range handMap { if val == 2 { numPairs++ if len(cardsOut) > 0 && CardVals[k] > CardVals[cardsOut[0]] { cardsOut = appe...
[ -0.8346703052520752, -0.5434722900390625, 0.7142828106880188, 0.18935827910900116, -0.7245017290115356, -0.15564265847206116, -0.29381808638572693, 0.7577546238899231, -0.49508050084114075, -0.09280476719141006, 0.19146257638931274, -0.2688213586807251, 0.2151087075471878, 0.95573318004608...
func OnePair(handMap map[string]int) (string, []string) { var numPairs int var rank string var cardsOut []string weightMap := make(map[int]string) var weightArr []int for k, val := range handMap { if val == 2 { numPairs++ cardsOut = append([]string{k, k}, cardsOut...) } else { weightMap[CardVals[k...
[ -0.749467670917511, -0.6844915747642517, 0.7150876522064209, -0.02612256072461605, -0.8981040120124817, -0.21218669414520264, 0.20473980903625488, 0.4349665939807892, -0.19649717211723328, 0.04865740239620209, 0.7651463747024536, -0.5886982083320618, -0.45801082253456116, 1.087804555892944...
func HighCard(handMap map[string]int) (string, []string) { var cardsOut []string rank := "high-card" weightMap := make(map[int]string) var weightArr []int for k := range handMap { weightMap[CardVals[k]] = k weightArr = append(weightArr, CardVals[k]) } sort.Sort(sort.Reverse(sort.IntSlice(weightArr))) fo...
[ 0.017672043293714523, -0.9004752039909363, 0.6915740966796875, -0.4638858437538147, -0.2349359393119812, -0.2651454508304596, -0.2635987401008606, 0.9487548470497131, -0.38431745767593384, 0.4690176248550415, 0.13887520134449005, 0.5312962532043457, 0.4754984676837921, 0.9999517202377319, ...
func (s *LedgerService) Ledgers(currency string, start int64, end int64, max int32) (*ledger.Snapshot, error) { if max > maxLimit { return nil, fmt.Errorf("Max request limit:%d, got: %d", maxLimit, max) } payload := map[string]interface{}{"start": start, "end": end, "limit": max} req, err := s.requestFactory.New...
[ -0.8092734813690186, 0.9343538284301758, 0.7124865055084229, -0.2144704908132553, -0.901850163936615, 0.1030406802892685, -0.689613938331604, -0.3761039972305298, 0.3907604217529297, -0.27516278624534607, -0.160912424325943, 1.6394000053405762, 0.15101610124111176, -0.6459264159202576, 0...
func NewProject(dir string, name string) error { if _, err := os.Stat(filepath.Join(dir, goModFileName)); err != nil { if os.IsNotExist(err) { return ErrNoGoModFile } return err } location := filepath.Join(dir, projectFileName) file, err := os.Create(location) if err != nil { return err } pj := Proj...
[ 0.048534732311964035, 0.2816713750362396, 0.4798736274242401, 0.4805877208709717, -0.008542198687791824, -0.056100308895111084, -0.2524850368499756, 0.35547971725463867, -0.8625776171684265, 0.7738078236579895, -0.31556200981140137, 0.4487718343734741, -0.4568153917789459, 0.09577500075101...
func LoadProject(wd string) (*Project, error) { file, err := os.OpenFile( filepath.Join(wd, projectFileName), os.O_RDONLY, projectFilePerm) if os.IsNotExist(err) { return nil, ErrNoProject } if err != nil { return nil, err } defer file.Close() var out Project if err := yaml.NewDecoder(file).Decode(&...
[ 0.47323110699653625, 0.1573243886232376, 0.3503320515155792, -0.298613041639328, -0.9466486573219299, 0.034585513174533844, -0.16759559512138367, 0.24529162049293518, -0.2303246259689331, 0.5789391994476318, 0.39196470379829407, 0.18724952638149261, -1.260162591934204, -0.12397083640098572...
func GetProjectRoot(wd string) (string, error) { sep := string(os.PathSeparator) parts := append(strings.SplitAfter(wd, sep), sep) for i := len(parts) - 1; i >= 0; i-- { dir := filepath.Join(parts[:i]...) file := filepath.Join(dir, projectFileName) if _, err := os.Stat(file); err == nil { log.Debugf("Foun...
[ 0.10780797898769379, 0.2643433213233948, 1.200305700302124, 0.2728763818740845, -0.8164941668510437, 0.45222559571266174, 1.153484582901001, -0.7024185657501221, -0.10586755722761154, 0.5476388931274414, 0.5587937235832214, 0.4080290198326111, -1.2653900384902954, 0.3887184262275696, -0....
func parsePowerLimit(msr uint64, units RAPLPowerUnit, singleLimit bool) RAPLPowerLimit { var powerLimit RAPLPowerLimit powerLimit.Limit1.PowerLimit = float64(msr&0x7fff) * units.PowerUnits powerLimit.Limit1.EnableLimit = ((msr >> 15) & 1) == 1 powerLimit.Limit1.ClampingLimit = ((msr >> 16) & 1) == 1 powerLimit.L...
[ 0.760400116443634, -0.26304033398628235, 0.7799678444862366, 0.20040099322795868, -0.8351444602012634, -0.16021773219108582, -0.2589508295059204, 0.14353936910629272, -0.18227119743824005, 0.1922767609357834, -0.21811772882938385, 0.2363733947277069, -0.8127801418304443, -0.359373122453689...
func parseTimeWindowLimit(rawLimit uint64, timeMult float64) float64 { //This is taken from the Intel SDM, Vol 3B 14.9.3 /* Time limit = 2^Y * (1.0 + Z/4.0) * Time_Unit Here “Y” is the unsigned integer value represented by bits 21:17, “Z” is an unsigned integer represented by bits 23:22. “Time_Unit” is spec...
[ 0.33177024126052856, 0.3116286098957062, 0.6745129823684692, -0.06500591337680817, -1.245932936668396, -0.49367955327033997, 0.1613987237215042, -0.04066794365644455, 0.11257454752922058, 0.299531489610672, -0.4330875873565674, 0.2988373935222626, -0.7420565485954285, 0.07628509402275085, ...
func parsePowerUnit(msr uint64) RAPLPowerUnit { var powerUnit RAPLPowerUnit //The values from the MSR are treated as registered according to the SDM powerUnit.PowerUnits = 1 / math.Pow(2, float64(msr&0xf)) powerUnit.EnergyStatusUnits = 1 / math.Pow(2, float64((msr>>8)&0x1f)) powerUnit.TimeUnits = 1 / math.Pow(2, ...
[ 0.4173700511455536, -0.15922072529792786, 0.5218203663825989, -1.2022333145141602, -0.33085787296295166, -0.4108622968196869, -0.2783523499965668, 0.33433231711387634, 0.03162960335612297, -0.5255880355834961, 0.21010476350784302, 0.05944810435175896, -0.7045677304267883, -0.36328005790710...
func (c *DenseSliceComponent) Get(entity Entity) interface{} { if 0 <= int(entity) && int(entity) < len(c.dataID) && c.dataID[entity] != -1 { return c.data[c.dataID[entity]] } return nil }
[ -0.3278113007545471, -0.20156113803386688, 0.544093668460846, -0.6748544573783875, 0.4727018475532532, -0.6469532251358032, -0.4894263744354248, -0.5985687971115112, 0.14005795121192932, -0.24134257435798645, 0.3678310811519623, 0.7480178475379944, 0.5063461661338806, 0.2212715744972229, ...
func (c *DenseSliceComponent) Set(entity Entity, data interface{}) { // Check existing data if 0 <= int(entity) && int(entity) < len(c.dataID) && c.dataID[entity] != -1 { c.data[c.dataID[entity]] = data return } // Insert data if entity.HasComponent(c) { deltaLen := int(entity) + 1 - len(c.dataID) for iSl...
[ -0.17104709148406982, -0.125944584608078, 0.520586371421814, -1.7044868469238281, 0.3239878714084625, 0.2966545820236206, -0.060150425881147385, 0.39309781789779663, -0.20766142010688782, 0.31998202204704285, -0.3840135931968689, 0.4968017041683197, 0.1400565207004547, 0.49379751086235046,...
func initialize() bool { if initSuccessful { return true } if initError != nil { return false } initError = LoadConfig(configPath) if initError == nil { initSuccessful = true return true } fatal("init", initError) return false }
[ -0.7855315208435059, 0.5304312109947205, 0.7719885110855103, 0.6267982721328735, 0.2548949718475342, 0.2411704808473587, -0.4487065374851227, 0.5382429361343384, -0.682729184627533, 0.7131745219230652, -0.3540179431438446, -0.5809788107872009, -0.8221790194511414, 0.07919405400753021, 0....
func Execute(version string) { rootCmd.Version = version if err := rootCmd.Execute(); err != nil { fmt.Println(err) os.Exit(1) } }
[ 0.38867703080177307, -1.0955054759979248, 0.8352823853492737, 1.1228362321853638, 0.1508568972349167, 1.3440039157867432, -0.2281343638896942, 0.6372723579406738, -0.7175086140632629, 0.4424671232700348, -0.15589161217212677, 0.18307064473628998, -0.35323619842529297, 0.6331190466880798, ...
func initConfig() { user := user.Current() if cfgFile != "" { user.Config.SetConfigFile(cfgFile) } // else if home // home := pkg.GetHome() // if cfgFile != "" { // // Use config file from the flag. // user.Config.SetConfigFile(cfgFile) // // viper.SetConfigFile(cfgFile) // } else { // h := home.Get() ...
[ 0.4164029359817505, -0.41064298152923584, 0.6419827342033386, 1.3347811698913574, 0.7204068303108215, 0.20604130625724792, 1.0956169366836548, 0.7499749064445496, -1.2167701721191406, 0.5781592130661011, -0.30947181582450867, -0.2707374095916748, -0.15800067782402039, 1.5917141437530518, ...
func read(filePath string, debug bool) *Maze { // You can register another format here image.RegisterFormat("png", "png", png.Decode, png.DecodeConfig) glog.Info("Reading image...") file, err := os.Open(filePath) if err != nil { glog.Error("Error: File could not be opened") os.Exit(1) } defer file.Close()...
[ -0.16396211087703705, -0.40342798829078674, 0.47518104314804077, 0.25951334834098816, -0.16466858983039856, 0.531514585018158, 0.8611507415771484, 0.15356065332889557, 0.09948500990867615, -0.2546130418777466, 0.45290619134902954, 0.07299845665693283, -0.42473816871643066, 0.75016462802886...
func getMaze(file io.Reader) (*Maze, error) { img, _, err := image.Decode(file) if err != nil { return nil, err } bounds := img.Bounds() width, height := bounds.Max.X, bounds.Max.Y var pixels [][]Pixel for y := 0; y < height; y++ { var rowPixels []Pixel for x := 0; x < width; x++ { r, g, b, a := img....
[ -0.7427056431770325, -0.31633806228637695, 0.7454068660736084, 0.1773339807987213, -0.27906447649002075, -0.4902050197124481, 0.6799578666687012, -0.00032458422356285155, 0.6364492774009705, -0.32500627636909485, 0.1826169639825821, 0.06736785173416138, -0.0698758214712143, 0.8670765757560...
func rgbaToPixel(r uint32, g uint32, b uint32, a uint32, row int, rowPos int) Pixel { return Pixel{ rgba: Rgba{ int(r / 257), int(g / 257), int(b / 257), int(a / 257), }, Row: row, RowPos: rowPos, } }
[ 0.044116538017988205, -0.16265086829662323, 0.5783003568649292, -1.1734462976455688, 0.400283545255661, 0.6967079043388367, -0.2500919997692108, -1.2917107343673706, 0.09346208721399307, 0.381359338760376, 0.2463419884443283, -0.11391521990299225, 0.005221454426646233, -0.760689377784729, ...
func (p processor) Process(ctx context.Context, message []byte) error { const op = errors.Op("foundationkit/goduckhelper/processor.Process") r, err := p.decodeMessage(ctx, message) if err != nil { return errors.E(op, err) } err = p.doEndpoint(ctx, r) if err != nil { return errors.E(op, err) } return nil ...
[ 0.3046897351741791, 0.42496058344841003, 0.5063910484313965, 0.06008990481495857, 0.5970332026481628, -0.2435339391231537, 0.3130389153957367, -0.26267921924591064, 0.11544252187013626, 0.18849942088127136, 0.39632418751716614, 0.3163524866104126, -0.35300400853157043, 0.48736459016799927,...
func NewEndpointProcessor(e endpoint.Endpoint, d goduck.EndpointDecoder) (goduck.Processor, error) { if e == nil { return nil, errors.E("endpoint is nil") } if d == nil { return nil, errors.E("decoder is nil") } return processor{e: e, d: d}, nil }
[ -0.6357834935188293, -0.4672181308269501, 0.22897329926490784, -0.2519833743572235, -0.7819240093231201, -0.47514548897743225, -0.8608006834983826, 0.3896402418613434, 0.43979036808013916, 1.0708636045455933, 0.13576586544513702, 0.04681174457073212, -0.44098904728889465, 0.293513745069503...
func MustNewEndpointProcessor(e endpoint.Endpoint, d goduck.EndpointDecoder) goduck.Processor { p, err := NewEndpointProcessor(e, d) if err != nil { panic(err) } return p }
[ -0.6986970901489258, -0.31155189871788025, 0.35118481516838074, -0.17734891176223755, -0.5775454044342041, 0.5546324253082275, -1.33634352684021, -0.21772082149982452, -0.09455540776252747, 0.6380842924118042, -0.32847535610198975, -0.04085605591535568, 0.08835823833942413, 0.5649350285530...
func Assemble(sigil string, input io.Reader) ([]byte, error) { inBuf := bufio.NewScanner(input) result := bytes.NewBuffer(nil) output := bufio.NewWriter(result) var line, sigilb []byte if sigil == "" { sigilb = []byte("// @") } else { sigilb = []byte(sigil) } for ln := 1; inBuf.Scan(); ln++ { line = inBu...
[ 0.8293886780738831, -0.7734341025352478, 0.8920148611068726, 0.17462249100208282, -0.9489578604698181, -0.6464239358901978, 0.17322830855846405, 0.014317106455564499, -0.5571492910385132, -0.031461212784051895, -0.008598867803812027, 0.5104279518127441, 0.1777249276638031, 0.34561669826507...
func convertInstr(instr []byte) []byte { instr = bytes.ToUpper(instr) if reg.Match(instr) || xreg.Match(instr) { instr = reg.ReplaceAll(instr, []byte("${1}R${2}$3")) instr = xreg.ReplaceAll(instr, []byte("${1}${2}MM$3")) instr = memCalc.ReplaceAll(instr, []byte("[${2}+${1}]")) flds := bytes.FieldsFunc(instr,...
[ -0.17956911027431488, 0.3342647850513458, 0.8977517485618591, -0.43905264139175415, -0.3074839413166046, -0.6430357694625854, 0.5459079146385193, -0.4702991843223572, -0.11232933402061462, 0.622447669506073, -0.3111335039138794, -0.0408882312476635, -0.03401391953229904, -0.225491821765899...
func yasm(instr []byte) ([]byte, error) { tmpfile, err := ioutil.TempFile("", "asm2plan9s") if err != nil { return nil, err } asmFile := tmpfile.Name() + ".asm" objFile := tmpfile.Name() + ".obj" os.Rename(tmpfile.Name(), asmFile) defer os.Remove(asmFile) if _, err := tmpfile.Write(append([]byte("[bits 64]\...
[ -0.02896389178931713, -1.1193376779556274, 1.0045537948608398, -0.10466954112052917, -0.6581917405128479, -0.10445255786180496, 1.1135979890823364, -0.22021698951721191, 0.12690956890583038, -0.02457619458436966, -0.30319908261299133, 0.6541502475738525, 0.12171978503465652, -0.09281980246...
func (d *nodeService) NodeStageVolume(ctx context.Context, req *csi.NodeStageVolumeRequest) (*csi.NodeStageVolumeResponse, error) { return nil, status.Error(codes.Unimplemented, "") }
[ -1.2020207643508911, -0.3902049660682678, 0.46204015612602234, -0.729485809803009, -0.4029369056224823, -0.8438809514045715, 0.39045241475105286, -0.5466368198394775, -0.9954757690429688, -0.28361842036247253, 0.40195950865745544, 0.6157150268554688, -0.11826768517494202, 0.630609929561615...
func (d *nodeService) NodeUnstageVolume(ctx context.Context, req *csi.NodeUnstageVolumeRequest) (*csi.NodeUnstageVolumeResponse, error) { return nil, status.Error(codes.Unimplemented, "") }
[ -1.3171814680099487, 0.13215459883213043, 0.6636258363723755, -0.7909950017929077, -0.033220402896404266, -0.5600471496582031, 0.7995783090591431, 0.8448602557182312, -1.2448757886886597, 0.15966850519180298, 0.374403715133667, 0.18546421825885773, -0.5995422601699829, 0.8403230309486389, ...
func (d *nodeService) NodePublishVolume(ctx context.Context, req *csi.NodePublishVolumeRequest) (*csi.NodePublishVolumeResponse, error) { // WARNING: debug only, secrets included klog.V(6).Infof("NodePublishVolume: called with args %+v", req) volumeID := req.GetVolumeId() klog.V(5).Infof("NodePublishVolume: volume...
[ -1.0112299919128418, -0.36618876457214355, 0.7296872138977051, 0.24448296427726746, 0.8341884613037109, -0.6988002061843872, 0.4341229200363159, 0.15838980674743652, -0.13556525111198425, 0.30449143052101135, 1.5083165168762207, 0.5289427638053894, -0.12026821821928024, 0.15573903918266296...
func (d *nodeService) NodeUnpublishVolume(ctx context.Context, req *csi.NodeUnpublishVolumeRequest) (*csi.NodeUnpublishVolumeResponse, error) { klog.V(6).Infof("NodeUnpublishVolume: called with args %+v", req) target := req.GetTargetPath() if len(target) == 0 { return nil, status.Error(codes.InvalidArgument, "Tar...
[ -0.864461362361908, -0.48610562086105347, 0.511231541633606, -1.060880422592163, 0.036318760365247726, -0.6478235125541687, 0.27808862924575806, 0.7754086852073669, -0.9375406503677368, 0.15587016940116882, 1.4346611499786377, 0.7910963892936707, -0.5285598635673523, 0.16491886973381042, ...
func (d *nodeService) NodeGetCapabilities(ctx context.Context, req *csi.NodeGetCapabilitiesRequest) (*csi.NodeGetCapabilitiesResponse, error) { klog.V(6).Infof("NodeGetCapabilities: called with args %+v", req) var caps []*csi.NodeServiceCapability for _, cap := range nodeCaps { c := &csi.NodeServiceCapability{ ...
[ -1.2395365238189697, 0.1295081228017807, 0.3593878746032715, -0.18621091544628143, 0.6199607849121094, -1.0661603212356567, -0.11775757372379303, -0.9011728763580322, -0.05434330925345421, 0.05368977412581444, 0.2899230718612671, 0.4397040903568268, -0.5441219210624695, 0.50525963306427, ...
func (d *nodeService) NodeGetInfo(ctx context.Context, req *csi.NodeGetInfoRequest) (*csi.NodeGetInfoResponse, error) { klog.V(6).Infof("NodeGetInfo: called with args %+v", req) return &csi.NodeGetInfoResponse{ NodeId: d.nodeID, }, nil }
[ -0.9144940972328186, 0.12037786841392517, 0.21395385265350342, -0.6361625790596008, 0.3968524634838104, -0.5347226858139038, -0.37037262320518494, -0.4195563793182373, -0.48551470041275024, -0.31982049345970154, 0.4444984197616577, 0.9728617668151855, -0.12720614671707153, 0.06653999537229...
func (t StatementType) String() string { switch t { case Query: return "QUERY" case Insert: return "INSERT" case Delete: return "DELETE" case Create: return "CREATE" case Drop: return "DROP" default: return "UNKNOWN" } }
[ -1.113140344619751, -0.6413920521736145, 0.1546284556388855, -0.3969746530056, -0.029980355873703957, 0.7472216486930847, -0.1205851286649704, -1.72555673122406, -0.3864767253398895, 1.0018036365509033, -0.18398086726665497, -0.511664092540741, -0.9349289536476135, 0.21379874646663666, 0...
func (s *Statement) BindType(st StatementType) { s.sType = st }
[ -0.5084577202796936, -0.33061233162879944, 0.2734372019767761, 0.8126674294471741, -0.018496790900826454, -0.04593820124864578, 0.1510888785123825, -0.32916030287742615, 0.2713741362094879, 0.7191550731658936, -0.2637106776237488, 0.45408329367637634, -0.600946843624115, 1.4516359567642212...
func (s *Statement) Type() StatementType { return s.sType }
[ -0.6401486396789551, -0.35077565908432007, 0.028417179360985756, 0.41066908836364746, -0.24375823140144348, -0.19000403583049774, 0.5888926982879639, -0.9438885450363159, 1.0676279067993164, 0.2526777684688568, 0.30691421031951904, 0.5945954322814941, -1.2863038778305054, 0.391270041465759...
func (s *Statement) AddGraph(g string) { s.graphs = append(s.graphs, g) }
[ -0.06350873410701752, 0.7309146523475647, 0.3245294690132141, 0.8081607222557068, -0.8346177935600281, 0.6912696361541748, -0.28794121742248535, 0.12765811383724213, 0.37385833263397217, -0.01716984622180462, -0.027033528313040733, 0.2811630964279175, -0.8353670239448547, 0.110539354383945...
func (s *Statement) Graphs() []string { return s.graphs }
[ -0.06248226389288902, 0.3223339021205902, 0.15928323566913605, 0.8481439352035522, -0.5440361499786377, 0.7805606722831726, -0.21015995740890503, -0.47577762603759766, 1.0579768419265747, 0.46621382236480713, 0.16990965604782104, 0.73331218957901, -0.6514094471931458, -0.61127108335495, ...
func (s *Statement) AddData(d *triple.Triple) { s.data = append(s.data, d) }
[ -0.7750824689865112, 0.742156982421875, 0.16907498240470886, -0.6608332395553589, -0.20206822454929352, 1.0427937507629395, -0.43314510583877563, 0.5673054456710815, 0.8372586965560913, -1.0160331726074219, 0.3071657419204712, 1.1246168613433838, 0.935799777507782, 0.40922120213508606, -...
func (s *Statement) Data() []*triple.Triple { return s.data }
[ -1.2037842273712158, -0.04125306382775307, 0.28216689825057983, -0.2648085653781891, -0.012948486022651196, 0.8503245115280151, -0.41574525833129883, 0.22763800621032715, 0.5759571194648743, -0.3986710011959076, -0.22867076098918915, 1.3173919916152954, 0.4588509500026703, -0.0120154842734...
func (s *Statement) GraphPatternClauses() []*GraphClause { return s.pattern }
[ 0.4214092493057251, -0.19700346887111664, 0.45285680890083313, 0.8172687888145447, -0.367419570684433, 0.8636431694030762, 0.3056567311286926, 0.0723874419927597, 0.5501605868339539, 0.08887144923210144, 0.34975188970565796, 0.5883493423461914, -0.26283931732177734, -0.8828951120376587, ...
func (s *Statement) ResetWorkingGraphClause() { s.workingClause = &GraphClause{} }
[ 0.09781699627637863, -0.3566704988479614, 0.3409876227378845, 0.6590210795402527, -0.16525766253471375, -0.7429646849632263, 0.13405631482601166, -0.6667832732200623, -1.052377462387085, 0.1065598726272583, -0.3184446394443512, 1.4420881271362305, -1.6719549894332886, -1.057503342628479, ...
func (s *Statement) WorkingClause() *GraphClause { return s.workingClause }
[ 0.3854265511035919, -0.46993064880371094, 0.45447200536727905, 0.398072749376297, -0.4708426594734192, -0.40305426716804504, -0.20117126405239105, -0.5854871869087219, -0.22913537919521332, -0.23229165375232697, 0.34394124150276184, 0.8216717839241028, -1.0582531690597534, -0.7770743966102...
func (s *Statement) AddWorkingGrpahClause() { s.pattern = append(s.pattern, s.workingClause) s.ResetWorkingGraphClause() }
[ -0.43771734833717346, -0.06902767717838287, 0.5524377226829529, -0.4641002118587494, 0.08609730750322342, 0.8153693079948425, 0.02694084867835045, -0.011145892553031445, -0.08073770999908447, -0.03725668042898178, 0.19919581711292267, 0.3720042109489441, -0.9836440682411194, -0.73302519321...