text
stringlengths
11
6.3k
embedding
listlengths
768
768
func CreatedAtGTE(v time.Time) predicate.Delivery { return predicate.Delivery(func(s *sql.Selector) { s.Where(sql.GTE(s.C(FieldCreatedAt), v)) }) }
[ 0.3977821469306946, 0.3668162226676941, 0.3004659116268158, 0.4899206757545471, -0.03450720012187958, 1.4672209024429321, 0.4388887584209442, -0.2808438539505005, -1.9645037651062012, -0.23618799448013306, -0.2946273386478424, 0.2457984983921051, 1.038141131401062, 1.0040605068206787, -0...
func CreatedAtLT(v time.Time) predicate.Delivery { return predicate.Delivery(func(s *sql.Selector) { s.Where(sql.LT(s.C(FieldCreatedAt), v)) }) }
[ 0.954679012298584, -0.1987304538488388, 0.22248810529708862, -0.5152294039726257, 0.03884093463420868, 1.0219992399215698, -0.12292450666427612, -1.0328649282455444, -0.670025110244751, -0.9594919085502625, -0.15065951645374298, -0.1263534426689148, 0.899678111076355, 0.8692666888237, -1...
func CreatedAtLTE(v time.Time) predicate.Delivery { return predicate.Delivery(func(s *sql.Selector) { s.Where(sql.LTE(s.C(FieldCreatedAt), v)) }) }
[ 1.1091376543045044, -0.3482595682144165, 0.2726309895515442, -0.1363568902015686, 0.6309878826141357, 1.1439476013183594, 0.13588598370552063, -0.4274270236492157, -1.111606240272522, -0.4808756709098816, -0.8841156959533691, 0.27015572786331177, 1.059203863143921, 0.7336220741271973, -0...
func UpdatedAtEQ(v time.Time) predicate.Delivery { return predicate.Delivery(func(s *sql.Selector) { s.Where(sql.EQ(s.C(FieldUpdatedAt), v)) }) }
[ -1.0446723699569702, -0.559688150882721, 0.5615114569664001, 0.4858664572238922, -1.2298754453659058, 0.9389241933822632, -0.21619322896003723, 0.5589913129806519, 0.1515989601612091, 0.881622850894928, -1.1296006441116333, 0.3733350932598114, 1.1208643913269043, 0.8502681851387024, -1.0...
func UpdatedAtNEQ(v time.Time) predicate.Delivery { return predicate.Delivery(func(s *sql.Selector) { s.Where(sql.NEQ(s.C(FieldUpdatedAt), v)) }) }
[ -0.8986746072769165, -0.4398360252380371, 0.5003869533538818, 0.34842920303344727, -1.5865756273269653, 0.8915083408355713, -0.7880245447158813, -0.06678082793951035, -0.7132295966148376, 0.5670580863952637, -1.3518974781036377, 0.3869974911212921, 1.248464584350586, 0.07663161307573318, ...
func UpdatedAtIn(vs ...time.Time) predicate.Delivery { v := make([]interface{}, len(vs)) for i := range v { v[i] = vs[i] } return predicate.Delivery(func(s *sql.Selector) { // if not arguments were provided, append the FALSE constants, // since we can't apply "IN ()". This will make this predicate falsy. if...
[ -0.7541545033454895, -0.5325700044631958, 0.6247400641441345, 0.22101368010044098, -0.9495642781257629, 1.1958588361740112, -0.4957771599292755, -0.06539669632911682, -0.514439046382904, 0.2514638602733612, 0.3249804973602295, 0.15607967972755432, 0.34942924976348877, 0.3432486653327942, ...
func UpdatedAtNotIn(vs ...time.Time) predicate.Delivery { v := make([]interface{}, len(vs)) for i := range v { v[i] = vs[i] } return predicate.Delivery(func(s *sql.Selector) { // if not arguments were provided, append the FALSE constants, // since we can't apply "IN ()". This will make this predicate falsy. ...
[ -0.7673360109329224, -0.7305376529693604, 0.4869479537010193, 0.09064366668462753, -0.5922724008560181, 1.342655897140503, -0.2785325050354004, -0.2547149956226349, -0.8398435711860657, 0.27069151401519775, -0.005924955476075411, 0.24403777718544006, 0.24738003313541412, -0.126135066151618...
func UpdatedAtGT(v time.Time) predicate.Delivery { return predicate.Delivery(func(s *sql.Selector) { s.Where(sql.GT(s.C(FieldUpdatedAt), v)) }) }
[ -0.17778490483760834, -0.16249056160449982, 0.3276580572128296, 0.03400741145014763, -1.6602734327316284, 0.9082537293434143, -0.4944678843021393, -0.020792674273252487, -0.4711756706237793, 0.3156110942363739, -0.15831582248210907, 0.4689887762069702, 1.2756248712539673, 0.720064699649810...
func UpdatedAtGTE(v time.Time) predicate.Delivery { return predicate.Delivery(func(s *sql.Selector) { s.Where(sql.GTE(s.C(FieldUpdatedAt), v)) }) }
[ 0.03880628943443298, -0.03684614598751068, 0.34941819310188293, 0.18389762938022614, -1.118125557899475, 1.3457602262496948, 0.14296101033687592, 0.2524889409542084, -1.3755029439926147, 0.795617938041687, -0.2279634177684784, 0.5199160575866699, 0.9594588279724121, 0.6300974488258362, -...
func UpdatedAtLT(v time.Time) predicate.Delivery { return predicate.Delivery(func(s *sql.Selector) { s.Where(sql.LT(s.C(FieldUpdatedAt), v)) }) }
[ 0.5298152565956116, -0.7152273058891296, 0.4087538421154022, -0.6230049729347229, -1.0897252559661865, 1.1333953142166138, -0.369728147983551, -0.7837114930152893, -0.2080448865890503, -0.09179692715406418, -0.2943054139614105, 0.25300347805023193, 1.0131101608276367, 0.4825762212276459, ...
func UpdatedAtLTE(v time.Time) predicate.Delivery { return predicate.Delivery(func(s *sql.Selector) { s.Where(sql.LTE(s.C(FieldUpdatedAt), v)) }) }
[ 0.6982740163803101, -0.7746586203575134, 0.47185567021369934, -0.510388195514679, -0.5962898135185242, 1.1579828262329102, -0.14311248064041138, 0.08295390754938126, -0.615807056427002, 0.5424079895019531, -0.8325533866882324, 0.6227987408638, 0.9076201915740967, 0.3471224904060364, -1.0...
func StatusEQ(v Status) predicate.Delivery { return predicate.Delivery(func(s *sql.Selector) { s.Where(sql.EQ(s.C(FieldStatus), v)) }) }
[ -0.6438952088356018, -0.6139095425605774, 0.15721085667610168, 0.625063955783844, -0.5401989221572876, 0.7292795777320862, 0.4324009418487549, 1.464120626449585, -0.4265744984149933, 1.2628083229064941, -0.9673182964324951, -0.12890109419822693, 1.0852148532867432, 0.07503165304660797, -...
func StatusNEQ(v Status) predicate.Delivery { return predicate.Delivery(func(s *sql.Selector) { s.Where(sql.NEQ(s.C(FieldStatus), v)) }) }
[ -0.740062415599823, -0.8877502679824829, 0.3134881854057312, 1.0558935403823853, -1.4538071155548096, 0.6718950867652893, -0.773952066898346, 0.9459768533706665, -0.6724035739898682, 0.7364129424095154, -1.1508123874664307, -0.4668659269809723, 0.9118364453315735, -0.19717055559158325, -...
func StatusIn(vs ...Status) predicate.Delivery { v := make([]interface{}, len(vs)) for i := range v { v[i] = vs[i] } return predicate.Delivery(func(s *sql.Selector) { // if not arguments were provided, append the FALSE constants, // since we can't apply "IN ()". This will make this predicate falsy. if len(v...
[ -0.3899226784706116, -0.2212410718202591, 0.3973759412765503, 0.7891241312026978, -0.3253244459629059, 1.0168044567108154, -0.3247494101524353, 1.0905038118362427, -0.6489227414131165, -0.041296131908893585, 0.008990916423499584, -0.002371396403759718, 0.06544395536184311, -0.0014657800784...
func StatusNotIn(vs ...Status) predicate.Delivery { v := make([]interface{}, len(vs)) for i := range v { v[i] = vs[i] } return predicate.Delivery(func(s *sql.Selector) { // if not arguments were provided, append the FALSE constants, // since we can't apply "IN ()". This will make this predicate falsy. if le...
[ -0.505860447883606, -0.517220139503479, 0.23829346895217896, 0.9010446667671204, -0.1542491763830185, 0.9982542991638184, -0.2894546389579773, 0.7471720576286316, -0.46161553263664246, -0.01899491436779499, -0.1694277673959732, -0.5033286213874817, -0.10962547361850739, -0.0906507968902587...
func HasOrder() predicate.Delivery { return predicate.Delivery(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), sqlgraph.To(OrderTable, FieldID), sqlgraph.Edge(sqlgraph.O2O, false, OrderTable, OrderColumn), ) sqlgraph.HasNeighbors(s, step) }) }
[ -0.06268397718667984, 0.5624280571937561, 0.5678490996360779, 1.034887433052063, 0.13367284834384918, 0.632332980632782, 0.518383800983429, 0.33179089426994324, -0.3911573886871338, -0.12394902855157852, 0.0011372931767255068, -0.5474700927734375, 0.8867980241775513, 1.009084701538086, -...
func HasOrderWith(preds ...predicate.Order) predicate.Delivery { return predicate.Delivery(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), sqlgraph.To(OrderInverseTable, FieldID), sqlgraph.Edge(sqlgraph.O2O, false, OrderTable, OrderColumn), ) sqlgraph.HasNeighborsWith(s,...
[ 0.13513481616973877, -0.34027689695358276, 0.746265709400177, 0.8309465646743774, -0.01355814840644598, 0.1346289962530136, -0.06985077261924744, -0.019793100655078888, -0.8106808066368103, 0.40070411562919617, -0.6047272086143494, 0.058857373893260956, 0.718639075756073, 0.631137609481811...
func And(predicates ...predicate.Delivery) predicate.Delivery { return predicate.Delivery(func(s *sql.Selector) { s1 := s.Clone().SetP(nil) for _, p := range predicates { p(s1) } s.Where(s1.P()) }) }
[ -0.5099266171455383, -1.2772550582885742, 0.39505866169929504, 0.11457507312297821, -0.3934352695941925, 0.9135188460350037, -0.37095823884010315, 1.173226237297058, 0.2501676678657532, 0.1608511060476303, -0.13991837203502655, 0.4881840646266937, 0.22291138768196106, 0.16423748433589935, ...
func Or(predicates ...predicate.Delivery) predicate.Delivery { return predicate.Delivery(func(s *sql.Selector) { s1 := s.Clone().SetP(nil) for i, p := range predicates { if i > 0 { s1.Or() } p(s1) } s.Where(s1.P()) }) }
[ -1.6010887622833252, -0.4252050817012787, 0.2777141332626343, 0.33193206787109375, -0.10133040696382523, 0.8070257306098938, -0.5152502059936523, 0.922376811504364, 0.14232230186462402, 0.185445636510849, 0.20378005504608154, -0.3868405818939209, 0.5576400756835938, -0.1984398365020752, ...
func Not(p predicate.Delivery) predicate.Delivery { return predicate.Delivery(func(s *sql.Selector) { p(s.Not()) }) }
[ -0.9690185189247131, 0.18889622390270233, 0.2533922493457794, 0.12249790132045746, -0.4440079629421234, 1.2965291738510132, -0.2644413709640503, 0.8556873202323914, -0.26438087224960327, -0.1228722631931305, -0.0925280749797821, 0.20262353122234344, 0.545524537563324, 0.41756245493888855, ...
func (*Config) XXX_OneofFuncs() (func(msg proto1.Message, b *proto1.Buffer) error, func(msg proto1.Message, tag, wire int, b *proto1.Buffer) (bool, error), func(msg proto1.Message) (n int), []interface{}) { return _Config_OneofMarshaler, _Config_OneofUnmarshaler, _Config_OneofSizer, []interface{}{ (*Config_Custom)(n...
[ -0.6533201932907104, 0.9752399921417236, 0.4665009081363678, -0.3429345488548279, 0.20482833683490753, -0.9465724229812622, 0.9730821251869202, -0.6659093499183655, 0.499352365732193, -0.38907691836357117, -0.706361711025238, -0.3308604955673218, -0.01670962944626808, 1.2706423997879028, ...
func (*Value) XXX_OneofFuncs() (func(msg proto1.Message, b *proto1.Buffer) error, func(msg proto1.Message, tag, wire int, b *proto1.Buffer) (bool, error), func(msg proto1.Message) (n int), []interface{}) { return _Value_OneofMarshaler, _Value_OneofUnmarshaler, _Value_OneofSizer, []interface{}{ (*Value_IntValue)(nil)...
[ -0.543805718421936, 0.9322458505630493, 0.50226229429245, -0.2926183342933655, 0.48009374737739563, -0.8245911002159119, 0.8045960664749146, -1.290663719177246, 0.2855612337589264, -0.6438368558883667, -0.352200984954834, -0.23347367346286774, 0.1610170155763626, 1.1084063053131104, 0.43...
func (*IntValue) XXX_OneofFuncs() (func(msg proto1.Message, b *proto1.Buffer) error, func(msg proto1.Message, tag, wire int, b *proto1.Buffer) (bool, error), func(msg proto1.Message) (n int), []interface{}) { return _IntValue_OneofMarshaler, _IntValue_OneofUnmarshaler, _IntValue_OneofSizer, []interface{}{ (*IntValue...
[ -0.5758265852928162, 0.5252811312675476, 0.4182659089565277, -0.4755716621875763, 0.14480695128440857, -0.7405297756195068, 0.39967596530914307, -0.9610804319381714, -0.19080428779125214, -0.6586853265762329, -0.35457783937454224, -0.13620220124721527, -0.4277942478656769, 1.11082363128662...
func (*DoubleValue) XXX_OneofFuncs() (func(msg proto1.Message, b *proto1.Buffer) error, func(msg proto1.Message, tag, wire int, b *proto1.Buffer) (bool, error), func(msg proto1.Message) (n int), []interface{}) { return _DoubleValue_OneofMarshaler, _DoubleValue_OneofUnmarshaler, _DoubleValue_OneofSizer, []interface{}{ ...
[ -0.8752710223197937, 0.8990638852119446, 0.5533576011657715, -0.1691996455192566, 0.0024916576221585274, -0.5843777060508728, 0.8135680556297302, -1.06378972530365, -0.04682561010122299, -0.5978428721427917, -0.9215986132621765, 0.23726962506771088, 0.17584827542304993, 1.4872608184814453,...
func (*StringValue) XXX_OneofFuncs() (func(msg proto1.Message, b *proto1.Buffer) error, func(msg proto1.Message, tag, wire int, b *proto1.Buffer) (bool, error), func(msg proto1.Message) (n int), []interface{}) { return _StringValue_OneofMarshaler, _StringValue_OneofUnmarshaler, _StringValue_OneofSizer, []interface{}{ ...
[ -0.5115249752998352, 0.46890562772750854, 0.4929356575012207, -0.6044842600822449, -0.13251501321792603, -1.1152235269546509, 0.4487059712409973, -0.8834204077720642, -0.10978980362415314, -0.7669094800949097, -0.3484700918197632, 0.3528917133808136, -0.2995278835296631, 0.9892221689224243...
func E2ETests(env e2e.TestEnv) testhelper.Tests { c := buildcfgTests{ env: env, } return testhelper.Tests{ "basic": c.buildcfgBasic, } }
[ -0.44346487522125244, -0.44633081555366516, 0.29028797149658203, -0.2704644203186035, 0.8394976854324341, -0.06535067409276962, 0.1915726512670517, -0.1317669153213501, -0.29735901951789856, 0.10807598382234573, -0.46940287947654724, -0.18557356297969818, 0.5747746825218201, -0.01597728207...
func (s *StatusCodes) Set(str string) error { fargs := func(c rune) bool { return c == ',' || c == ';' } // get function slice := strings.FieldsFunc(str, fargs) *s = append(*s, slice...) return nil }
[ 0.27936646342277527, -0.2518732249736786, 0.221832737326622, -0.16666114330291748, -0.18687140941619873, -0.1355588138103485, -0.8044502139091492, 0.6298808455467224, -0.23135104775428772, -0.112103670835495, -0.07245132327079773, 0.6536124348640442, -0.358253538608551, 0.07711876928806305...
func (s *StatusCodes) String() string { return fmt.Sprintf("%v", *s) }
[ 0.3325873017311096, -0.8264088034629822, -0.009424770250916481, 0.063321053981781, -0.877668559551239, 0.17370349168777466, -0.5707305073738098, -0.010874242521822453, -0.070440374314785, 0.185439333319664, -0.2060261070728302, 0.46524810791015625, -0.3816218674182892, -0.4689917266368866,...
func (s *StatusCodes) SetValue(val interface{}) { *s = val.(StatusCodes) }
[ -0.11743917316198349, 0.5844496488571167, 0.2858334481716156, 1.4104520082473755, -0.2365686297416687, 0.31593695282936096, -0.5334281325340271, 0.3948113024234772, 0.6808949708938599, -0.37737855315208435, -0.7514068484306335, -0.2526331841945648, 0.18810789287090302, 0.9993792176246643, ...
func (f *FieldNames) String() string { return fmt.Sprintf("%+v", *f) }
[ -0.6478177905082703, 0.5443048477172852, 0.13094021379947662, -0.6764423251152039, -0.11960668861865997, 0.5985937714576721, -0.1559595763683319, -0.4819275438785553, -0.5542638301849365, -0.31003695726394653, -0.6974968910217285, 0.06563197076320648, -0.15203149616718292, -0.4246895313262...
func (f *FieldNames) Get() interface{} { return *f }
[ -1.1316734552383423, 0.30366891622543335, 0.3487452566623688, -1.0086328983306885, 0.4338705539703369, -0.5037527084350586, -0.14637647569179535, -0.3006451725959778, -0.04953408241271973, -1.449333667755127, -1.0340889692306519, 0.7371117472648621, -0.17702212929725647, -1.047706246376037...
func (f *FieldNames) Set(value string) error { // When arguments are passed through YAML, escaped double quotes // might be added to this string, and they would break the last // key/value pair. This ensures the string is clean. value = strings.Trim(value, "\"") fields := strings.Fields(value) for _, field := r...
[ -0.7421290278434753, 0.42289286851882935, 0.4128768742084503, -1.2541934251785278, -0.006780507508665323, -0.8490377068519592, -0.23209524154663086, -0.21861383318901062, -1.1724843978881836, 0.13570883870124817, -1.1474664211273193, 0.5293390154838562, 0.31945300102233887, 0.2822302877902...
func (f *FieldNames) SetValue(val interface{}) { *f = val.(FieldNames) }
[ -0.994748592376709, 1.3208489418029785, 0.25647464394569397, 0.4329959750175476, 0.5152791142463684, -0.11657509952783585, -0.15301859378814697, -0.14903387427330017, -0.03106948360800743, -0.937917172908783, -1.280475378036499, -0.4697938561439514, 0.6658871173858643, 0.6047747731208801, ...
func (f *FieldHeaderNames) String() string { return fmt.Sprintf("%+v", *f) }
[ -0.7631964683532715, -0.13657423853874207, 0.13944365084171295, -0.5253365635871887, -0.030100472271442413, 0.39850541949272156, -0.6518208384513855, -1.1082020998001099, -0.7358079552650452, -0.16627849638462067, -0.6008350849151611, -0.187648206949234, -0.24499356746673584, -0.3912534117...
func (f *FieldHeaderNames) Get() interface{} { return *f }
[ -1.1420599222183228, -0.20908482372760773, 0.3370649218559265, -0.7114845514297485, 0.4657845199108124, -0.5447965264320374, -0.5341235995292664, -0.9770766496658325, -0.3845597207546234, -1.1600992679595947, -0.8674840331077576, 0.23311519622802734, -0.3926418125629425, -0.855418920516967...
func (f *FieldHeaderNames) Set(value string) error { // When arguments are passed through YAML, escaped double quotes // might be added to this string, and they would break the last // key/value pair. This ensures the string is clean. value = strings.Trim(value, "\"") fields := strings.Fields(value) for _, fiel...
[ -0.6640985608100891, 0.019220389425754547, 0.45651042461395264, -1.1639868021011353, 0.09274817258119583, -0.5894321799278259, -0.477124959230423, -0.3998905420303345, -1.2076853513717651, 0.15210126340389252, -1.0865263938903809, 0.18149887025356293, 0.21414178609848022, 0.186065807938575...
func (f *FieldHeaderNames) SetValue(val interface{}) { *f = val.(FieldHeaderNames) }
[ -1.0107051134109497, 0.8314215540885925, 0.3180238604545593, 0.3656292259693146, 0.5867719650268555, -0.03056211769580841, -0.5938466191291809, -1.0164917707443237, -0.2494269609451294, -0.42608049511909485, -0.8825172185897827, -0.8110840320587158, 0.4228006601333618, 0.7735838294029236, ...
func (f *AccessLogFields) Keep(field string) bool { defaultKeep := true if f != nil { defaultKeep = checkFieldValue(f.DefaultMode, defaultKeep) if v, ok := f.Names[field]; ok { return checkFieldValue(v, defaultKeep) } } return defaultKeep }
[ -0.01579912193119526, -0.05401076376438141, 0.4828812777996063, -0.004838305525481701, -0.4276520013809204, 0.941404402256012, -0.3966537117958069, -0.3208611011505127, -0.844429612159729, -0.16022264957427979, -0.4456504285335541, -0.7586217522621155, -0.9510825872421265, 0.02501512691378...
func (f *AccessLogFields) KeepHeader(header string) string { defaultValue := AccessLogKeep if f != nil && f.Headers != nil { defaultValue = checkFieldHeaderValue(f.Headers.DefaultMode, defaultValue) if v, ok := f.Headers.Names[header]; ok { return checkFieldHeaderValue(v, defaultValue) } } return defaultV...
[ 0.18125112354755402, -0.5215557813644409, 0.5005217790603638, 0.4563373029232025, -0.49533453583717346, 0.2833612561225891, -0.07756070047616959, -0.6306739449501038, -0.27025169134140015, -0.293724000453949, 0.2721950113773346, -0.8639068603515625, -0.4497182071208954, 0.15523265302181244...
func (i *MyInt) set(x int) { *i = MyInt(x) }
[ -1.1937602758407593, -0.03531218320131302, 0.013165758922696114, -0.9970678687095642, -0.7449617981910706, 0.572952926158905, -0.04445997625589371, -0.7356905937194824, -0.5420424342155457, 0.03780077025294304, -1.8871012926101685, 0.0774054080247879, -0.5972398519515991, 0.152039811015129...
func (genesis *Genesis) store(bcStore store.BlockchainStore, accountStateDB database.Database) error { statedb := getStateDB(genesis.info) batch := accountStateDB.NewBatch() if _, err := statedb.Commit(batch); err != nil { return errors.NewStackedError(err, "failed to commit batch into statedb") } if err := ba...
[ -0.46389633417129517, -0.5565482378005981, 1.3108824491500854, 0.15118247270584106, -0.008078760467469692, 0.3661339282989502, 1.1530507802963257, -0.040648892521858215, -0.7694942951202393, -0.06371346861124039, -0.7809215784072876, -0.05305394157767296, -0.8263763189315796, 0.21414996683...
func getShardInfo(genesisBlock *types.Block) (*shardInfo, error) { if genesisBlock.Header.Height != genesisBlockHeight { return nil, fmt.Errorf("invalid genesis block height %v", genesisBlock.Header.Height) } data := &shardInfo{} if err := common.Deserialize(genesisBlock.Header.Witness, data); err != nil { ret...
[ 0.438140869140625, 0.04299848526716232, 0.6063674688339233, -0.19800715148448944, -0.3618050813674927, -0.6980262994766235, -0.01774042472243309, -1.0654040575027466, -1.0194222927093506, -0.22385600209236145, -0.9339742064476013, 0.6909555792808533, -0.944425106048584, 0.3289823830127716,...
func (o *PostSystemGcScheduleReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewPostSystemGcScheduleOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return r...
[ -0.08096591383218765, -0.852775514125824, 0.8383431434631348, 0.19560027122497559, -0.19590023159980774, -0.9622824788093567, -0.0702294334769249, -0.6787761449813843, 0.07725028693675995, 0.16390711069107056, 0.19715212285518646, -0.5185478925704956, -1.1606509685516357, 0.026994032785296...
func NewPostSystemGcScheduleOK() *PostSystemGcScheduleOK { return &PostSystemGcScheduleOK{} }
[ 0.15317001938819885, -0.5496862530708313, 0.37129122018814087, 0.9722357988357544, -1.1519801616668701, 0.3738047182559967, -0.18757639825344086, 0.10569950193166733, -1.4952013492584229, -0.02981741912662983, -0.5856823325157166, -0.3519289493560791, -0.30290648341178894, 0.10194794833660...
func NewPostSystemGcScheduleBadRequest() *PostSystemGcScheduleBadRequest { return &PostSystemGcScheduleBadRequest{} }
[ -0.1370697021484375, -0.5515161156654358, 0.460604190826416, 0.6430432200431824, -0.4820976257324219, -0.33099165558815, -0.9508195519447327, -0.5227826237678528, -1.5006589889526367, -0.6988766193389893, 0.08240305632352829, 0.35058629512786865, -0.6591984033584595, 0.5810002684593201, ...
func NewPostSystemGcScheduleUnauthorized() *PostSystemGcScheduleUnauthorized { return &PostSystemGcScheduleUnauthorized{} }
[ -0.11488514393568039, -0.613109290599823, 0.41615042090415955, 0.4791766107082367, -1.0164378881454468, -0.20684535801410675, -0.5905358195304871, 0.11575649678707123, -1.1586101055145264, -0.796016275882721, -0.06433822959661484, 0.6561523675918579, -0.3360438942909241, -0.061276331543922...
func NewPostSystemGcScheduleForbidden() *PostSystemGcScheduleForbidden { return &PostSystemGcScheduleForbidden{} }
[ 0.7929420471191406, 0.008413664065301418, 0.2672758996486664, 1.0246907472610474, -1.0012401342391968, 0.5795817971229553, -0.1215558722615242, -1.0494005680084229, -1.3482122421264648, -0.5968049764633179, -0.18828247487545013, 0.5425449013710022, -0.7724102735519409, -0.41426321864128113...
func NewPostSystemGcScheduleConflict() *PostSystemGcScheduleConflict { return &PostSystemGcScheduleConflict{} }
[ 0.0953875482082367, -0.32026296854019165, 0.3689882457256317, 0.5348294973373413, -0.8676131963729858, 0.07639376074075699, -0.2394183725118637, -0.7394645810127258, -1.3035763502120972, -0.28863397240638733, 0.07833637297153473, -0.25785282254219055, -1.188003659248352, -0.129711180925369...
func incIP(ip net.IP) { for j := len(ip) - 1; j >= 0; j-- { ip[j]++ if ip[j] > 0 { break } } }
[ -0.5332732796669006, 0.9086988568305969, 0.6999953985214233, 0.7916435599327087, -0.6461217403411865, 0.18235105276107788, 0.39618977904319763, 1.018188714981079, 0.42983007431030273, 0.6154488325119019, 0.033139754086732864, -0.45451563596725464, -0.3165854513645172, -0.5736408233642578, ...
func PanicIfTrue(b bool) { if b { panic(Wrap(errors.New("Expected true"))) } }
[ 0.5457159280776978, 1.3581132888793945, 0.19385342299938202, 0.8611698746681213, 0.2938418388366699, 0.7776086330413818, -0.2172711193561554, 0.03473472595214844, -0.21079932153224945, 1.5687904357910156, -1.0444917678833008, -0.5212352871894836, 0.1507478654384613, -0.12201099097728729, ...
func PanicIfFalse(b bool) { if !b { panic(Wrap(errors.New("Expected false"))) } }
[ 0.4819982945919037, 1.3741546869277954, 0.1780504435300827, 1.4328703880310059, 0.7735317945480347, 0.7887580394744873, -0.368222713470459, 0.4813688099384308, -0.05467171594500542, 0.6656662225723267, -0.3444591462612152, -0.5235084295272827, -0.2415638267993927, 0.4310874044895172, 0.0...
func PanicIfNotType(err error, types ...interface{}) error { if err == nil { return nil } if !causeInTypes(err, types...) { we, ok := err.(WrappedError) if !ok { we = Wrap(err) } panic(we) } return Unwrap(err) }
[ 0.089139923453331, 0.4440968334674835, 0.09641921520233154, 1.3059905767440796, 0.22051724791526794, 0.039742063730955124, -0.4901350438594818, -0.8196018934249878, 0.8174877166748047, 1.0256671905517578, 0.15226392447948456, 0.10534510016441345, -0.32268527150154114, 0.36955878138542175, ...
func (s EnvSettings) PluginDirs() string { if d := os.Getenv(PluginEnvVar); d != "" { return d } return s.Home.Plugins() }
[ -0.6350780725479126, -0.905564546585083, 0.30186665058135986, 0.2682054340839386, -0.6287900805473328, -0.5958754420280457, -0.12146596610546112, -1.047757625579834, 0.6552304625511169, 0.3280772566795349, 0.21739153563976288, 0.9872478246688843, -0.7206355333328247, 0.044534821063280106, ...
func New(addr string, password string) *KVStore { const maxRetries = 5 client := redis.NewClient(&redis.Options{ Addr: addr, MaxRetries: maxRetries, Password: password, }) return &KVStore{client: client} }
[ 0.8256922960281372, 0.06854718178510666, 0.15139856934547424, -0.19071349501609802, -1.9062421321868896, -0.2290300875902176, -1.7889411449432373, 0.3173882067203522, 0.3664090037345886, 0.06780369579792023, 0.12898680567741394, 0.3736213445663452, 0.1573496162891388, -0.3566027581691742, ...
func (kv *KVStore) Put(ctx context.Context, key string, val []byte, ttl time.Duration) error { scmd := kv.client.Set(ctx, key, val, ttl) _, err := scmd.Result() return err }
[ -0.41748297214508057, 0.9738439917564392, 0.14577838778495789, -0.4807184338569641, -0.5373983383178711, 0.6789496541023254, -1.0908727645874023, 0.1801535040140152, -0.014880913309752941, 1.047808289527893, -0.24666540324687958, 0.06880097836256027, -0.2786512076854706, -0.507022142410278...
func (kv *KVStore) Get(ctx context.Context, key string) ([]byte, error) { scmd := kv.client.Get(ctx, key) val, err := scmd.Bytes() if err != nil { if err == redis.Nil { return nil, KeyNotFoundErr } return nil, err } return val, nil }
[ -0.30907827615737915, 0.7447723746299744, 0.4980376660823822, 0.11606194078922272, -0.04908156394958496, -0.42327502369880676, -1.908735990524292, -0.461979478597641, 0.20911353826522827, 0.2856113612651825, -0.1020270511507988, 0.8232827186584473, -0.36304986476898193, 0.33199840784072876...
func Reading(w http.ResponseWriter, r *http.Request) { log.Println("Request Received: ") defer r.Body.Close() if r.Method != "POST" { log.Println("Method not POST") w.Header().Set("Allow", "POST") w.WriteHeader(http.StatusMethodNotAllowed) return } var message SensorReading err := json.NewDecoder(r.Bod...
[ -0.6807855367660522, 0.07284922152757645, 0.7307912707328796, -0.11225391179323196, -0.3603399991989136, 0.30122044682502747, -0.3324989676475525, -0.3314383327960968, -0.1981581300497055, 0.4957939386367798, 1.5137279033660889, -0.2551642656326294, -0.5348682403564453, 0.3931117355823517,...
func (dp *DataPlane) middlewareSetContext(k string, v interface{}) echo.MiddlewareFunc { return func(next echo.HandlerFunc) echo.HandlerFunc { return func(c echo.Context) error { c.Set(k, v) return next(c) } } }
[ -0.19293035566806793, -0.01732753962278366, 0.4133050739765167, 0.04515331611037254, -1.5801938772201538, -0.04297833889722824, -0.27232620120048523, -0.5639617443084717, 0.19547632336616516, 1.0039401054382324, -0.2640790641307831, 0.46402329206466675, -0.7575225234031677, 0.8217724561691...
func add(a, b int, result *int) { *result = a * b }
[ -0.9285416603088379, -0.2512753903865814, 0.27678969502449036, 0.1457166224718094, -0.059857938438653946, -0.058876633644104004, 0.15555515885353088, -0.47371891140937805, 0.39105820655822754, -0.07640809565782547, -0.3651648759841919, 0.5597448348999023, -0.3869478106498718, -0.1584444195...
func RegisterJavaCallback(c JavaCallback) { jc = c }
[ 0.2629629373550415, 0.15244558453559875, 0.3907795548439026, 0.016985027119517326, -0.8807209730148315, -0.40056461095809937, 0.44228532910346985, -0.14691771566867828, 0.7576467990875244, 0.48117372393608093, -1.127773642539978, -0.020345795899629593, 0.6457706093788147, 0.816068232059478...
func (fmt *FixedMerkleTree) Finalize() error { fmt.writeLock.Lock() defer fmt.writeLock.Unlock() if fmt.isFinal { return goError.New("already finalized") } fmt.isFinal = true if fmt.writeCount > 0 { return fmt.writeToLeaves(fmt.writeBytes[:fmt.writeCount]) } return nil }
[ -0.2932645380496979, 0.6254330277442932, 0.7115389108657837, -0.08936171233654022, 0.7512792944908142, -0.8236291408538818, 0.29691314697265625, 0.22505389153957367, -0.17441818118095398, 0.42265263199806213, 0.6755104660987854, 0.4229423701763153, -1.2592597007751465, 1.0777620077133179, ...
func NewFixedMerkleTree() *FixedMerkleTree { t := &FixedMerkleTree{ writeBytes: make([]byte, MaxMerkleLeavesSize), } t.initLeaves() return t }
[ 0.6817734837532043, -0.30208683013916016, 0.20828650891780853, 0.24950098991394043, -1.0574754476547241, -0.9037244915962219, -0.054655324667692184, 0.3944878578186035, 0.3821137845516205, -0.017471136525273323, -0.9984124302864075, 0.41506144404411316, -1.6740987300872803, 1.2193173170089...
func (fmt *FixedMerkleTree) writeToLeaves(b []byte) error { if len(b) > MaxMerkleLeavesSize { return goError.New("data size greater than maximum required size") } if len(b) < MaxMerkleLeavesSize && !fmt.isFinal { return goError.New("invalid merkle leaf write") } leafInd := 0 for i := 0; i < len(b); i += Mer...
[ -0.30603736639022827, 0.004765139892697334, 0.8946199417114258, -0.011451906524598598, 0.3250909447669983, 0.13969002664089203, 0.44432532787323, 0.23661848902702332, 0.24962496757507324, 0.42554739117622375, 0.4068543612957001, 0.38009199500083923, -0.9780194163322449, 0.6197091341018677,...
func (fmt *FixedMerkleTree) Write(b []byte) (int, error) { fmt.writeLock.Lock() defer fmt.writeLock.Unlock() if fmt.isFinal { return 0, goError.New("cannot write. Tree is already finalized") } for i, j := 0, MaxMerkleLeavesSize-fmt.writeCount; i < len(b); i, j = j, j+MaxMerkleLeavesSize { if j > len(b) { ...
[ -0.8409726619720459, 0.5044980049133301, 0.9133350253105164, 0.15493129193782806, -0.09124385565519333, -0.653206467628479, 0.8115205764770508, 0.8158080577850342, 0.1562899947166443, 0.5528541803359985, -0.04445074498653412, 0.1875341236591339, -1.1328494548797607, 0.6939202547073364, -...
func (fmt *FixedMerkleTree) GetMerkleTree() MerkleTreeI { return nil }
[ -0.2071591466665268, 0.24766431748867035, 0.34826797246932983, 0.24492599070072174, -0.7972248196601868, -0.26351797580718994, 0.33741050958633423, 0.18600809574127197, 0.7242075204849243, -0.6751262545585632, -0.4154956042766571, 0.6426024436950684, -1.6278164386749268, 1.7194896936416626...
func (fmt *FixedMerkleTree) GetMerkleRoot() string { if fmt.merkleRoot != nil { return hex.EncodeToString(fmt.merkleRoot) } fmt.CalculateMerkleRoot() return hex.EncodeToString(fmt.merkleRoot) }
[ 0.43624430894851685, 0.20659074187278748, 0.6026569604873657, -0.3969150185585022, -0.8820925354957581, -0.22227343916893005, -0.4999006390571594, 0.17457495629787445, 0.5480232834815979, 0.32931917905807495, -0.299085795879364, 0.9610522985458374, -0.9535030722618103, 1.217609167098999, ...
func (fmt *FixedMerkleTree) Reload(reader io.Reader) error { fmt.initLeaves() bytesBuf := bytes.NewBuffer(make([]byte, 0, MaxMerkleLeavesSize)) for i := 0; ; i++ { written, err := io.CopyN(bytesBuf, reader, MaxMerkleLeavesSize) if written > 0 { _, err = fmt.Write(bytesBuf.Bytes()) bytesBuf.Reset() i...
[ 0.041457176208496094, -0.12631793320178986, 0.7492399215698242, -0.6146048307418823, -0.5203692317008972, -0.3718039095401764, 0.47528839111328125, -0.28777986764907837, -0.2103889435529709, 0.3666473925113678, 0.6001091599464417, 0.27860233187675476, -0.5432257652282715, 0.273224115371704...
func (d *Divtag) divRulesWCAG111(node *html.Node, l *log.Logger) { // creating div object d.Div = nodeText(node) //ARIA6 l.Println("Starting processing : ARIA6") apply, stat := aria6(node) if apply == Applicable { if stat { d.Wc111Aria6 = "fail" } else { d.Wc111Aria6 = "pass" } } else { d.Wc111Ar...
[ -0.18691901862621307, -0.4204559922218323, 0.630695641040802, -0.4654828906059265, 0.41549861431121826, 0.827231228351593, 0.5887996554374695, 0.8341305255889893, 0.5310133695602417, 0.5898159742355347, 0.7731029987335205, 0.6282448768615723, 0.647950291633606, 0.6845420598983765, 0.9646...
func (d *Buttontag) buttonRulesWCAG111(node *html.Node, l *log.Logger) { // creating button object d.Button = nodeText(node) //ARIA6 apply, stat := aria6(node) if apply == Applicable { if stat { d.Wc111Aria6 = "fail" } else { d.Wc111Aria6 = "pass" } } else { d.Wc111Aria6 = apply } //ARIA10 l.P...
[ 0.12016334384679794, -0.632436215877533, 0.6625311374664307, -0.35713186860084534, 0.5507087111473083, 1.1044213771820068, 0.31241148710250854, 1.1703169345855713, 0.787856936454773, 0.4785131812095642, 0.3825783431529999, 0.3127482235431671, 0.5720049738883972, 0.3466469645500183, 0.463...
func (d *Inputtag) inputRulesWCAG111(node *html.Node, l *log.Logger) { // creating input object d.Input = nodeText(node) //ARIA6 apply, stat := aria6(node) if apply == Applicable { if stat { d.Wc111Aria6 = "fail" } else { d.Wc111Aria6 = "pass" } } else { d.Wc111Aria6 = apply } //ARIA10 l.Print...
[ 0.02446938492357731, -0.4412750005722046, 0.6480556130409241, -0.5636540055274963, 0.10772229731082916, 1.0916117429733276, 0.7483158707618713, 0.987246572971344, 0.6961919665336609, 0.49549928307533264, 0.5161849856376648, 0.44951656460762024, 0.2008410096168518, 0.25808072090148926, 0....
func (d *Videotag) videoRulesWCAG111(node *html.Node, l *log.Logger) { // creating video object d.Video = nodeText(node) //ARIA6 apply, stat := aria6(node) if apply == Applicable { if stat { d.Wc111Aria6 = "fail" } else { d.Wc111Aria6 = "pass" } } else { d.Wc111Aria6 = apply } //ARIA10 l.Print...
[ -0.028398262336850166, -0.33500683307647705, 0.6117918491363525, -0.07682637125253677, 0.35551875829696655, 0.5548118948936462, 0.26980021595954895, 0.9992392063140869, 1.0622421503067017, 0.4866774082183838, 0.5072427988052368, 1.0537753105163574, 0.5138785243034363, 0.5493031144142151, ...
func (d *Audiotag) audioRulesWCAG111(node *html.Node, l *log.Logger) { // creating audio object d.Audio = nodeText(node) //ARIA6 apply, stat := aria6(node) if apply == Applicable { if stat { d.Wc111Aria6 = "fail" } else { d.Wc111Aria6 = "pass" } } else { d.Wc111Aria6 = apply } //ARIA10 l.Print...
[ 0.061422042548656464, -0.6562473773956299, 0.6917097568511963, -0.5439982414245605, 0.5131250619888306, 0.7120829820632935, 0.43215879797935486, 0.8852700591087341, 0.5756974816322327, 0.8415002822875977, 0.683503270149231, 0.569593608379364, 0.6272739768028259, 0.2769991457462311, 0.997...
func (d *Selecttag) selectRulesWCAG111(node *html.Node, l *log.Logger) { // creating select object d.Select = nodeText(node) //ARIA6 apply, stat := aria6(node) if apply == Applicable { if stat { d.Wc111Aria6 = "fail" } else { d.Wc111Aria6 = "pass" } } else { d.Wc111Aria6 = apply } //ARIA10 l.P...
[ 0.040228087455034256, -0.7271444797515869, 0.48138099908828735, -0.5085581541061401, 0.4224061667919159, 0.6702382564544678, 0.34304988384246826, 0.6554160118103027, 0.9287136793136597, 0.8639878034591675, 0.69964599609375, 0.47913262248039246, 0.41815316677093506, -0.10943154990673065, ...
func (d *Textareatag) textAreaRulesWCAG111(node *html.Node, l *log.Logger) { // creating textarea object d.Textarea = nodeText(node) //ARIA6 apply, stat := aria6(node) if apply == Applicable { if stat { d.Wc111Aria6 = "fail" } else { d.Wc111Aria6 = "pass" } } else { d.Wc111Aria6 = apply } //ARI...
[ -0.35300952196121216, -0.609168291091919, 0.6109183430671692, -0.849469006061554, 0.053035616874694824, 0.5194042921066284, 0.21998745203018188, 0.803011953830719, 0.4969325363636017, 0.7452074885368347, 0.931103527545929, 0.3505810797214508, 0.7689499855041504, 0.7321485877037048, 0.791...
func (d *Imgtag) imagesRulesWCAG111(node *html.Node, l *log.Logger) { // creating image object d.Img = nodeText(node) //ARIA6 apply, stat := aria6(node) if apply == Applicable { if stat { d.Wc111Aria6 = "fail" } else { d.Wc111Aria6 = "pass" } } else { d.Wc111Aria6 = apply } //ARIA10 l.Println(...
[ -0.6147350072860718, -0.3761461675167084, 0.7234168648719788, -0.4427362382411957, 0.23473849892616272, 0.6601921319961548, 0.756445586681366, 0.41355493664741516, -0.14453482627868652, 0.29298290610313416, 0.5611977577209473, 0.5178672671318054, 0.6142011880874634, 0.6133511066436768, 0...
func (d *Iframetag) iframeRulesWCAG111(node *html.Node, l *log.Logger) { // creating iframe object d.Iframe = nodeText(node) //ARIA6 l.Println("Starting processing : ARIA6") apply, stat := aria6(node) if apply == "A" { if stat { d.Wc111Aria6 = "fail" } else { d.Wc111Aria6 = "pass" } } else { d.Wc...
[ -0.08248021453619003, -0.23724332451820374, 0.6768160462379456, -0.35102924704551697, 0.2551088333129883, 0.37907564640045166, 0.5336893796920776, 0.8182737231254578, 0.7465056777000427, 0.6579440832138062, 0.6999565958976746, 0.6889870166778564, 0.027380112558603287, 0.32785382866859436, ...
func (d *Anchortag) linkRulesWCAG111(node *html.Node, l *log.Logger) { // creating link object d.Anchor = nodeText(node) //ARIA6 l.Println("Starting processing : ARIA6") apply, stat := aria6(node) if apply == "A" { if stat { d.Wc111Aria6 = "fail" } else { d.Wc111Aria6 = "pass" } } else { d.Wc11...
[ 0.1255224049091339, -0.78272545337677, 0.6112028360366821, -0.8080936670303345, 0.5841608047485352, 0.9914435744285583, 0.7323523759841919, 1.0618053674697876, 1.0520981550216675, -0.01133208442479372, 0.8436216115951538, 0.8758532404899597, 0.41006046533584595, 0.1830388903617859, 0.850...
func (d *Areatag) areaRulesWCAG111(node *html.Node, l *log.Logger) { // creating link object d.Area = nodeText(node) //G94 l.Println("Start processing : G94 ") if apply, stat := G94(node); apply == Applicable { if !stat { d.Wc111G94 = "fail" } else { d.Wc111G94 = "pass" } } else { d.Wc111G94 = app...
[ -0.1795046180486679, -0.5575466752052307, 0.6885174512863159, -0.11218605190515518, -0.11218246072530746, 0.9494720697402954, 0.6072711944580078, 0.5876404643058777, 0.16095520555973053, 0.12608149647712708, 0.7166131734848022, 0.4489837884902954, 0.26756638288497925, 0.8697004318237305, ...
func (d *Applettag) appletRulesWCAG111(node *html.Node, l *log.Logger) { // creating link object d.Applet = nodeText(node) //H35 implementation l.Println("Starting processing : H35") if apply, stat := H35(node); apply == Applicable { if stat { d.Wc111H35 = "pass" } else { d.Wc111H35 = "fail" } } els...
[ -0.029468584805727005, 0.03647567704319954, 0.4997246265411377, 0.13524045050144196, -0.1680983006954193, 1.313438057899475, 0.22599531710147858, 1.0276931524276733, 0.020805830135941505, 0.5811889171600342, 0.7723649144172668, 0.2651502192020416, 0.2759019136428833, 0.44527071714401245, ...
func (d *Objecttag) objectRulesWCAG111(node *html.Node, l *log.Logger) { // creating link object d.Object = nodeText(node) //H53 implementation l.Println("Starting processing : H53") if apply, stat := H53(node); apply == Applicable { if stat { d.Wc111H53 = "pass" } else { d.Wc111H53 = "fail" } } els...
[ -0.9089359045028687, -0.08855953812599182, 0.44023385643959045, 0.11593493819236755, 0.10388170927762985, 0.9133369326591492, 0.4989883303642273, 0.9887328147888184, 0.4451744258403778, 0.3179285228252411, 0.5045332908630371, 0.6881444454193115, 0.20349429547786713, 0.06478020548820496, ...
func (d *Embedtag) embedRulesWCAG111(node *html.Node, l *log.Logger) { // creating link object d.Embed = nodeText(node) //H53 implementation l.Println("Starting processing : H53") if apply, stat := H53(node); apply == Applicable { if stat { d.Wc111H53 = "pass" } else { d.Wc111H53 = "fail" } } else {...
[ -0.6740821003913879, 0.12319281697273254, 0.38617467880249023, 0.32077527046203613, 0.27552708983421326, 1.1847878694534302, 0.4973597526550293, 1.25025475025177, 0.36633527278900146, 0.26156818866729736, 0.5835394859313965, 0.6270163655281067, -0.07029407471418381, 0.23396514356136322, ...
func aria6(node *html.Node) (string, bool) { if attributeSearch(node.Attr, "role") { if attributeCheckValEmpty(node.Attr, "aria-label") { return Applicable, true } else { return Applicable, false } } return NA, false }
[ -0.8752485513687134, -0.16159825026988983, 0.8567613959312439, 0.15253357589244843, -0.3269348740577698, 0.15827931463718414, 0.01277819462120533, 0.6277420520782471, 0.5305793285369873, 0.9466179609298706, -0.007866001687943935, -0.3362010717391968, 0.3735169768333435, 0.40273934602737427...
func aria10(node *html.Node) (string, bool) { if hasChildren(node) { if attributeCheckValEmpty(node.Attr, "aria-labelledby") { for c := node.FirstChild; c != nil; c = c.NextSibling { if attributeSearch(c.Attr, "src") { if attributeCheckValEmpty(node.Attr, "alt") { return Applicable, true } el...
[ -0.7554187178611755, -0.27018341422080994, 1.0534801483154297, -1.0159412622451782, -0.0803639367222786, -0.015926070511341095, 0.4261372983455658, 1.269840121269226, 0.4920194745063782, 0.8310222625732422, 0.059043288230895996, -0.5835006237030029, 0.9334940910339355, 0.8341808319091797, ...
func G94(node *html.Node) (string, bool) { if attributeCheckValEmpty(node.Attr, "alt") { return Applicable, true } if attributeCheckVal(node.Attr, "role", "img") { if attributeCheckValEmpty(node.Attr, "aria-labelledby") { return Applicable, true } else { return Applicable, false } } if attributeCheck...
[ -0.3377602994441986, -0.31932297348976135, 1.0670874118804932, -0.1927720606327057, -0.39859911799430847, 0.41078174114227295, 0.3558412194252014, -0.2738938629627228, -0.21123012900352478, 0.115191750228405, 0.08392003178596497, -0.0712636411190033, 0.173929825425148, 1.2030043601989746, ...
func H2(node *html.Node) (string, bool) { if node.Parent.Data == "a" { if attributeCheckValEmpty(node.Attr, "alt") { return Applicable, true } else { return Applicable, false } } return NA, false }
[ -0.3414881229400635, -0.8291422128677368, 0.7992558479309082, 0.48550358414649963, -1.1214107275009155, 0.799239993095398, -0.5129340291023254, 0.10185308754444122, -0.6640791296958923, 0.11132413893938065, 0.11256178468465805, 0.34117329120635986, 0.9474949836730957, 0.9623959064483643, ...
func H35(node *html.Node) (string, bool) { if hasOneChild(node) { if isTextNode(node.FirstChild) { if attributeCheckValEmpty(node.Attr, "alt") { return Applicable, true } else { return Applicable, false } } } return NA, false }
[ -0.20778502523899078, 0.1557590216398239, 0.8373077511787415, 0.5924286246299744, -0.8858484029769897, 0.7898141145706177, -0.5615159273147583, 0.005563119426369667, -0.15973089635372162, 0.9147905111312866, 0.17100851237773895, -0.6906982064247131, 0.4404279887676239, 1.1360224485397339, ...
func H53(node *html.Node) (string, bool) { if hasOneChild(node) { if node.FirstChild.Data != "p" { return Applicable, false } if node.FirstChild.Data == "img" { if attributeCheckValEmpty(node.FirstChild.Attr, "alt") { return Applicable, true } else { return Applicable, false } } } return...
[ -0.8934519290924072, 0.3959752321243286, 0.6806690096855164, 0.3327597379684448, -0.7891718149185181, 0.246676966547966, -0.28781744837760925, 0.016827870160341263, -0.033515725284814835, 0.3241007626056671, 0.3631914556026459, -0.12406396865844727, 0.7371857166290283, 0.7919957637786865, ...
func init() { // Setup x86 GP the register values REGS = make(map[int][]REG) REGS[32] = append(REGS[32], REG{Extended: "EAX", High: "AX", Low: "AL", Arch: 32}) REGS[32] = append(REGS[32], REG{Extended: "EBX", High: "BX", Low: "BL", Arch: 32}) REGS[32] = append(REGS[32], REG{Extended: "ECX", High: "CX", Low: "CL",...
[ -0.1432509869337082, 0.5987265110015869, 0.9340900778770447, -0.38192492723464966, 0.07526732236146927, 0.18121162056922913, -0.3010249733924866, 0.2768687903881073, -0.31212568283081055, 0.1728665977716446, 0.07442831993103027, 0.6141839027404785, 0.1498207002878189, 0.5750747919082642, ...
func (encoder Encoder) GetRandomRegister(size int) string { switch size { case 8: return REGS[encoder.architecture][rand.Intn(len(REGS[encoder.architecture]))].Low case 16: return REGS[encoder.architecture][rand.Intn(len(REGS[encoder.architecture]))].High case 32: return REGS[encoder.architecture][rand.Intn(...
[ -0.2560410499572754, 0.76385498046875, 0.6829071044921875, -0.5216715931892395, -0.9933183193206787, -0.06853140890598297, -0.33409520983695984, -0.1632249504327774, 1.134812831878662, -0.13658659160137177, -0.6276795268058777, 0.9610336422920227, -0.4469972550868988, 0.44329872727394104, ...
func (encoder Encoder) GetRandomStackAddress() string { if CoinFlip() { return fmt.Sprintf("[%s+0x%x]", encoder.GetStackPointer(), GetRandomByte()) } return fmt.Sprintf("[%s-0x%x]", encoder.GetStackPointer(), GetRandomByte()) }
[ -0.8193373680114746, 0.03907836973667145, 0.7713905572891235, 0.15262837707996368, -0.8883910179138184, -0.4168621301651001, 0.32320278882980347, -0.7026214003562927, 0.9691328406333923, 0.21760936081409454, -0.597236692905426, 0.8803393244743347, -0.2047029435634613, 0.6434395909309387, ...
func (encoder Encoder) GetStackPointer() string { switch encoder.architecture { case 32: return "ESP" case 64: return "RSP" default: panic("invalid architecture") } }
[ 0.0744091346859932, -0.0066078901290893555, 0.6889175176620483, 0.29551202058792114, -0.38805699348449707, 0.44133785367012024, -0.08399796485900879, -1.127133846282959, 0.04803646728396416, 0.8249480128288269, -0.18582499027252197, 0.36034488677978516, -0.26819539070129395, 0.803558647632...
func (encoder Encoder) GetBasePointer() string { switch encoder.architecture { case 32: return "EBP" case 64: return "RBP" default: panic("invalid architecture") } }
[ 0.035884663462638855, -0.7631267309188843, 0.6458209156990051, -0.018498146906495094, 0.1742926985025406, 1.359571933746338, -0.29769763350486755, -0.8614248037338257, 0.5912166833877563, 0.986204206943512, 0.19701486825942993, 0.3991374671459198, -0.8619333505630493, 0.7516980767250061, ...
func (encoder Encoder) GetSafeRandomRegister(size int, excludes ...string) string { for { r := REGS[encoder.architecture][rand.Intn(len(REGS[encoder.architecture]))] for i, exclude := range excludes { if r.Full != exclude && r.Extended != exclude && r.High != exclude && r.Low != exclude { if i == len(exclu...
[ -0.14376147091388702, 0.5536126494407654, 0.7615419626235962, -0.17541883885860443, -1.6799736022949219, 0.22392047941684723, -0.17493095993995667, -0.1953917145729065, 0.8481975197792053, -0.1611696034669876, -0.40901708602905273, 1.1157612800598145, -0.8552271723747253, -0.05428271368145...
func (encoder Encoder) Assemble(asm string) ([]byte, bool) { var mode keystone.Mode switch encoder.architecture { case 32: mode = keystone.MODE_32 case 64: mode = keystone.MODE_64 default: return nil, false } ks, err := keystone.New(keystone.ARCH_X86, mode) if err != nil { return nil, false } defer k...
[ -0.8566415905952454, -0.12112162262201309, 0.8518619537353516, 0.3740342855453491, -1.2447402477264404, 0.1096121072769165, -0.7519885301589966, -0.18982431292533875, -0.5854322910308838, 0.8045211434364319, -0.6121970415115356, -0.37566375732421875, -0.2532552480697632, 1.017389178276062,...
func (encoder Encoder) GetAssemblySize(asm string) int { var mode keystone.Mode switch encoder.architecture { case 32: mode = keystone.MODE_32 case 64: mode = keystone.MODE_64 default: return -1 } ks, err := keystone.New(keystone.ARCH_X86, mode) if err != nil { return -1 } defer ks.Close() //err = ...
[ -1.045467495918274, 0.4295755922794342, 1.0286189317703247, 0.20372086763381958, -1.2361829280853271, -0.20169588923454285, 0.6016156077384949, 0.37038055062294006, -0.3794849216938019, 0.15979616343975067, -0.6611897349357605, 0.041720740497112274, -0.34846436977386475, 1.2255910634994507...
func (encoder Encoder) GenerateIPToStack() []byte { callBin, ok := encoder.Assemble("call 5") if !ok { panic("call 5 assembly failed") } return callBin }
[ -1.109640121459961, 0.7867929339408875, 0.5289230346679688, 0.5614762306213379, -0.4369518756866455, 0.06713998317718506, 0.32736557722091675, -0.8656197190284729, -0.5377670526504517, 0.8202196359634399, -1.068393588066101, -0.9678352475166321, -0.505868136882782, 0.23027865588665009, 0...
func (encoder Encoder) AddCallOver(payload []byte) ([]byte, error) { // Perform a shport call over the payload call := fmt.Sprintf("call 0x%x", len(payload)+5) callBin, ok := encoder.Assemble(call) if !ok { return nil, errors.New("call-over assembly failed") } payload = append(callBin, payload...) return pay...
[ -0.16110362112522125, 0.6643598079681396, 0.7667878270149231, -0.21098406612873077, -1.5802403688430786, 0.4340136647224426, -1.2618882656097412, -1.2670131921768188, 0.7806012630462646, -0.41684526205062866, -0.040929000824689865, -0.6779929399490356, -1.1022506952285767, 1.08466625213623...
func (encoder Encoder) AddJmpOver(payload []byte) ([]byte, error) { // JMP 2 -> Jumps to next instruction // Perform a short call over the payload jmp := fmt.Sprintf("jmp 0x%x", len(payload)+2) jmpBin, ok := encoder.Assemble(jmp) if !ok { return nil, errors.New("jmp-over assembly failed") } payload = append(jm...
[ -0.6351491808891296, -0.09185246378183365, 1.0299361944198608, 0.25944429636001587, -1.3584387302398682, 0.3817271292209625, -0.3327726721763611, -0.8273661136627197, 0.8201246857643127, 0.1425124704837799, -0.3238801658153534, -0.5790106058120728, -1.2116572856903076, 0.935442328453064, ...
func (encoder Encoder) AddCondJmpOver(payload []byte) ([]byte, error) { // JZ 2 -> Jumps to next instruction // Perform a short call over the payload randomConditional := ConditionalJumpMnemonics[rand.Intn(len(ConditionalJumpMnemonics))] jmp := fmt.Sprintf("%s 0x%x", randomConditional, len(payload)+2) jmpBin, ok...
[ -0.3637610673904419, 0.05478168651461601, 0.7954996228218079, 0.3922693729400635, -1.6719235181808472, 0.6614877581596375, -0.15228471159934998, -0.48195838928222656, 0.30935484170913696, 0.07220103591680527, 0.003844370599836111, -0.6459927558898926, -1.0524393320083618, 1.183108448982238...
func (c *Client) ParseNotify(req *http.Request) (*NotifyResponse, error) { var requestBody NotifyResponse return &requestBody, jsoniter.NewDecoder(req.Body).Decode(&requestBody) }
[ -0.6063852310180664, -0.38933372497558594, 0.38009315729141235, 0.2829011380672455, -0.7154930830001831, -0.9360501170158386, -1.1221274137496948, -0.1458941102027893, -0.19385787844657898, 0.6555494666099548, -1.4398739337921143, -0.0335950069129467, -0.14798499643802643, 0.52933394908905...