text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func (*UpdateBrokerMetadata) Descriptor() ([]byte, []int) {
return file_yandex_cloud_iot_broker_v1_broker_service_proto_rawDescGZIP(), []int{6}
} | [
-0.8585222959518433,
-0.6407490372657776,
0.3240095376968384,
0.5113296508789062,
-0.2572340667247772,
-0.14093735814094543,
0.04314308613538742,
-0.015158422291278839,
-1.0078505277633667,
1.2214241027832031,
-1.0865370035171509,
0.8586025834083557,
-1.0259597301483154,
0.2198624312877655... |
func (*DeleteBrokerRequest) Descriptor() ([]byte, []int) {
return file_yandex_cloud_iot_broker_v1_broker_service_proto_rawDescGZIP(), []int{7}
} | [
-0.7570502758026123,
-0.06332483142614365,
0.6041274070739746,
0.9941725730895996,
-0.09425842761993408,
-0.7801162004470825,
0.6039909720420837,
0.8514376282691956,
0.4825204908847809,
-0.766589343547821,
0.16646328568458557,
1.0119842290878296,
-0.7510715126991272,
1.8546842336654663,
... |
func (*DeleteBrokerMetadata) Descriptor() ([]byte, []int) {
return file_yandex_cloud_iot_broker_v1_broker_service_proto_rawDescGZIP(), []int{8}
} | [
-0.6533047556877136,
-0.23856057226657867,
0.33596500754356384,
0.5978400707244873,
0.25403207540512085,
-0.3380247950553894,
0.10217302292585373,
0.19698379933834076,
-0.43466296792030334,
0.14373789727687836,
-0.5928661823272705,
0.6533645391464233,
-0.9602242708206177,
0.726341843605041... |
func (*ListBrokerCertificatesRequest) Descriptor() ([]byte, []int) {
return file_yandex_cloud_iot_broker_v1_broker_service_proto_rawDescGZIP(), []int{9}
} | [
-0.1693444699048996,
-0.12487917393445969,
0.6783149838447571,
0.8182302713394165,
0.09888184815645218,
-0.9409518241882324,
-0.0013011236442252994,
-0.01647290214896202,
0.08333534747362137,
0.11741586029529572,
-0.7302584052085876,
0.24257847666740417,
-0.5805739164352417,
0.721600294113... |
func (*ListBrokerCertificatesResponse) Descriptor() ([]byte, []int) {
return file_yandex_cloud_iot_broker_v1_broker_service_proto_rawDescGZIP(), []int{10}
} | [
0.8826444745063782,
-0.43040212988853455,
0.11189153790473938,
0.9037384390830994,
-0.14679960906505585,
-1.1871209144592285,
0.7097705006599426,
-0.36328965425491333,
0.2078666388988495,
0.7078891396522522,
-1.3434169292449951,
-0.2120749056339264,
-1.099664568901062,
-0.00040283118141815... |
func (*AddBrokerCertificateRequest) Descriptor() ([]byte, []int) {
return file_yandex_cloud_iot_broker_v1_broker_service_proto_rawDescGZIP(), []int{11}
} | [
-0.2139100879430771,
0.5231109857559204,
0.531995415687561,
0.8950826525688171,
0.2931455373764038,
-0.2913419008255005,
-0.054070476442575455,
0.31150805950164795,
-0.2080807089805603,
0.02626020833849907,
-0.26480549573898315,
-0.02118905819952488,
-1.2574630975723267,
1.2655397653579712... |
func (*AddBrokerCertificateMetadata) Descriptor() ([]byte, []int) {
return file_yandex_cloud_iot_broker_v1_broker_service_proto_rawDescGZIP(), []int{12}
} | [
0.1336604505777359,
0.14457795023918152,
0.3966555893421173,
0.4233117401599884,
0.31948941946029663,
0.09706082940101624,
-0.14973264932632446,
-0.45439913868904114,
-0.47714412212371826,
0.8806572556495667,
-0.4689221680164337,
-0.11082715541124344,
-0.759380578994751,
0.3031856119632721... |
func (*DeleteBrokerCertificateRequest) Descriptor() ([]byte, []int) {
return file_yandex_cloud_iot_broker_v1_broker_service_proto_rawDescGZIP(), []int{13}
} | [
-0.05967242643237114,
0.20441310107707977,
0.7012160420417786,
1.221372127532959,
0.06241106614470482,
-0.8632348775863647,
-0.048046693205833435,
0.9392830729484558,
0.5635281205177307,
-0.2945588231086731,
-0.1074831485748291,
0.4507884085178375,
-1.3439021110534668,
1.2329864501953125,
... |
func (*DeleteBrokerCertificateMetadata) Descriptor() ([]byte, []int) {
return file_yandex_cloud_iot_broker_v1_broker_service_proto_rawDescGZIP(), []int{14}
} | [
0.10448853671550751,
-0.11188804358243942,
0.5077868103981018,
0.7147973775863647,
0.1261940598487854,
-0.4654056429862976,
-0.2230854034423828,
0.1785188466310501,
-0.1872158795595169,
0.6233026385307312,
-0.4191076457500458,
0.3269905745983124,
-0.9623186588287354,
0.18052317202091217,
... |
func (*ListBrokerPasswordsRequest) Descriptor() ([]byte, []int) {
return file_yandex_cloud_iot_broker_v1_broker_service_proto_rawDescGZIP(), []int{15}
} | [
-0.6889997720718384,
-0.2095227986574173,
0.5272201299667358,
0.20067131519317627,
0.31438779830932617,
-0.998426616191864,
-0.08996812999248505,
-0.14289532601833344,
-0.11113381385803223,
0.1378697007894516,
-0.5342952609062195,
0.16383211314678192,
-0.25482726097106934,
1.02959442138671... |
func (*ListBrokerPasswordsResponse) Descriptor() ([]byte, []int) {
return file_yandex_cloud_iot_broker_v1_broker_service_proto_rawDescGZIP(), []int{16}
} | [
0.5287952423095703,
-0.42982327938079834,
-0.022185567766427994,
0.24142666161060333,
0.1588938683271408,
-1.2974401712417603,
0.5815143585205078,
-0.24550126492977142,
0.21495673060417175,
0.6041699647903442,
-1.1948292255401611,
-0.4165169894695282,
-0.7862256169319153,
0.369228929281234... |
func (*AddBrokerPasswordRequest) Descriptor() ([]byte, []int) {
return file_yandex_cloud_iot_broker_v1_broker_service_proto_rawDescGZIP(), []int{17}
} | [
-0.9170830845832825,
0.16228701174259186,
0.44793757796287537,
0.57146155834198,
0.008901874534785748,
-0.42083704471588135,
0.15350952744483948,
0.21883021295070648,
-0.2851766049861908,
0.08213422447443008,
0.22800099849700928,
0.12756048142910004,
-0.5374431014060974,
1.3645310401916504... |
func (*AddBrokerPasswordMetadata) Descriptor() ([]byte, []int) {
return file_yandex_cloud_iot_broker_v1_broker_service_proto_rawDescGZIP(), []int{18}
} | [
-0.44311538338661194,
-0.21289971470832825,
0.1885662078857422,
0.43836209177970886,
0.08178247511386871,
0.2644604444503784,
0.33880364894866943,
-0.19960631430149078,
-0.6257519721984863,
0.8682485818862915,
-0.31067678332328796,
-0.07689893990755081,
-0.5797542333602905,
0.5067936182022... |
func (*DeleteBrokerPasswordRequest) Descriptor() ([]byte, []int) {
return file_yandex_cloud_iot_broker_v1_broker_service_proto_rawDescGZIP(), []int{19}
} | [
-0.5772896409034729,
-0.27331051230430603,
0.7225937843322754,
0.7144535183906555,
-0.2665153741836548,
-0.910240113735199,
0.094883032143116,
0.8290993571281433,
0.6802069544792175,
-0.3860231041908264,
0.1772671788930893,
0.5120353102684021,
-0.5624064207077026,
1.5473380088806152,
-0.... |
func (*DeleteBrokerPasswordMetadata) Descriptor() ([]byte, []int) {
return file_yandex_cloud_iot_broker_v1_broker_service_proto_rawDescGZIP(), []int{20}
} | [
-0.2813928723335266,
-0.3503747284412384,
0.4227124750614166,
0.6034445762634277,
-0.029746342450380325,
-0.24479106068611145,
0.23801888525485992,
0.3894669711589813,
-0.0881376564502716,
0.5438196063041687,
-0.2886698544025421,
0.3603046238422394,
-0.7101104259490967,
0.5230341553688049,... |
func (*ListBrokerOperationsRequest) Descriptor() ([]byte, []int) {
return file_yandex_cloud_iot_broker_v1_broker_service_proto_rawDescGZIP(), []int{21}
} | [
-1.26433265209198,
0.40491238236427307,
0.7220091223716736,
0.43029484152793884,
-0.026266392320394516,
-0.9107313752174377,
0.46970200538635254,
-0.2607327699661255,
0.12262467294931412,
-0.5040066838264465,
-0.18313679099082947,
-0.5190181732177734,
-0.251178503036499,
0.584123969078064,... |
func (*ListBrokerOperationsResponse) Descriptor() ([]byte, []int) {
return file_yandex_cloud_iot_broker_v1_broker_service_proto_rawDescGZIP(), []int{22}
} | [
0.04067326337099075,
0.1090470552444458,
0.3946019411087036,
0.6470856070518494,
-0.28486210107803345,
-1.4680887460708618,
1.320199728012085,
-0.32603293657302856,
0.3047235906124115,
0.19887755811214447,
-0.9208715558052063,
-1.354957103729248,
-0.7747423648834229,
0.1304159015417099,
... |
func (*CreateBrokerRequest_Certificate) Descriptor() ([]byte, []int) {
return file_yandex_cloud_iot_broker_v1_broker_service_proto_rawDescGZIP(), []int{3, 1}
} | [
-0.28028228878974915,
-0.011016151867806911,
0.5354081392288208,
1.1561707258224487,
0.5880106091499329,
0.04503713548183441,
-0.7738759517669678,
-0.03389584273099899,
-0.6779789328575134,
-0.6709255576133728,
0.049578141421079636,
0.5050762295722961,
-1.278213381767273,
0.681416213512420... |
func SetKubeConfig(project, zone, cluster, kubeconfig string) error {
if err := os.Setenv("KUBECONFIG", kubeconfig); err != nil {
return err
}
clusterJSON, err := util.ShellSilent(
"gcloud container clusters describe %s --project=%s --zone=%s --format=json",
cluster, project, zone)
if err != nil {
return e... | [
-0.10781217366456985,
0.030157344415783882,
0.7871114015579224,
0.22845138609409332,
0.06975668668746948,
-0.08716057240962982,
-0.22347785532474518,
-0.21294555068016052,
-0.5821929574012756,
1.1830759048461914,
-0.6893633008003235,
0.9732774496078491,
-0.5508930683135986,
0.8647663593292... |
func ActivateServiceAccount(serviceAccount string) error {
_, err := util.ShellSilent(
"gcloud auth activate-service-account --key-file=%s",
serviceAccount)
return err
} | [
0.08761198818683624,
-0.4704400599002838,
0.2900567352771759,
0.46288150548934937,
-0.10488394647836685,
0.22305144369602203,
1.0864131450653076,
0.09836022555828094,
-0.06804229319095612,
-0.03831573575735092,
-0.5881343483924866,
1.9306831359863281,
-0.06762082129716873,
0.07032962888479... |
func insert(ctx context.Context, tx *sqlx.Tx, todo *Todo) error {
res, err := tx.NamedExecContext(ctx, insertTodo, todo)
if err == nil {
todo.ID, err = res.LastInsertId()
}
return err
} | [
-0.30743834376335144,
1.2226173877716064,
0.5097861886024475,
-0.5290680527687073,
-0.0165775865316391,
0.07261642068624496,
-0.16074727475643158,
-0.16283747553825378,
-0.11078395694494247,
0.3340691328048706,
-0.869870126247406,
0.6627470850944519,
-0.7076573967933655,
-0.268242120742797... |
func update(ctx context.Context, tx *sqlx.Tx, todo *Todo) error {
_, err := tx.NamedExecContext(ctx, updateTodo, todo)
return err
} | [
-0.1072329580783844,
0.280752569437027,
0.3868553042411804,
0.06999431550502777,
-0.5465577244758606,
0.15002980828285217,
-0.5399070382118225,
-0.594307005405426,
0.35236701369285583,
0.6429870128631592,
-0.4890393614768982,
0.6888749003410339,
0.17160740494728088,
-0.3391129970550537,
... |
func delete(ctx context.Context, tx *sqlx.Tx, id int64) error {
_, err := tx.ExecContext(ctx, deleteTodo, id)
return err
} | [
0.686066746711731,
1.0803815126419067,
0.4867924749851227,
0.5753477215766907,
0.19389478862285614,
0.15921959280967712,
-0.12793421745300293,
-0.3301451504230499,
0.39300647377967834,
0.6516748666763306,
-0.03206763043999672,
0.24089235067367554,
-0.14835317432880402,
-0.573788583278656,
... |
func selectByID(ctx context.Context, db *sqlx.DB, id int64) (*Todo, error) {
var todo Todo
err := db.GetContext(ctx, &todo, selectTodoByID, id)
return &todo, err
} | [
0.36371734738349915,
0.33343228697776794,
0.2468375861644745,
-0.007165112532675266,
-0.6237584948539734,
-0.4491412341594696,
-0.1753913313150406,
-1.2008739709854126,
1.018073558807373,
0.2059745490550995,
-0.6931937336921692,
0.7450977563858032,
0.08678945899009705,
-0.4688354730606079,... |
func (g GraphMatrix) NewNZIter() NZIter {
rowEnd := g.IndPtr[1]
return NZIter{g: g, rowEnd: rowEnd}
} | [
-0.33483996987342834,
-0.5998584032058716,
-0.015328910201787949,
-0.023285025730729103,
-1.5771180391311646,
-0.49117544293403625,
0.31495097279548645,
-0.8667343258857727,
-0.5102123618125916,
0.1693340390920639,
0.469204843044281,
0.40245184302330017,
-0.60831618309021,
-0.0839136615395... |
func (it *NZIter) advance() bool {
rowLen := uint32(it.rowEnd - it.rowStart)
it.colIndex++
if it.colIndex >= rowLen { // if we're at the end of the current row
it.colIndex = 0
it.rowIndex++ // move to the next row
if it.rowIndex < uint32(len(it.g.IndPtr)-1) { // if we're not on ... | [
-1.162481427192688,
0.12647117674350739,
0.8166104555130005,
-0.8301428556442261,
-0.3580012619495392,
-0.36439049243927,
0.24651417136192322,
-0.39542481303215027,
-0.07118969410657883,
0.3789460361003876,
0.4483451247215271,
-0.3437017500400543,
-0.7947684526443481,
0.8437269926071167,
... |
func (it *NZIter) Done() bool {
return it.n >= it.g.N()
} | [
-0.6008623242378235,
0.5503268241882324,
0.3640122711658478,
0.3192550837993622,
-0.12379205971956253,
0.28900060057640076,
-0.04885193333029747,
-1.2659138441085815,
-0.9094638824462891,
0.6691744327545166,
-0.5658476948738098,
-0.490823894739151,
-0.6296354532241821,
0.5277965068817139,
... |
func (it *NZIter) Next() (uint32, uint32, bool) {
if it.Done() {
return 0, 0, true
}
rowLen := uint32(it.rowEnd - it.rowStart)
for rowLen == 0 {
if it.advance() { // we've hit the end.
return 0, 0, true
}
rowLen = uint32(it.rowEnd - it.rowStart)
}
r := it.rowIndex
index := it.rowStart + uint64(it.col... | [
-1.1317414045333862,
0.4090123176574707,
0.6781598329544067,
-0.21153120696544647,
-0.5021279454231262,
-0.6835572719573975,
0.7321230173110962,
-0.8427907824516296,
-0.17347095906734467,
0.39138928055763245,
-0.5675987005233765,
-0.24501986801624298,
-0.483369916677475,
-0.073410950601100... |
func getVizier(cloudAddr string) (uuid.UUID, error) {
id, err := vizier.GetCurrentVizier(cloudAddr)
if err != nil || id == uuid.Nil {
id, err = vizier.FirstHealthyVizier(cloudAddr)
}
return id, err
} | [
0.25565630197525024,
-0.5019356608390808,
0.5555742979049683,
0.6203606724739075,
-0.007998167537152767,
-0.7495326399803162,
0.2039092630147934,
0.2208646684885025,
-0.006623125169426203,
0.03119361400604248,
0.17978224158287048,
0.6795287132263184,
-0.8314962983131409,
-0.054982662200927... |
func GetBusinessCompanyServiceOperationHourByDayRepository(ctx context.Context,serviceID int64, dayOfWeek int64) (*pb.GetBusinessCompanyServiceOperationHourByDayResponse, error) {
conn, err := pgx.Connect(ctx, config.PostgresConnection)
if err != nil {
return nil, err
}
defer conn.Close(ctx)
sqlQuery := `SELEC... | [
-0.36075150966644287,
0.5195517539978027,
0.8628958463668823,
-0.5965278744697571,
0.18374225497245789,
-0.42359355092048645,
0.6098713874816895,
-0.4316977560520172,
-0.22886870801448822,
0.4189351201057434,
0.7707369327545166,
-0.8218821883201599,
-0.5093386173248291,
0.123917356133461,
... |
func EmbedQueue(q *SongQueue, index, beforeIndex, afterIndex int) *dream.Embed {
return EmbedQueueFilter(q, index, beforeIndex, afterIndex, func(q *SongQueue, s *Song) bool { return true })
} | [
-0.1632823944091797,
-0.2841281592845917,
0.5768352746963501,
-0.3301694691181183,
-0.7642387747764587,
0.4854554235935211,
-0.21419331431388855,
0.10482785105705261,
0.4348500072956085,
-0.159405916929245,
-0.3002946674823761,
0.2853071093559265,
-0.5809102654457092,
-0.42039579153060913,... |
func CreateReceiveSignature(ctx context.Context, dbConn *db.DB, headers Headers,
contract, asset string, xpubs bitcoin.ExtendedKeys, index uint32, expiration uint64,
approved bool) ([]byte, uint32, bitcoin.Hash32, error) {
_, assetCode, err := protocol.DecodeAssetID(asset)
if err != nil {
return nil, 0, bitcoin.... | [
-0.6748020648956299,
0.1479271501302719,
0.9319614768028259,
-1.0424240827560425,
0.27325165271759033,
-0.578708827495575,
-0.6666705012321472,
-0.21143977344036102,
-0.45723289251327515,
0.6410322785377502,
-0.6010953187942505,
-0.30747365951538086,
-0.6292137503623962,
-0.536823987960815... |
func (t SGTranscoder) Decode(bytes []byte, flags uint32, out interface{}) error {
switch typedOut := out.(type) {
case *[]byte:
*typedOut = bytes
return nil
default:
defaultTranscoder := gocb.DefaultTranscoder{}
return defaultTranscoder.Decode(bytes, flags, out)
}
} | [
0.6052169799804688,
0.9920892715454102,
0.4645833969116211,
1.1534790992736816,
0.3020367920398712,
-0.2090212106704712,
0.22798402607440948,
-0.4057132601737976,
-0.4105280935764313,
-0.009945191442966461,
-0.7751529812812805,
0.11089968681335449,
-1.4857697486877441,
0.847008466720581,
... |
func ConsumeUntil(name xml.Name, xmlC <-chan XMLEvent) (XMLEvent, bool) {
for xe := range xmlC {
if se, ok := xe.Token.(xml.StartElement); ok {
if SloppyMatches(name, se.Name) {
return xe, true
}
}
}
return XMLEvent{}, false
} | [
0.6090776920318604,
-0.39833304286003113,
0.505121648311615,
-0.461164653301239,
-1.0390467643737793,
-0.2216111421585083,
-1.183335542678833,
-0.7674447298049927,
-0.018781835213303566,
0.35302892327308655,
-0.8434914946556091,
-0.0828576311469078,
0.04538751393556595,
0.2787928283214569,... |
func ForwardChildren(ctx context.Context, start XMLEvent, xmlC <-chan XMLEvent) <-chan XMLEvent {
eventC := make(chan XMLEvent, 1)
se := start.Token.(xml.StartElement)
go func() {
defer close(eventC)
count := 1
for xe := range xmlC {
if e, ok := xe.Token.(xml.StartElement); ok {
if StrictMatches(e.Name,... | [
0.5049943327903748,
-0.43152865767478943,
0.7666195034980774,
-0.7656530737876892,
-0.9155017137527466,
0.3170213997364044,
0.29419100284576416,
-0.35424894094467163,
-0.5360254049301147,
-0.19441314041614532,
-0.3945925831794739,
0.13873964548110962,
0.05754224956035614,
-0.07966780662536... |
func StrictMatches(n1, n2 xml.Name) bool {
return n1.Local == n2.Local && n1.Space == n2.Space
} | [
0.5375375151634216,
-0.6522184014320374,
0.48077428340911865,
0.37151238322257996,
-0.5677232146263123,
1.0457297563552856,
-1.2450692653656006,
-0.8062206506729126,
-0.39476585388183594,
-0.3807392716407776,
-0.8081411123275757,
-0.1800127476453781,
-0.4687771797180176,
0.2693972885608673... |
func SloppyMatches(n1, n2 xml.Name) bool {
if n1.Space != "" && n2.Space != "" {
return StrictMatches(n1, n2)
}
return n1.Local == n2.Local
} | [
-0.038268499076366425,
-0.2682975232601166,
0.5027614831924438,
-0.15181860327720642,
-0.5863507986068726,
0.5496888160705566,
-1.0967636108398438,
-0.5607094168663025,
-0.13470380008220673,
-0.39522305130958557,
-0.5990151166915894,
0.3619254231452942,
-0.21115829050540924,
1.018458724021... |
func StreamDoc(ctx context.Context, doc io.Reader) (<-chan XMLEvent, <-chan error) {
eventC := make(chan XMLEvent)
errC := make(chan error)
go func() {
defer close(eventC)
defer close(errC)
decoder := xml.NewDecoder(doc)
// Turns off unknown entities check. Would otherwise fail on resources
// using non-st... | [
0.8990673422813416,
-0.4174312353134155,
0.9515349268913269,
-0.6570824980735779,
-0.9999709129333496,
0.455111563205719,
0.9392033219337463,
-0.8957043886184692,
0.009409629739820957,
-0.24407130479812622,
0.8110372424125671,
0.6639906167984009,
0.48875710368156433,
0.47015172243118286,
... |
func SendXML(ctx context.Context, xmlC chan<- XMLEvent, xml XMLEvent) bool {
select {
case <-ctx.Done():
return false
case xmlC <- xml:
return true
}
} | [
-0.22905226051807404,
0.6990404725074768,
0.6154139637947083,
0.024767402559518814,
-0.5319824814796448,
0.5791159868240356,
-1.1315103769302368,
-0.5785620212554932,
0.4873146414756775,
0.3125274181365967,
0.01863088645040989,
-0.3623075783252716,
-0.7024546265602112,
-0.15365788340568542... |
func Attrs(xe XMLEvent) []xml.Attr {
if se, ok := xe.Token.(xml.StartElement); ok {
return se.Attr
}
return nil
} | [
0.1272602677345276,
-0.66315758228302,
0.4586602747440338,
0.4602067172527313,
-0.42084163427352905,
-0.8232512474060059,
-0.7799520492553711,
0.5474382042884827,
0.503403902053833,
0.14786073565483093,
-0.1972900778055191,
0.3900720775127411,
-0.06304217875003815,
-0.5323851704597473,
0... |
func New() *Stack {
return &Stack{
Tables: []*symboltable.Table{
symboltable.NewTable(),
},
Size: 0,
Imports: make(map[string]*gotypes.SymbolDef, 0),
}
} | [
-0.0797932893037796,
0.5853508710861206,
0.12358686327934265,
0.2908407747745514,
-0.48155924677848816,
-0.3511958420276642,
0.590982973575592,
-0.6489328145980835,
-0.8085729479789734,
0.28750747442245483,
-1.1124951839447021,
0.5111469626426697,
0.37450289726257324,
0.8465149998664856,
... |
func (s *Stack) Push() {
s.Tables = append(s.Tables, symboltable.NewTable())
s.Size++
glog.Infof("Pushing to symbol table stack %v\n", s.Size)
} | [
0.06816233694553375,
1.3326287269592285,
0.3742213547229767,
-0.08389737457036972,
-0.15595434606075287,
0.13898171484470367,
0.7531599998474121,
-0.6786104440689087,
-0.5574546456336975,
0.14860790967941284,
-1.1512490510940552,
1.1027148962020874,
0.30055639147758484,
1.0414272546768188,... |
func (s *Stack) Pop() {
if s.Size > 0 {
s.Tables = s.Tables[:s.Size-1]
s.Size--
} else {
panic("Popping over an empty stack of symbol tables")
// If you reached this line you are a magician
}
glog.Infof("Popping symbol table stack %v\n", s.Size)
} | [
0.18151696026325226,
1.1922123432159424,
0.31167545914649963,
0.27282384037971497,
-0.5308504104614258,
0.08433268964290619,
1.041412591934204,
-0.09357444941997528,
-0.41840285062789917,
0.621952474117279,
-0.6665228009223938,
0.3299635946750641,
0.14548134803771973,
0.3162473440170288,
... |
func (s *Stack) Lookup(name string) (*gotypes.SymbolDef, symboltable.SymbolType, error) {
// The top most item on the stack is the right most item in the simpleSlice
for i := s.Size - 1; i >= 0; i-- {
def, st, err := s.Tables[i].Lookup(name)
if err == nil {
return def, st, nil
}
}
return nil, symboltable.S... | [
-0.7372114062309265,
0.7369436621665955,
0.5758768916130066,
0.1820870190858841,
-0.41762396693229675,
-0.8412189483642578,
0.68996661901474,
-0.7869301438331604,
-0.11121657490730286,
1.001534104347229,
-1.4632914066314697,
0.011579682119190693,
0.032069992274045944,
0.6178760528564453,
... |
func (s *Stack) Table(level int) (*symboltable.Table, error) {
if level < 0 || s.Size-1 < level {
return nil, fmt.Errorf("No symbol table found for level %v", level)
}
return s.Tables[level], nil
} | [
0.13445541262626648,
0.008216463960707188,
0.5158349871635437,
0.026919947937130928,
-0.02455432340502739,
-0.9148099422454834,
0.9936921000480652,
-0.8966163992881775,
-0.7503874897956848,
-0.05617482587695122,
-0.18662455677986145,
0.05059627816081047,
-0.17788240313529968,
0.18000760674... |
func initGlfw() *glfw.Window {
if err := glfw.Init(); err != nil {
panic(err)
}
glfw.WindowHint(glfw.Resizable, glfw.False)
glfw.WindowHint(glfw.ContextVersionMajor, 4)
glfw.WindowHint(glfw.ContextVersionMinor, 1)
glfw.WindowHint(glfw.OpenGLProfile, glfw.OpenGLCoreProfile)
glfw.WindowHint(glfw.OpenGLForwardCom... | [
0.8331449031829834,
0.038914259523153305,
0.7885698676109314,
0.3476400375366211,
-0.40574246644973755,
-0.01425500400364399,
0.1865634024143219,
-0.38688424229621887,
0.24906164407730103,
-0.9842681288719177,
-0.1511784940958023,
0.8320891261100769,
-0.3108014464378357,
0.9366293549537659... |
func initOpenGL(drawer Drawer) uint32 {
err := gl.Init()
checkNoError(err)
version := gl.GoStr(gl.GetString(gl.VERSION))
log.Println("OpenGL version", version)
prog := gl.CreateProgram()
checkNoError(drawer.LoadProgram(prog))
gl.LinkProgram(prog)
return prog
} | [
-0.13973623514175415,
0.007013734895735979,
0.7655539512634277,
-0.7909618020057678,
-1.238612413406372,
0.7563201189041138,
0.779512882232666,
-0.010129914619028568,
0.24536246061325073,
-0.23218803107738495,
-0.8903530836105347,
0.20999360084533691,
-0.4803880453109741,
-0.12842562794685... |
func makeVao(vertices []float32, textureCoords []float32) uint32 {
vbos := make([]uint32, 2)
// vertices
gl.GenBuffers(1, &vbos[0])
gl.BindBuffer(gl.ARRAY_BUFFER, vbos[0])
gl.BufferData(gl.ARRAY_BUFFER, 4*len(vertices), gl.Ptr(vertices), gl.STATIC_DRAW)
// texture coords
texInvertY(textureCoords)
gl.GenBuffers... | [
0.8589924573898315,
-0.008746945299208164,
1.153796911239624,
-0.7377323508262634,
-0.791968822479248,
0.49351784586906433,
0.35007110238075256,
-0.648094117641449,
0.1600857824087143,
0.08184949308633804,
-0.4005436301231384,
0.1887025684118271,
0.1848485916852951,
-0.09765679389238358,
... |
func newMaxEPSSampler(maxEPS float64) *maxEPSSampler {
return &maxEPSSampler{
maxEPS: maxEPS,
rateCounter: newSamplerBackendRateCounter(),
reportDone: make(chan bool),
}
} | [
-0.1726044863462448,
-0.690781831741333,
0.291012167930603,
-0.48700422048568726,
-1.382493019104004,
-0.6525019407272339,
-0.3736688196659088,
0.45351678133010864,
1.1425683498382568,
-0.07601574063301086,
-0.2601601779460907,
-1.0209710597991943,
-0.3182433247566223,
0.7166305780410767,
... |
func (s *maxEPSSampler) Start() {
s.rateCounter.Start()
go func() {
ticker := time.NewTicker(maxEPSReportFrequency)
defer close(s.reportDone)
defer ticker.Stop()
for {
select {
case <-s.reportDone:
return
case <-ticker.C:
s.report()
}
}
}()
} | [
0.26010948419570923,
0.41876065731048584,
0.2876410484313965,
-0.48237505555152893,
0.4313628375530243,
-0.29514774680137634,
0.5638023018836975,
0.47744670510292053,
-0.20315922796726227,
-0.44794076681137085,
0.21461308002471924,
-0.16731101274490356,
-0.4759330153465271,
1.1088033914566... |
func (s *maxEPSSampler) Stop() {
s.reportDone <- true
<-s.reportDone
s.rateCounter.Stop()
} | [
-0.15910604596138,
0.06932953000068665,
0.1587911993265152,
-0.6156604290008545,
0.5005649924278259,
0.29886993765830994,
0.7384414672851562,
0.9110572934150696,
-0.2602105736732483,
-0.21842274069786072,
-0.6688930988311768,
-0.5149325728416443,
-0.7487366199493408,
0.8055838346481323,
... |
func (s *maxEPSSampler) Sample(event *pb.Span) (sampled bool, rate float64) {
// Count that we saw a new event
s.rateCounter.Count()
rate = 1.0
currentEPS := s.rateCounter.GetRate()
if currentEPS > s.maxEPS {
rate = s.maxEPS / currentEPS
}
sampled = sampler.SampleByRate(event.TraceID, rate)
return
} | [
0.41462963819503784,
-0.0011212944518774748,
0.4533316195011139,
-0.686320960521698,
-0.7203317284584045,
0.16242219507694244,
-0.013857906684279442,
-0.49002936482429504,
1.0580185651779175,
0.3728542923927307,
-0.035786401480436325,
-0.46115848422050476,
-0.07057470828294754,
0.825561285... |
func (s *maxEPSSampler) getSampleRate() float64 {
rate := 1.0
currentEPS := s.rateCounter.GetRate()
if currentEPS > s.maxEPS {
rate = s.maxEPS / currentEPS
}
return rate
} | [
0.042077552527189255,
0.13277587294578552,
0.2957312762737274,
-0.3709162473678589,
-0.9858154058456421,
-0.6795716285705566,
-0.8205200433731079,
0.5275907516479492,
0.7789244055747986,
-0.348829060792923,
0.639244556427002,
-1.3122758865356445,
-1.0978891849517822,
0.9551156163215637,
... |
func newSamplerBackendRateCounter() *samplerBackendRateCounter {
return &samplerBackendRateCounter{
backend: newMemoryBackend(),
exit: make(chan struct{}),
stopped: make(chan struct{}),
}
} | [
1.3741464614868164,
-0.38183507323265076,
0.4357832372188568,
-0.45763227343559265,
-0.3353896737098694,
-0.7635267972946167,
0.3845507800579071,
0.004836139734834433,
-0.21319404244422913,
-0.427447110414505,
-0.5166528820991516,
0.48423171043395996,
-0.1732790619134903,
0.441596657037735... |
func (s *samplerBackendRateCounter) Start() {
go func() {
defer watchdog.LogOnPanic()
decayTicker := time.NewTicker(s.backend.decayPeriod)
defer decayTicker.Stop()
for {
select {
case <-decayTicker.C:
s.backend.decayScore()
case <-s.exit:
close(s.stopped)
return
}
}
}()
} | [
0.84661865234375,
-0.608619749546051,
0.45929375290870667,
0.29919445514678955,
0.09980351477861404,
0.5470533967018127,
0.36031875014305115,
0.033621881157159805,
-0.5717702507972717,
-0.18936550617218018,
0.11270657926797867,
1.2408570051193237,
-0.1412782073020935,
1.009436011314392,
... |
func (s *samplerBackendRateCounter) Stop() {
close(s.exit)
<-s.stopped
} | [
0.5708999633789062,
-0.16463910043239594,
0.2071412056684494,
0.07560665160417557,
0.0027295639738440514,
0.872133731842041,
0.9836277365684509,
0.3494924008846283,
-0.942887544631958,
-0.35125014185905457,
-0.4293953776359558,
0.5063915252685547,
-0.546110212802887,
0.5551803708076477,
... |
func (s *samplerBackendRateCounter) Count() {
s.backend.countSample()
} | [
1.4606878757476807,
-0.18888288736343384,
0.24552030861377716,
0.25426530838012695,
0.7974093556404114,
-0.11975700408220291,
1.1599565744400024,
-0.06955313682556152,
-0.726353108882904,
-0.10194554924964905,
-0.3258417844772339,
0.15793858468532562,
0.30119091272354126,
1.324737548828125... |
func (s *samplerBackendRateCounter) GetRate() float64 {
return s.backend.getUpperSampledScore()
} | [
0.6951800584793091,
0.45579713582992554,
0.31651929020881653,
0.8078439235687256,
0.5234799385070801,
-0.17812499403953552,
0.09135057032108307,
-0.25356829166412354,
0.18914033472537994,
-0.2106550931930542,
0.7696958780288696,
-0.16224883496761322,
-0.9966694712638855,
0.8244379162788391... |
func (r *TaobaoTradeFullinfoGetAPIRequest) SetIncludeOaid(_includeOaid string) error {
r._includeOaid = _includeOaid
r.Set("include_oaid", _includeOaid)
return nil
} | [
0.6572865843772888,
-0.44378986954689026,
0.24660974740982056,
-0.7809954881668091,
-1.1550557613372803,
0.35794633626937866,
0.3859313726425171,
0.22256791591644287,
1.4311144351959229,
0.6195942759513855,
0.34271642565727234,
0.13163131475448608,
-0.5994426012039185,
0.19184008240699768,... |
func newAuthMutation(c config, op Op, opts ...authOption) *AuthMutation {
m := &AuthMutation{
config: c,
op: op,
typ: TypeAuth,
clearedFields: make(map[string]struct{}),
}
for _, opt := range opts {
opt(m)
}
return m
} | [
-1.2920982837677002,
-0.4322878122329712,
0.41026952862739563,
0.9183846712112427,
-0.6398113369941711,
-1.0248757600784302,
1.0780463218688965,
-0.035407740622758865,
0.908862292766571,
0.6512919068336487,
-0.9589905142784119,
-0.054652173072099686,
-0.4889686405658722,
-0.817779719829559... |
func withAuthID(id int) authOption {
return func(m *AuthMutation) {
var (
err error
once sync.Once
value *Auth
)
m.oldValue = func(ctx context.Context) (*Auth, error) {
once.Do(func() {
if m.done {
err = fmt.Errorf("querying old values post mutation is not allowed")
} else {
valu... | [
0.2818337678909302,
-0.7410824298858643,
0.5210963487625122,
-0.14610408246517181,
-0.35850414633750916,
0.04875437915325165,
0.489813894033432,
-0.7780043482780457,
0.9851212501525879,
0.26498860120773315,
-0.08280912041664124,
0.685153067111969,
0.6155365109443665,
0.22410470247268677,
... |
func withAuth(node *Auth) authOption {
return func(m *AuthMutation) {
m.oldValue = func(context.Context) (*Auth, error) {
return node, nil
}
m.id = &node.ID
}
} | [
-0.23244088888168335,
-0.16084052622318268,
0.38194209337234497,
0.4904938340187073,
-0.19278547167778015,
-0.43902403116226196,
1.0378494262695312,
-0.1787925660610199,
1.1501411199569702,
-0.2599027752876282,
-0.004306958056986332,
0.69781094789505,
1.5044060945510864,
-0.555857121944427... |
func (m AuthMutation) Client() *Client {
client := &Client{config: m.config}
client.init()
return client
} | [
-0.5157009959220886,
-0.17460939288139343,
0.023422641679644585,
0.5171651840209961,
-0.5982698798179626,
0.08430611342191696,
1.0210946798324585,
-0.035956867039203644,
0.8900470733642578,
-0.3593643307685852,
-0.5544439554214478,
0.6106303930282593,
0.2618669271469116,
-0.917757987976074... |
func (m AuthMutation) Tx() (*Tx, error) {
if _, ok := m.driver.(*txDriver); !ok {
return nil, fmt.Errorf("ent: mutation is not running in a transaction")
}
tx := &Tx{config: m.config}
tx.init()
return tx, nil
} | [
-0.3039672374725342,
0.4520772695541382,
0.3422720432281494,
0.5195299983024597,
0.1119767427444458,
-0.05528271570801735,
0.007884428836405277,
0.25226902961730957,
0.935844361782074,
0.14755025506019592,
-0.13316626846790314,
-0.009727208875119686,
-0.2313251495361328,
-0.926098883152008... |
func (m *AuthMutation) ID() (id int, exists bool) {
if m.id == nil {
return
}
return *m.id, true
} | [
-0.8622570037841797,
0.030844463035464287,
0.5498488545417786,
0.7199240922927856,
0.13965973258018494,
0.21092742681503296,
0.3609105050563812,
0.30422279238700867,
1.4522109031677246,
0.5576360821723938,
-0.2514934241771698,
-0.3898332118988037,
-0.8054354190826416,
0.1954566091299057,
... |
func (m *AuthMutation) SetLastAuthTime(t time.Time) {
m.last_auth_time = &t
} | [
-0.5246394872665405,
0.3642836809158325,
0.1834811568260193,
-0.425144761800766,
-0.7562013268470764,
0.05660025030374527,
0.16198980808258057,
-0.033581819385290146,
0.7419025897979736,
0.6939532160758972,
-0.567267119884491,
-0.41183704137802124,
0.1935013085603714,
0.6291531324386597,
... |
func (m *AuthMutation) LastAuthTime() (r time.Time, exists bool) {
v := m.last_auth_time
if v == nil {
return
}
return *v, true
} | [
-1.2144783735275269,
0.5806411504745483,
0.4508785009384155,
0.04296645149588585,
-0.3330482542514801,
-0.4764588177204132,
0.490934818983078,
-0.22220012545585632,
1.050491213798523,
0.735634446144104,
-0.34868600964546204,
-0.6634482741355896,
-0.45851778984069824,
0.10683727264404297,
... |
func (m *AuthMutation) OldLastAuthTime(ctx context.Context) (v time.Time, err error) {
if !m.op.Is(OpUpdateOne) {
return v, fmt.Errorf("OldLastAuthTime is only allowed on UpdateOne operations")
}
if m.id == nil || m.oldValue == nil {
return v, fmt.Errorf("OldLastAuthTime requires an ID field in the mutation")
}... | [
-0.7616316676139832,
0.19694527983665466,
0.48301321268081665,
-0.39507782459259033,
-0.9756433963775635,
-0.34208667278289795,
0.08689585328102112,
-0.34123119711875916,
1.1812735795974731,
1.0266444683074951,
0.09503073245286942,
-0.48816967010498047,
0.21773426234722137,
0.4375693500041... |
func (m *AuthMutation) ResetLastAuthTime() {
m.last_auth_time = nil
} | [
-0.2672485113143921,
0.42650920152664185,
0.12119758874177933,
-0.06792213022708893,
-0.031846072524785995,
-0.4413617253303528,
0.2716095447540283,
-0.1285557746887207,
0.3040420114994049,
0.8642304539680481,
-0.15168379247188568,
0.30514127016067505,
-0.048840295523405075,
0.123128958046... |
func (m *AuthMutation) SetAuthType(at auth.AuthType) {
m.auth_type = &at
} | [
-0.1927364021539688,
0.05953599512577057,
0.3273763656616211,
0.782682478427887,
0.26431214809417725,
-0.3543628454208374,
0.32913392782211304,
-0.7323829531669617,
0.5964244604110718,
-0.3097125291824341,
-0.3152461051940918,
0.4134038984775543,
0.9088625907897949,
0.9909867644309998,
-... |
func (m *AuthMutation) AuthType() (r auth.AuthType, exists bool) {
v := m.auth_type
if v == nil {
return
}
return *v, true
} | [
-0.4604324698448181,
0.9070531129837036,
0.41697371006011963,
1.2971981763839722,
0.6217766404151917,
-0.9014719724655151,
0.5724496245384216,
-0.22081372141838074,
0.765905499458313,
0.39514803886413574,
0.27635225653648376,
-0.15126393735408783,
-0.1248060092329979,
0.27561697363853455,
... |
func (m *AuthMutation) OldAuthType(ctx context.Context) (v auth.AuthType, err error) {
if !m.op.Is(OpUpdateOne) {
return v, fmt.Errorf("OldAuthType is only allowed on UpdateOne operations")
}
if m.id == nil || m.oldValue == nil {
return v, fmt.Errorf("OldAuthType requires an ID field in the mutation")
}
oldVal... | [
-0.732269823551178,
-0.03947688639163971,
0.3770586848258972,
0.5295381546020508,
-0.31331130862236023,
-0.9344866871833801,
0.5241231918334961,
-0.4953221380710602,
0.9403799176216125,
0.2742692232131958,
0.3147889971733093,
0.12429329752922058,
0.04255532845854759,
0.41180047392845154,
... |
func (m *AuthMutation) ResetAuthType() {
m.auth_type = nil
} | [
0.07037559151649475,
0.30928701162338257,
0.036467790603637695,
1.136243224143982,
0.6684943437576294,
-0.8768361210823059,
1.0201157331466675,
0.06261900067329407,
-0.0023066687863320112,
0.00406002439558506,
-0.08543219417333603,
0.493539959192276,
-0.3945959508419037,
0.2362360805273056... |
func (m *AuthMutation) SetBelongToID(id int) {
m.belong_to = &id
} | [
0.16652682423591614,
-0.24543267488479614,
0.3176451027393341,
-0.29635632038116455,
0.46967262029647827,
0.702957272529602,
-0.37108147144317627,
-0.46699294447898865,
0.08183005452156067,
0.2502603232860565,
-0.5667392015457153,
0.6283595561981201,
-0.4289150834083557,
0.7670912742614746... |
func (m *AuthMutation) ClearBelongTo() {
m.clearedbelong_to = true
} | [
-0.09063110500574112,
0.43441498279571533,
0.308885782957077,
0.03430458530783653,
0.4888499677181244,
0.43700525164604187,
-0.36957746744155884,
-1.0056864023208618,
-0.4541511535644531,
0.921453058719635,
-0.16354559361934662,
1.4180834293365479,
0.2587276101112366,
-0.17189852893352509,... |
func (m *AuthMutation) BelongToCleared() bool {
return m.clearedbelong_to
} | [
0.3724838197231293,
-0.005413534119725227,
0.5429997444152832,
-0.4014396667480469,
0.5894437432289124,
0.9254613518714905,
-0.4142046272754669,
-1.186859369277954,
0.34316596388816833,
0.061643511056900024,
-0.14353621006011963,
1.0729173421859741,
-0.2735501527786255,
0.10456402599811554... |
func (m *AuthMutation) BelongToID() (id int, exists bool) {
if m.belong_to != nil {
return *m.belong_to, true
}
return
} | [
0.09472014755010605,
-0.035598307847976685,
0.606878936290741,
0.15654118359088898,
0.7502726316452026,
0.5287128686904907,
0.5066408514976501,
-0.6189131140708923,
0.6898550391197205,
0.4210585951805115,
-0.1654699593782425,
0.32309839129447937,
-0.7309331297874451,
0.5639507174491882,
... |
func (m *AuthMutation) BelongToIDs() (ids []int) {
if id := m.belong_to; id != nil {
ids = append(ids, *id)
}
return
} | [
-0.26422590017318726,
-0.2590034604072571,
0.29106587171554565,
-0.4608800709247589,
1.2917166948318481,
-0.1631377786397934,
0.24118724465370178,
-0.4123554527759552,
0.4020172357559204,
-0.0964263305068016,
-0.33720213174819946,
0.5888402462005615,
-0.6254843473434448,
0.1930831670761108... |
func (m *AuthMutation) ResetBelongTo() {
m.belong_to = nil
m.clearedbelong_to = false
} | [
0.3296656608581543,
0.4019210934638977,
0.23558665812015533,
0.12433306872844696,
1.4008132219314575,
-0.3293651342391968,
0.27597731351852417,
-0.8065405488014221,
-0.861453652381897,
0.24192646145820618,
-0.5575323700904846,
1.4443145990371704,
-0.5918120741844177,
-0.41451647877693176,
... |
func (m *AuthMutation) Where(ps ...predicate.Auth) {
m.predicates = append(m.predicates, ps...)
} | [
-0.5170082449913025,
-0.2672150135040283,
0.3211125433444977,
0.26847580075263977,
-0.46661972999572754,
0.3666428029537201,
0.13727375864982605,
-0.28192782402038574,
-0.09040085226297379,
-0.20345552265644073,
0.4215117394924164,
0.9665068984031677,
-0.023083725944161415,
-0.319918006658... |
func (m *AuthMutation) Op() Op {
return m.op
} | [
-1.1727958917617798,
0.2820760905742645,
0.12174438685178757,
1.1049968004226685,
-0.4776586592197418,
0.8217247128486633,
0.9340490698814392,
0.33177658915519714,
0.9298531413078308,
0.5596994757652283,
0.30562224984169006,
-0.1721060425043106,
0.16355660557746887,
-1.213948369026184,
0... |
func (m *AuthMutation) Type() string {
return m.typ
} | [
-0.5947580933570862,
-0.3209605813026428,
0.05524871498346329,
1.0128692388534546,
0.2758159339427948,
0.37581393122673035,
0.9464790225028992,
-1.0292868614196777,
1.4652460813522339,
0.558179497718811,
0.42566922307014465,
0.49685898423194885,
-0.5763254761695862,
-0.2582836449146271,
... |
func (m *AuthMutation) Fields() []string {
fields := make([]string, 0, 2)
if m.last_auth_time != nil {
fields = append(fields, auth.FieldLastAuthTime)
}
if m.auth_type != nil {
fields = append(fields, auth.FieldAuthType)
}
return fields
} | [
-1.3705825805664062,
0.1447146087884903,
0.3210839331150055,
-0.23990480601787567,
0.3806135058403015,
-0.14693444967269897,
-0.6835148930549622,
-0.42509064078330994,
1.2250027656555176,
0.19217093288898468,
-0.25077202916145325,
-0.19691583514213562,
-0.22650061547756195,
-0.058454286307... |
func (m *AuthMutation) Field(name string) (ent.Value, bool) {
switch name {
case auth.FieldLastAuthTime:
return m.LastAuthTime()
case auth.FieldAuthType:
return m.AuthType()
}
return nil, false
} | [
-1.6489413976669312,
0.2588801681995392,
0.5916768312454224,
0.2570125460624695,
-0.5712286829948425,
0.1478850543498993,
-0.7333531975746155,
-0.4676225483417511,
0.9432413578033447,
-0.01385908666998148,
-0.3094498813152313,
-0.30744627118110657,
-0.29380208253860474,
0.4479999542236328,... |
func (m *AuthMutation) OldField(ctx context.Context, name string) (ent.Value, error) {
switch name {
case auth.FieldLastAuthTime:
return m.OldLastAuthTime(ctx)
case auth.FieldAuthType:
return m.OldAuthType(ctx)
}
return nil, fmt.Errorf("unknown Auth field %s", name)
} | [
-0.8247253894805908,
0.3430609405040741,
0.5111414790153503,
-0.47567811608314514,
-0.3396349549293518,
0.15323390066623688,
-0.06513496488332748,
-0.8234073519706726,
0.9546710848808289,
0.05702666938304901,
-0.13863755762577057,
0.4829522371292114,
-0.07661035656929016,
-0.12852753698825... |
func (m *AuthMutation) SetField(name string, value ent.Value) error {
switch name {
case auth.FieldLastAuthTime:
v, ok := value.(time.Time)
if !ok {
return fmt.Errorf("unexpected type %T for field %s", value, name)
}
m.SetLastAuthTime(v)
return nil
case auth.FieldAuthType:
v, ok := value.(auth.AuthTyp... | [
-1.3204271793365479,
0.5992217659950256,
0.6000942587852478,
0.1332714855670929,
-0.4041779637336731,
0.4116896688938141,
-0.3394717574119568,
-0.5261322855949402,
0.6463683247566223,
0.2500227689743042,
-0.18110458552837372,
0.14724215865135193,
0.030599433928728104,
0.6771906614303589,
... |
func (m *AuthMutation) AddedFields() []string {
return nil
} | [
-0.5070395469665527,
0.738146185874939,
0.5370479822158813,
0.10861726850271225,
0.015241856686770916,
0.7813758254051208,
0.2784557342529297,
-0.006799619644880295,
1.6301450729370117,
-0.8693547248840332,
-0.5069131851196289,
0.030860112980008125,
-1.3287452459335327,
-0.2181898057460785... |
func (m *AuthMutation) AddedField(name string) (ent.Value, bool) {
return nil, false
} | [
-1.6174196004867554,
0.8674061298370361,
0.7765319347381592,
0.007587648928165436,
-0.6052755117416382,
1.103499412536621,
-0.39931613206863403,
0.038969602435827255,
1.069638967514038,
-0.3245723247528076,
-0.8535763621330261,
-0.7977980375289917,
-1.3889570236206055,
-0.20503509044647217... |
func (m *AuthMutation) AddField(name string, value ent.Value) error {
switch name {
}
return fmt.Errorf("unknown Auth numeric field %s", name)
} | [
-1.0504145622253418,
0.7825530767440796,
0.6102242469787598,
0.4195807874202728,
-0.4221591353416443,
1.2205296754837036,
-1.064412236213684,
-0.3863429129123688,
0.37676572799682617,
0.009497340768575668,
-0.142032653093338,
-0.6525771021842957,
-0.09383522719144821,
-0.09053316712379456,... |
func (m *AuthMutation) ClearedFields() []string {
return nil
} | [
-0.5425420999526978,
1.0708290338516235,
0.44658565521240234,
0.11672515422105789,
-0.6137762069702148,
0.5302615761756897,
0.2381455898284912,
-0.3920100927352905,
1.450122356414795,
0.5941997766494751,
-0.38480985164642334,
0.02597668394446373,
-1.0355803966522217,
-1.0311082601547241,
... |
func (m *AuthMutation) FieldCleared(name string) bool {
_, ok := m.clearedFields[name]
return ok
} | [
-0.8994386792182922,
0.5180249810218811,
0.7022675275802612,
0.025928888469934464,
-0.5081162452697754,
0.2582443654537201,
-0.8058585524559021,
-0.0417669340968132,
0.4157311022281647,
-0.06186815723776817,
-1.0424565076828003,
-0.3063376247882843,
0.3961411714553833,
-0.6598426699638367,... |
func (m *AuthMutation) ClearField(name string) error {
return fmt.Errorf("unknown Auth nullable field %s", name)
} | [
-0.5681725740432739,
1.0060384273529053,
0.5490937232971191,
-0.049654219299554825,
-0.8406232595443726,
0.47328391671180725,
-0.6771191358566284,
-0.557375967502594,
0.9050588607788086,
1.0868134498596191,
-0.3941304385662079,
-0.24121113121509552,
-0.04554877430200577,
-0.217116311192512... |
func (m *AuthMutation) ResetField(name string) error {
switch name {
case auth.FieldLastAuthTime:
m.ResetLastAuthTime()
return nil
case auth.FieldAuthType:
m.ResetAuthType()
return nil
}
return fmt.Errorf("unknown Auth field %s", name)
} | [
-1.1543711423873901,
1.1001205444335938,
0.42277368903160095,
0.21992817521095276,
-0.04620647057890892,
0.07533154636621475,
0.30615633726119995,
-0.44648340344429016,
0.7997250556945801,
0.34791553020477295,
-0.38058072328567505,
0.0687876045703888,
-0.5271905660629272,
-0.23583100736141... |
func (m *AuthMutation) AddedEdges() []string {
edges := make([]string, 0, 1)
if m.belong_to != nil {
edges = append(edges, auth.EdgeBelongTo)
}
return edges
} | [
-0.49835309386253357,
-0.1203387975692749,
0.32801002264022827,
0.7046551704406738,
0.5741615891456604,
0.22998438775539398,
-1.0100024938583374,
-0.48394274711608887,
1.2106751203536987,
0.20840266346931458,
0.6039612293243408,
0.6222712397575378,
-0.9278156757354736,
0.2541254460811615,
... |
func (m *AuthMutation) AddedIDs(name string) []ent.Value {
switch name {
case auth.EdgeBelongTo:
if id := m.belong_to; id != nil {
return []ent.Value{*id}
}
}
return nil
} | [
-0.7886636257171631,
0.02362910658121109,
0.3438308537006378,
-0.07907195389270782,
0.23819872736930847,
0.3271131217479706,
-1.0965646505355835,
-0.532378077507019,
0.9914058446884155,
0.1812485009431839,
0.15241199731826782,
0.5295581817626953,
-0.5896630883216858,
0.3235250413417816,
... |
func (m *AuthMutation) RemovedEdges() []string {
edges := make([]string, 0, 1)
return edges
} | [
-0.6385431885719299,
-0.16278882324695587,
0.47093626856803894,
0.5452198386192322,
-0.34084179997444153,
-0.2649010121822357,
-0.07195151597261429,
0.44961434602737427,
1.451262354850769,
0.3617236614227295,
-0.5791701078414917,
0.4333948493003845,
-1.3933207988739014,
-0.1832437813282013... |
func (m *AuthMutation) RemovedIDs(name string) []ent.Value {
switch name {
}
return nil
} | [
-1.0031460523605347,
-0.11686693131923676,
0.4818114638328552,
-0.3759637773036957,
-0.2867985665798187,
0.13010406494140625,
-0.4663845896720886,
0.5060701966285706,
1.0977041721343994,
0.17882485687732697,
-1.675370454788208,
-0.14290741086006165,
-0.9693264961242676,
0.15337510406970978... |
func (m *AuthMutation) ClearedEdges() []string {
edges := make([]string, 0, 1)
if m.clearedbelong_to {
edges = append(edges, auth.EdgeBelongTo)
}
return edges
} | [
-1.1017011404037476,
0.17009545862674713,
0.3914726972579956,
0.8183658123016357,
-0.33105677366256714,
-0.3612591028213501,
-0.8752778768539429,
-1.0475239753723145,
0.9426776170730591,
1.6595195531845093,
0.31830087304115295,
1.0959644317626953,
-0.5937421321868896,
-0.583921492099762,
... |
func (m *AuthMutation) EdgeCleared(name string) bool {
switch name {
case auth.EdgeBelongTo:
return m.clearedbelong_to
}
return false
} | [
-1.1743117570877075,
0.29076772928237915,
0.6366251111030579,
0.1010393351316452,
-0.37943413853645325,
0.2501678168773651,
-0.852084219455719,
-0.6949571371078491,
0.30494987964630127,
0.9596314430236816,
0.08376660943031311,
0.25240233540534973,
-0.45342203974723816,
-0.5137253999710083,... |
func (m *AuthMutation) ClearEdge(name string) error {
switch name {
case auth.EdgeBelongTo:
m.ClearBelongTo()
return nil
}
return fmt.Errorf("unknown Auth unique edge %s", name)
} | [
-1.5028712749481201,
1.3084487915039062,
0.39456623792648315,
1.1771976947784424,
-0.1333882063627243,
-0.053229931741952896,
-0.4502233564853668,
-0.1010679379105568,
0.5102099776268005,
0.998387336730957,
0.44055673480033875,
0.3234330117702484,
-0.2070426344871521,
0.3622211813926697,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.