text
stringlengths
11
6.3k
embedding
listlengths
768
768
func (w *Reader) GoString() string { var b bytes.Buffer fmt.Fprintf(&b, "%T{\n\tmarks: %d\n\tlog-size: %d\n", w, len(w.marks)-1, len(w.log)) if len(w.log) > 0 { b.WriteString("\tlog: [\n\t TOK LVL| TOKEN\n") marked := make(map[int]int, len(w.marks)*2) // Most recent mark wins when displaying marks for ...
[ -0.05495523288846016, -0.5011552572250366, 1.1068631410598755, -0.9708214402198792, 0.13443826138973236, -0.020620185881853104, 0.43862560391426086, -0.8488539457321167, -0.8902940154075623, 0.5597595572471619, 0.5390921235084534, 0.20906603336334229, 0.10911209136247635, -0.17865306138992...
func CmdWorklogList(o *oreo.Client, globals *jiracli.GlobalOptions, opts *WorklogListOptions) error { data, err := jira.GetIssueWorklog(o, globals.Endpoint.Value, opts.Issue) if err != nil { return err } if err := opts.PrintTemplate(struct { Worklogs *jiradata.Worklogs `json:"worklogs,omitempty" yaml:"worklogs,...
[ -0.6610268950462341, -0.3385228216648102, 0.7811089754104614, 0.18068283796310425, -0.2871183454990387, 0.18412594497203827, 0.320686936378479, -0.3895316421985626, 0.8843536972999573, 0.9160505533218384, -0.7387720942497253, 0.5220591425895691, -0.6887705326080322, -0.11429981142282486, ...
func RegisterTypes(registry interface { RegisterType(name string, obj any) }) { }
[ -1.0866625308990479, 0.8377312421798706, 0.32570400834083557, 0.6221559643745422, 0.9902433753013611, -0.2563703656196594, 0.09789197891950607, -0.7374659180641174, 0.2246120274066925, 0.2822335362434387, -1.3407008647918701, 0.26995426416397095, -0.5973644256591797, 0.9500002264976501, ...
func Required() map[string]struct{} { // NOTE: Resource Providers in this list are case sensitive return map[string]struct{}{ "Microsoft.Web": {}, } }
[ -0.9182214140892029, -0.2523108422756195, 0.2681224048137665, -0.6755456328392029, -0.45909562706947327, 1.0063724517822266, -0.19858436286449432, 0.09294077754020691, 0.7330617904663086, 0.2637213170528412, -1.0516905784606934, 0.36241135001182556, 0.46240490674972534, 0.825393557548523, ...
func (b *Bag) Add(items ...Item) { b.items = append(b.items, items...) }
[ -1.365394115447998, -0.7472673058509827, 0.2638334333896637, 0.9098303914070129, 1.9032821655273438, 1.5039082765579224, -0.796471118927002, -0.20664487779140472, -0.2629668712615967, -0.5859614610671997, -1.04926335811615, -0.1413990706205368, -0.651452362537384, 0.6755392551422119, -0....
func (b *Bag) Merge(from *Bag) { b.Add(from.Items()...) }
[ -1.3686842918395996, 0.07050814479589462, 0.35868173837661743, 1.0593494176864624, 0.8359355330467224, 1.1898597478866577, -1.097029447555542, -0.3130504786968231, -0.46130698919296265, -1.3542729616165161, -1.4940401315689087, 0.05964556336402893, -0.7982217073440552, 0.2983831465244293, ...
func (b *Bag) Items() []Item { return b.items }
[ -1.0984585285186768, -1.0143609046936035, -0.10255119949579239, 0.8983135223388672, 0.9732195138931274, 1.1837489604949951, -0.5013293027877808, -0.42104700207710266, 0.2137102335691452, -0.7207720875740051, -0.8658375144004822, 0.481356680393219, -0.5387229323387146, -0.050237271934747696...
func (b *Bag) ByType(t string) []Item { var items []Item for _, item := range b.items { if item.Type == t { items = append(items, item) } } return items }
[ -0.23530034720897675, -1.2486317157745361, 0.49571385979652405, 0.11734583228826523, 0.6614818572998047, 0.17088067531585693, -0.7052334547042847, -0.6517509818077087, -0.4156145453453064, 1.411014437675476, -1.2646619081497192, 0.6210983991622925, -0.05545537546277046, -0.0599146857857704...
func (b *Bag) DeleteAt(index int) { b.items[index] = b.items[len(b.items)-1] b.items = b.items[:len(b.items)-1] }
[ -0.9402208924293518, -1.015331506729126, 0.561998188495636, -1.2122902870178223, 0.8064461946487427, 0.30733123421669006, -0.2969486713409424, -1.1065330505371094, 0.007754852529615164, -0.2576126158237457, -1.199629306793213, 0.06054794788360596, 0.07102498412132263, -0.8213174939155579, ...
func (b *Bag) ItemAt(index int) *Item { return &b.items[index] }
[ -0.9028801321983337, -0.6890966892242432, 0.06818113476037979, -0.6798407435417175, 0.2722136974334717, 0.4590927064418793, -0.8148727416992188, -1.983073115348816, 0.2739073932170868, -0.1911502480506897, -0.40808427333831787, 0.21895469725131989, -0.10240307450294495, -1.2589213848114014...
func (wx *WebwxApi) SyncCheck(c *common.Common, ce *conf.XmlConfig, cookies []*http.Cookie, server string, skl *common.SyncKeyList) (int, int, error) { km := url.Values{} km.Add("r", strconv.FormatInt(time.Now().Unix()*1000, 10)) km.Add("sid", ce.Wxsid) km.Add("uin", ce.Wxuin) km.Add("skey", ce.Skey) km.Add("devi...
[ -0.8694174885749817, 0.09774929285049438, 0.9359899759292603, 0.8268637657165527, -0.9694110751152039, 0.04696287959814072, 0.4544810354709625, -0.2861466109752655, -0.1058453768491745, 0.849431574344635, -0.44706130027770996, 1.3612332344055176, -0.684705913066864, 1.0596541166305542, 0...
func (_m *DataStoreTxn) Commit() error { ret := _m.Called() var r0 error if rf, ok := ret.Get(0).(func() error); ok { r0 = rf() } else { r0 = ret.Error(0) } return r0 }
[ -0.533037006855011, -0.16250120103359222, 0.5634589195251465, 0.26234573125839233, 0.3343413770198822, 0.2711777091026306, 1.065685510635376, 0.7406120896339417, -0.6081634163856506, 0.8055132627487183, -0.061683256179094315, -0.10160398483276367, 0.045618705451488495, 0.19345535337924957,...
func (_m *DataStoreTxn) Get(key []byte) []byte { ret := _m.Called(key) var r0 []byte if rf, ok := ret.Get(0).(func([]byte) []byte); ok { r0 = rf(key) } else { if ret.Get(0) != nil { r0 = ret.Get(0).([]byte) } } return r0 }
[ -0.8143652677536011, 0.3594870865345001, 0.42487677931785583, -0.00582363223657012, 0.1259232610464096, -1.109863519668579, -0.009891158901154995, 0.5541936159133911, -0.6343370079994202, 0.14018121361732483, -0.5890392065048218, 0.4704717695713043, -0.29019713401794434, 0.3381219506263733...
func (_m *DataStoreTxn) Rollback() error { ret := _m.Called() var r0 error if rf, ok := ret.Get(0).(func() error); ok { r0 = rf() } else { r0 = ret.Error(0) } return r0 }
[ -0.1926545947790146, 0.3410795331001282, 0.7072882056236267, 0.17805229127407074, 0.559524655342102, 0.2533406913280487, 0.9938369989395142, 1.1856781244277954, -0.15048670768737793, 0.18828116357326508, -0.22911003232002258, 0.35703760385513306, -0.29514122009277344, -0.55250084400177, ...
func (_m *DataStoreTxn) Set(key []byte, value []byte) error { ret := _m.Called(key, value) var r0 error if rf, ok := ret.Get(0).(func([]byte, []byte) error); ok { r0 = rf(key, value) } else { r0 = ret.Error(0) } return r0 }
[ -1.0594292879104614, 0.10938850790262222, 0.47838205099105835, -0.4993700087070465, -0.8851041793823242, -0.3252805769443512, 0.41685205698013306, 0.378775417804718, -0.6438599824905396, 0.13580575585365295, -0.290708065032959, -0.14376473426818848, 0.1608843058347702, 0.518618643283844, ...
func nativeScriptInit() { createFunc := gdnative.InstanceCreateFunc{ CreateFunc: gioConstructor, MethodData: "GIO", FreeFunc: func(methodData string) {}, } // Define an instance destroy function. This will be called when Godot // asks our library to destroy our class instance. destroyFunc := gdnative.Ins...
[ -0.2843668460845947, -0.2499983310699463, 0.573945164680481, -1.3928024768829346, 0.2626195549964905, -0.6551789045333862, -0.6882096529006958, -1.043599247932434, -0.5120083689689636, 0.3319798409938812, -0.7796279788017273, 0.7295635342597961, 0.33815091848373413, 0.4052261710166931, 0...
func write(object gdnative.Object, methodData, userData string, numArgs int, args []gdnative.Variant) gdnative.Variant { gdnative.Log.Println("GIO.write() called!") data := gdnative.NewStringWithWideString("World from godot-go from instance: " + object.ID() + "!") ret := gdnative.NewVariantWithString(data) return...
[ -0.4594438076019287, -0.21311244368553162, 0.31662771105766296, -0.6040104627609253, 0.22599825263023376, 0.6295691132545471, 0.2351617068052292, -0.7709774971008301, -0.3210586905479431, 0.668414294719696, -0.18036839365959167, 0.7461223006248474, -0.2779136896133423, -0.3753916621208191,...
func read(object gdnative.Object, methodData, userData string, numArgs int, args []gdnative.Variant) gdnative.Variant { gdnative.Log.Println("GIO.read() called!") data := gdnative.NewStringWithWideString(Message) ret := gdnative.NewVariantWithString(data) Message = "" return ret }
[ 0.5419383645057678, -0.07946272194385529, 0.45819589495658875, -0.6629570722579956, -0.49490946531295776, 0.4947347939014435, 0.010371997021138668, -1.6509302854537964, -0.4231497347354889, -0.22040148079395294, 0.4586017429828644, 1.2734243869781494, -0.8741549849510193, -0.88225001096725...
func main() { }
[ 0.5935109257698059, -0.5238813161849976, 0.06262364238500595, 1.9832351207733154, 0.3146790564060211, 0.4833202362060547, 1.6697919368743896, 0.6601263284683228, -0.13723190128803253, -0.6224525570869446, -0.7590957880020142, 0.3508590757846832, -0.36477935314178467, 0.25635138154029846, ...
func (this *NumMatrix) PrintMatrix() { fmt.Printf("[\n") for i := 0; i < len(this.sum); i++ { fmt.Printf(" [") for j := 0; j < len(this.sum[i]); j++ { fmt.Printf(" %d", this.sum[i][j]) } fmt.Printf(" ]\n") } fmt.Printf("]\n") }
[ 0.32115837931632996, -0.3003336191177368, 1.0902596712112427, -0.24000242352485657, 0.568788468837738, 0.4607113301753998, 0.6213758587837219, 0.15180951356887817, 0.34262481331825256, -0.7101938128471375, 0.2532845437526703, 1.0448718070983887, 0.23550379276275635, 0.4679136872291565, -...
func NewDispatcher(maxWorkers int, queueSize int) *Dispatcher { pool := make(chan chan Job, maxWorkers) return &Dispatcher{JobQueue: make(chan Job, queueSize), MaxWorkers: maxWorkers, WorkerPool: pool, WaitGroup: &sync.WaitGroup{}} }
[ 0.22924308478832245, -0.8331876397132874, 0.3718940317630768, -0.2882063388824463, -0.9508249759674072, 0.17923133075237274, -0.3821716606616974, 0.1410100907087326, -0.15406759083271027, -0.6915819644927979, -0.8520026803016663, 0.21887366473674774, -0.05571746826171875, 1.181037902832031...
func (d *Dispatcher) Run() { // starting n number of workers for i := 0; i < d.MaxWorkers; i++ { worker := NewWorker(d.WorkerPool, d.WaitGroup) worker.Start() } // start the dispatcher routine go d.dispatch() }
[ -0.8023073673248291, 0.70294189453125, 0.34973180294036865, -0.2629857063293457, 0.282898873090744, 0.48847952485084534, 0.36468929052352905, 0.9484603404998779, -0.7671929597854614, -0.11184824258089066, -1.6641929149627686, -0.21325740218162537, -0.02378571406006813, 1.0049773454666138, ...
func NewWorker(workerPool chan chan Job, wg *sync.WaitGroup) Worker { return Worker{ WorkerPool: workerPool, JobChannel: make(chan Job), quit: make(chan bool), wg: wg} }
[ -0.3292018473148346, -0.4986904561519623, 0.23335577547550201, -0.06896226108074188, -0.7559121251106262, 0.28387799859046936, -0.19363495707511902, -1.0204143524169922, -0.29860273003578186, 0.38823285698890686, -0.42978256940841675, 0.28929659724235535, -0.5766223073005676, 0.56730616092...
func (w Worker) Start() { go func() { for { // register the current worker into the worker queue. w.WorkerPool <- w.JobChannel select { case job := <-w.JobChannel: job.Process() // signal to the wait group that a queued job has been processed // so the main thread can continue w.wg.Done(...
[ 0.046761903911828995, -0.4529515206813812, 0.40385356545448303, -0.3452599048614502, 0.8019123673439026, -0.25576603412628174, 0.3401431739330292, 0.19994227588176727, -1.1659185886383057, 0.059595875442028046, -0.6314742565155029, 0.629522442817688, -0.30267030000686646, 0.677112102508544...
func InitAgent(configFile string) (*AgentConfig, error) { viper.SetConfigFile(configFile) if err := viper.ReadInConfig(); err != nil { return nil, fmt.Errorf("error reading config using config file: %s", viper.ConfigFileUsed()) } conf := new(AgentConfig) if err := viper.Unmarshal(conf); err != nil { return n...
[ 0.25842931866645813, -1.5499895811080933, 0.5272906422615051, -0.3656987249851227, -0.9158028960227966, -0.4302581548690796, -0.13372790813446045, 0.7164638638496399, -0.5677722096443176, 0.536357581615448, -0.8231670260429382, -0.14991632103919983, -0.26821377873420715, 0.1259301155805587...
func MakeServerEndpoints(svc NagiosParserSvc, cacher *cache.Cache, limiter *rate.Limiter) Endpoints { ee := Endpoints{} //gerParsedNagios Endpoint ee.getParsedNagios = MakeGetParsedNagiosEndpoint(svc) //refreshNagiosData Endpoint ee.refreshNagiosData = MakeRefreshNagiosDataEndpoint(svc) ee.refreshNagiosData = r...
[ 0.07740705460309982, 0.1484074890613556, 0.41033774614334106, 0.41617149114608765, -0.23740822076797485, 0.4437907636165619, -0.3680744767189026, 0.39003482460975647, 0.613580584526062, 0.11139928549528122, -0.44784414768218994, 0.8492190837860107, -0.10233782231807709, 0.6016836762428284,...
func MakeRefreshNagiosDataEndpoint(svc NagiosParserSvc) endpoint.Endpoint { return func(ctx context.Context, request interface{}) (interface{}, error) { // req := request.(refreshNagiosDataRequest) // Skipped because empty request err := svc.RefreshNagiosData(ctx) resp := refreshNagiosDataResponse{} if err !...
[ -0.1183207705616951, 0.10445764660835266, 0.5892269015312195, 0.7421973347663879, -0.5310240387916565, 0.9857733845710754, -0.32477107644081116, -0.5326216220855713, 0.12636861205101013, 0.11238688975572586, -0.1157369613647461, 1.1758770942687988, 0.49495700001716614, 0.12942111492156982,...
func MakeGetParsedNagiosEndpoint(svc NagiosParserSvc) endpoint.Endpoint { return func(ctx context.Context, request interface{}) (interface{}, error) { // req := request.(getParsedNagiosRequest) // Skipped because empty request resp, err := svc.GetParsedNagios(ctx) if err != nil { var issues getParsedNagiosR...
[ -0.12520307302474976, -0.750145673751831, 0.862835168838501, -0.4374367296695709, -0.1745329648256302, -0.17732951045036316, -0.02468036487698555, 0.36114537715911865, -0.38773444294929504, 0.011777906678617, -0.294478178024292, 0.4645589292049408, -0.133672833442688, 0.27084770798683167, ...
func fiat_p224_addcarryx_u32(x uint32, y uint32, carry fiat_p224_uint1) (uint32, fiat_p224_uint1) { var sum uint32 var carryOut uint32 sum, carryOut = bits.Add32(x, y, uint32(carry)) return sum, fiat_p224_uint1(carryOut) }
[ 0.032263606786727905, 0.4606323540210724, 1.0067647695541382, 0.35710608959198, 0.002471496118232608, 0.5014272332191467, -1.1543103456497192, -0.9832481741905212, -0.5855228304862976, -1.155562162399292, -0.27278047800064087, -0.013374011032283306, 0.32874634861946106, 0.2831757068634033,...
func fiat_p224_subborrowx_u32(x uint32, y uint32, carry fiat_p224_uint1) (uint32, fiat_p224_uint1) { var sum uint32 var carryOut uint32 sum, carryOut = bits.Sub32(x, y, uint32(carry)) return sum, fiat_p224_uint1(carryOut) }
[ 0.22447121143341064, 0.6522067189216614, 0.8554170727729797, 0.7271655201911926, -0.6013837456703186, 0.30004382133483887, -1.0152052640914917, -0.7048177123069763, -0.5240729451179504, -0.8929216265678406, -0.47614824771881104, -0.024508686736226082, 0.02011956088244915, -0.18016187846660...
func fiat_p224_cmovznz_u32(out1 *uint32, arg1 fiat_p224_uint1, arg2 uint32, arg3 uint32) { var x1 uint32 = (uint32(arg1) * 0xffffffff) var x2 uint32 = ((x1 & arg3) | ((^x1) & arg2)) *out1 = x2 }
[ -0.40764158964157104, 0.302095890045166, 0.47316959500312805, 0.9986637234687805, -0.5483590364456177, -0.09987587481737137, 0.159987211227417, -0.025794902816414833, -0.7548967599868774, -0.7283453345298767, -0.30965080857276917, 0.25015807151794434, 0.016804084181785583, 0.45095577836036...
func fiat_p224_selectznz(out1 *[7]uint32, arg1 fiat_p224_uint1, arg2 *[7]uint32, arg3 *[7]uint32) { var x1 uint32 fiat_p224_cmovznz_u32(&x1, arg1, (arg2[0]), (arg3[0])) var x2 uint32 fiat_p224_cmovznz_u32(&x2, arg1, (arg2[1]), (arg3[1])) var x3 uint32 fiat_p224_cmovznz_u32(&x3, arg1, (arg2[2]), (arg3[2])) ...
[ -0.41477271914482117, -0.7027677893638611, 0.6158925890922546, 0.49754875898361206, -0.34004950523376465, -1.07945716381073, 0.8529794216156006, -0.22926583886146545, -0.1398802101612091, 0.05871153995394707, -0.6950092315673828, 0.21114663779735565, -0.1506192684173584, 0.0521785356104373...
func ExtractPersistentVolume(pv *corev1.PersistentVolume) *model.PersistentVolume { message := &model.PersistentVolume{ Metadata: extractMetadata(&pv.ObjectMeta), Spec: &model.PersistentVolumeSpec{ Capacity: map[string]int64{}, PersistentVolumeReclaimPolicy: string(pv.Spec.PersistentVolu...
[ 0.10998477786779404, -1.012125849723816, 0.6717589497566223, -0.6754977703094482, -0.12948696315288544, -0.03184831887483597, 0.08578259497880936, 0.20822632312774658, 0.07939938455820084, 0.5739288926124573, 0.3245094120502472, 0.12948748469352722, -0.37008771300315857, 0.4361937046051025...
func PopCount(x uint64) int { return int(pc[byte(x>>(0*8))]) + int(pc[byte(x>>(1*8))]) + int(pc[byte(x>>(2*8))]) + int(pc[byte(x>>(3*8))]) + int(pc[byte(x>>(4*8))]) + int(pc[byte(x>>(5*8))]) + int(pc[byte(x>>(6*8))]) + int(pc[byte(x>>(7*8))]) }
[ 0.127182275056839, 0.7795392274856567, 0.7750266790390015, -0.7625970840454102, -1.0123966932296753, -0.1194179505109787, 0.3667376637458801, 0.07969486713409424, 0.45498359203338623, 1.1544448137283325, -0.7019879221916199, -0.5853989124298096, -0.387694776058197, -0.5794460773468018, 0...
func LoopPopCount(x uint64) int { var cnt int var i byte for i = 0; i < 64; i += 8 { cnt += int(pc[byte(x>>i)]) } return cnt }
[ -0.7442824244499207, 0.6585604548454285, 0.7802500128746033, -0.5245009660720825, -0.8765062093734741, 0.5589576959609985, 0.2632635235786438, -0.2574674189090729, 0.09211064875125885, 0.5605348348617554, -0.34331199526786804, 0.19652032852172852, -0.25320059061050415, -0.08623284101486206...
func NewTestRepository() user.IRepository { log.Println("Create users table...") rep := &testRepo{ users: make([]*user.User, 0), } return rep }
[ 0.024532606825232506, -0.14717061817646027, 0.2026064693927765, -0.36498820781707764, -0.17185887694358826, -0.5406206846237183, 0.620749294757843, -0.11535239964723587, 0.39323121309280396, -0.4122862219810486, 0.14472834765911102, 0.019250698387622833, -0.40359431505203247, 0.09024785459...
func (e *E2eProcessingLatencyAggregate) Add(e2 *E2eProcessingLatencyAggregate) { e.Addr = "*" p := e.Percentiles e.Count += e2.Count for _, value := range e2.Percentiles { i := -1 for j, v := range p { if value["quantile"] == v["quantile"] { i = j break } } if i == -1 { i = len(p) e.Perc...
[ -0.3176867365837097, -0.32611823081970215, 0.7837899923324585, -1.8183413743972778, -0.03650457412004471, 0.36714619398117065, -0.4118702709674835, 0.21288490295410156, -0.3819524943828583, 0.6266372203826904, 0.5954063534736633, 0.6150261163711548, -0.0018376396037638187, 0.61332488059997...
func (m *Movie) GetId() uint { return m.ID }
[ -0.017120860517024994, -0.8998481631278992, 0.6453073024749756, 1.4962286949157715, 0.688048243522644, 1.072035789489746, 0.32994839549064636, 0.24901415407657623, 0.6253600120544434, -0.6106145977973938, -0.4854282736778259, 1.0183286666870117, -1.4647201299667358, 1.4269174337387085, -...
func (m *Movie) IsCached(value string) bool { return strings.HasPrefix(value, "/cache") }
[ -0.8549532294273376, -0.105435311794281, 0.3176268935203552, 1.4050469398498535, -0.18559369444847107, 0.2832399904727936, -0.1553533524274826, 0.1249755248427391, 1.1822619438171387, 0.5710108876228333, -0.6863446235656738, 1.081500768661499, -0.14175903797149658, 0.7321774959564209, -1...
func res(conn net.Conn){ reader := bufio.NewReader(conn) // set a new reader for tcp // for loop is used for continuos reading from port for { text,err:=reader.ReadString('\n') if err != nil { fmt.Println("Client DISCONNECTED") return } else { ...
[ 0.46240198612213135, -0.34776103496551514, 0.6171219944953918, -1.0845413208007812, 0.4304148852825165, 0.4306305944919586, -0.9551015496253967, 0.28121334314346313, -1.1486539840698242, 0.1970607191324234, 0.2226790338754654, -0.36167433857917786, -0.4841621518135071, -0.70329350233078, ...
func Reader(conn net.Conn){ osReader := bufio.NewReader(os.Stdin) // make a READER for { msg,err:=osReader.ReadString('\n') if err != nil { fmt.Println("Client DISCONNECTED") return }else { pass <- msg // pass the user input to channel } } }
[ -0.12271898239850998, -0.5754337310791016, 0.6371955275535583, -0.663809061050415, -0.34700727462768555, 1.6030211448669434, 0.1775449514389038, -0.038687191903591156, -1.0053813457489014, -0.25167137384414673, 0.4194481372833252, 0.27131837606430054, -0.32181382179260254, 0.12146480381488...
func printErr (err error){ // this function is used for printing error if err != nil{ fmt.Println(err) } }
[ 0.1945253163576126, -0.8562449216842651, 0.29526981711387634, 1.0578006505966187, -0.8654842376708984, -0.15436595678329468, -0.45635971426963806, 0.17943595349788666, 0.7719999551773071, -0.22212038934230804, 0.31619587540626526, 0.8919035196304321, -0.03341248258948326, 1.353015303611755...
func writer(conn net.Conn){ writer:= bufio.NewWriter(conn) // makes a new writer for port for { select{ case values := <- pass :{ if (values != "close"){ writer.WriteString(values) //write string to port writer.Flush() // clear the buffer } else if (v...
[ -0.32865288853645325, -0.2561185956001282, 0.43713119626045227, -0.1809999793767929, 0.8271424174308777, 0.11414820700883865, 0.5023035407066345, 0.5084784626960754, -1.0625107288360596, -0.45223772525787354, 0.021391725167632103, -0.7748108506202698, -0.010772999376058578, -0.446181148290...
func TcpServerWriter(conn net.Conn){ writer:= bufio.NewWriter(conn) // makes a new writer for port for { select{ case values := <- passServer :{ if (values != "close"){ writer.WriteString(values +"\n") //write string to port writer.Flush() // clear the buffer ...
[ -0.3121531903743744, -0.5761202573776245, 0.48471784591674805, -0.1971222162246704, 0.44676652550697327, 0.08070297539234161, 0.364676833152771, 0.3934036195278168, -0.7787739038467407, -0.08232752978801727, 0.2683854103088379, -1.0562220811843872, -0.4500017762184143, -0.04404415190219879...
func TcpServerReader(conn net.Conn){ reader := bufio.NewReader(conn) // set a new reader for tcp // for loop is used for continuos reading from port for { text,err:=reader.ReadString('\n') // read string from server if err != nil { fmt.Println("Server DISCONNECTED") p...
[ -0.11365444213151932, -1.1968772411346436, 0.610694408416748, -0.7201780676841736, 0.11679355055093765, 1.0203250646591187, 0.0906989723443985, 0.5191316604614258, -0.8545588254928589, -0.1008087769150734, 0.5590697526931763, -0.19748811423778534, -0.45750293135643005, 0.014784442260861397...
func tcpClient(){ for { // tries to connect with server if indicator == 0 { fmt.Println("Connecting .....") conn,err := net.Dial("tcp",":6600") if err != nil{ } else { // connected to server indicator = 1 fmt.Println("Connected") ...
[ 0.08570346236228943, -0.5160061120986938, 0.35837337374687195, -0.4641475975513458, 0.46537795662879944, 0.6076379418373108, 0.5243279933929443, -0.3513662815093994, -1.0970648527145386, 0.16102024912834167, -0.250570148229599, -0.5154509544372559, -0.0862666592001915, -0.09434792399406433...
func NewFactory(logger *zap.Logger) Factory { return Factory{logger: logger} }
[ -0.19421079754829407, -0.9742037057876587, 0.02393588423728943, 0.37853381037712097, -1.2582154273986816, -0.7046718001365662, -0.15669533610343933, -0.35151517391204834, 0.8589158058166504, -0.4411620497703552, 0.20132465660572052, 0.09942884743213654, 0.1834455281496048, 0.25494736433029...
func (b Factory) Bg() Logger { return logger(b) }
[ -0.12001746147871017, -0.042135369032621384, 0.27226829528808594, 0.011291136033833027, -0.2767513692378998, -0.13840501010417938, -0.029904687777161598, 0.4753044545650482, -0.19578294456005096, -0.13320690393447876, 0.21698322892189026, 0.5063467025756836, 0.12708976864814758, 0.90470361...
func NewServer(endpoints []FakeEndpoint) *Server { s := new(Server) s.endpoints = endpoints return s }
[ -0.7569894194602966, -0.6963139772415161, 0.0942595899105072, 0.9723688960075378, 0.3221655786037445, 0.3101218044757843, -0.1495291143655777, 0.5861409306526184, 0.6460758447647095, 0.26293981075286865, -0.9249081015586853, 0.5716631412506104, -0.44850486516952515, 0.1592758446931839, -...
func NewDeck(shuffled bool) Deck { deck := NewSpecificDeck(shuffled, FACES, SUITS) return deck }
[ 0.1856779158115387, 1.0908093452453613, 0.06728985160589218, 0.8725592494010925, -0.8251498341560364, 0.06967238336801529, 0.130666121840477, 0.6247050166130066, 0.5285753011703491, -1.2191287279129028, 0.802216112613678, 0.8483465909957886, 0.6908194422721863, 1.31615149974823, 0.079089...
func NewSpecificDeck(shuffled bool, faces []Face, suits []Suit) Deck { cards := make([]Card, len(suits)*len(faces)) for sindex, suit := range suits { for findex, face := range faces { index := (sindex * len(faces)) + findex cards[index] = Card{face, suit} } } deck := Deck{cards} if shuffled { deck.Shuf...
[ -0.04473462700843811, 0.8096131682395935, 0.25505176186561584, 0.2979883849620819, -0.5639928579330444, -0.2136712670326233, 0.23999816179275513, 0.6433050036430359, 0.5006583333015442, -0.4685819447040558, 0.7556218504905701, 1.1439298391342163, 0.7441239953041077, 0.9033318161964417, 0...
func NewEmptyDeck() Deck { deck := Deck{[]Card{}} return deck }
[ -0.28712522983551025, -0.2917700409889221, 0.16656877100467682, 0.48289191722869873, -0.15683528780937195, 0.2689875662326813, -0.5063033699989319, 0.08388633280992508, -0.2858690321445465, -1.533384919166565, -0.4961915612220764, 0.9658814668655396, 0.0539131686091423, 0.7198593020439148,...
func (d *Deck) NumberOfCards() int { return len(d.cards) }
[ -0.2084028124809265, 1.1425269842147827, 0.20925840735435486, -0.7697847485542297, 0.044247012585401535, -0.7278995513916016, -0.4716191291809082, 0.396665096282959, 0.017482290044426918, -0.7713872790336609, -0.6700644493103027, -0.3869183361530304, 0.7971307635307312, 0.18961863219738007...
func (d *Deck) Card(index int) *Card { return &d.cards[index] }
[ -0.590025007724762, 0.3988367021083832, -0.15288731455802917, -0.6075958609580994, 0.18365931510925293, 0.00010631482291501015, 0.13714343309402466, -0.6354060173034668, 1.1594282388687134, -1.0834665298461914, 0.6172053813934326, 1.2713730335235596, 0.8458799123764038, -0.3136697113513946...
func (d *Deck) GetSignature() string { sig := "" for _, card := range d.cards { sig += card.GetSignature() } return sig }
[ -0.11229123920202255, -0.46322911977767944, 0.33471667766571045, -0.16336168348789215, 0.7432078123092651, -0.8364680409431458, -1.034724473953247, 0.19065381586551666, -0.28864580392837524, 0.10029780864715576, -1.0592193603515625, -0.8181880712509155, -0.38881295919418335, 0.832909226417...
func main() { // Create a TCP socket socket, _ := net.Listen("tcp", ":8080") fmt.Print("Server started. Listening on port 8080\r\n\r\n") // Loop forever, listening for connections for { // Pause until a client connects connection, _ := socket.Accept() // Handle each incoming connection as a GO ...
[ 0.5909850597381592, -0.3450150489807129, 0.740385890007019, -0.27489009499549866, 0.9138350486755371, 0.80387282371521, 0.41183188557624817, 0.41747981309890747, -1.333564281463623, -0.7057191133499146, 0.22253410518169403, 0.1685507744550705, -0.24851801991462708, -0.4615003168582916, 0...
func GuessHoster(name string) (Hoster, error) { var h Hoster if name != "" { if host, ok := allHosters[name]; ok { return host, nil } return nil, errors.New("hoster not supported: " + name) } for _, h = range allHosters { if h.OnThisHoster() { return h, nil } } return nil, errors.New("failed t...
[ -1.013407588005066, -0.07357132434844971, 0.47963592410087585, 0.5247966647148132, -0.477962464094162, -0.05749840661883354, -0.18974292278289795, -0.3799861669540405, -0.31728819012641907, -0.04487749561667442, 0.036029353737831116, -0.08312198519706726, -0.9452145099639893, 1.16712772846...
func (t *tag) UpdateOffer(name string) error { id, err := mongo.Tag.UpdateOffer(name) if err != nil { return e.Wrap(err, "TagService UpdateOffer failed") } err = es.Tag.UpdateOffer(id.Hex(), name) if err != nil { return e.Wrap(err, "TagService UpdateOffer failed") } return nil }
[ -1.3153008222579956, -0.41185975074768066, 0.7461085915565491, -0.1314091682434082, -0.8448126316070557, -0.2871360778808594, -0.9837053418159485, -0.08024494349956512, -0.12263751775026321, 1.0702674388885498, 0.060608189553022385, 0.4165918827056885, -0.17338284850120544, 1.0715661048889...
func (t *tag) UpdateWant(name string) error { id, err := mongo.Tag.UpdateWant(name) if err != nil { return e.Wrap(err, "TagService UpdateWant failed") } err = es.Tag.UpdateWant(id.Hex(), name) if err != nil { return e.Wrap(err, "TagService UpdateWant failed") } return nil }
[ -1.0981217622756958, -0.31487423181533813, 0.9005213379859924, -1.07136070728302, -0.2468905746936798, -0.1920279711484909, -0.6629828810691833, -0.9485109448432922, -0.28161290287971497, 0.46219655871391296, -0.5594907999038696, 0.8734516501426697, 0.30622398853302, 0.6597907543182373, ...
func (t *tag) MatchOffers(offers []string, lastLoginDate time.Time) (map[string][]string, error) { resultMap := make(map[string][]string, len(offers)) for _, offer := range offers { matches, err := es.Tag.MatchOffer(offer, lastLoginDate) if err != nil { return nil, e.Wrap(err, "TagService MatchOffers failed")...
[ -1.23778235912323, 0.10348762571811676, 0.5687448978424072, -0.18465663492679596, -0.5407623648643494, -0.7741950750350952, -0.5227950215339661, 0.06820903718471527, -0.15614831447601318, 0.43065541982650757, 0.8728786110877991, -0.46142497658729553, -0.3761063516139984, 0.5993669629096985...
func (t *tag) MatchWants(wants []string, lastLoginDate time.Time) (map[string][]string, error) { resultMap := make(map[string][]string, len(wants)) for _, want := range wants { matches, err := es.Tag.MatchWant(want, lastLoginDate) if err != nil { return nil, e.Wrap(err, "TagService MatchWants failed") } i...
[ -1.6292611360549927, -0.07530192285776138, 0.5262054204940796, -0.4203226566314697, -0.21082854270935059, -0.5347670912742615, -0.8562116622924805, -0.8801497220993042, -0.5611374974250793, -0.4196089208126068, 0.5941689610481262, -0.13895243406295776, 0.15089912712574005, 0.73158484697341...
func Add(redisclient *redis.Client, objtoinsert Order) helper.Resultado { database := new(helper.DatabaseX) database.Collection = "orders" database.Database, _ = redisclient.Get("API.MongoDB.Database").Result() database.Location, _ = redisclient.Get("API.MongoDB.Location").Result() session, err := mgo.Dial(datab...
[ -1.0760480165481567, 0.46790701150894165, 0.8977633714675903, -0.013903443701565266, 0.5293300747871399, 0.33350488543510437, -0.5745289325714111, -0.2264196276664734, 0.17290662229061127, 0.912306547164917, -0.06861864775419235, 0.20984119176864624, -0.6635709404945374, 0.3670118451118469...
func Find(redisclient *redis.Client, objtofind string) (Order, string) { database := new(helper.DatabaseX) database.Collection = "orders" database.Database, _ = redisclient.Get("API.MongoDB.Database").Result() database.Location, _ = redisclient.Get("API.MongoDB.Location").Result() objkey := objtofind objnull :=...
[ -0.5622408986091614, -0.14409931004047394, 0.8002802133560181, 0.06656507402658463, 0.21606241166591644, -0.36191973090171814, -0.4836499094963074, -0.9990260601043701, 0.10743142664432526, 1.73325514793396, -0.0403817854821682, 0.06678088009357452, -0.19015085697174072, 0.5425946712493896...
func SavetoMySQL(redisclient *redis.Client, db *sql.DB) { // Created on 19/7/2018 // This program will save data to MySQL // Call function to return all Orders from MongoDB // for each order // ... insert Order into MySQL // ....for each order item // ....... insert OrderItem into MySQL // that's it statusco...
[ -0.7578922510147095, 0.11744540929794312, 1.0113489627838135, 0.9254714250564575, 0.09424123167991638, -0.5446226000785828, 0.729164183139801, -0.171189084649086, -0.05678356811404228, 0.2015470713376999, -1.1976115703582764, -0.513106644153595, 0.04657205566763878, 0.9336922764778137, 1...
func BubbleSort(s []int) { n := len(s) for i := range s { for j := 0; j < n-i-1; j++ { if s[j] > s[j+1] { s[j], s[j+1] = s[j+1], s[j] } } } }
[ -0.6435109376907349, -0.19766126573085785, 0.5801699161529541, -0.15072989463806152, -1.1871991157531738, 0.0663343146443367, 0.9749444127082825, -0.7939589023590088, 0.6821684837341309, 0.2826797068119049, -1.383182406425476, 1.091779351234436, -1.1088229417800903, 0.2003633826971054, -...
func (s *Server) handleZoomLogin() http.HandlerFunc { return func(w http.ResponseWriter, r *http.Request) { ctx, logger := GetLogger(s.getCtx(r)) //probe for a provider ctx, provider, ok := s.loadProvider(w, r.WithContext(ctx)) if !ok { s.SetCookieErr(w, ErrOAuthZoom) http.Redirect(w, r.WithContext(ctx)...
[ -0.32781821489334106, 0.08985128998756409, 0.7386947870254517, 0.22755470871925354, -0.6493334174156189, -0.3175174593925476, 0.16819296777248383, 0.43683233857154846, 1.1688950061798096, 0.05965827777981758, -0.2756209671497345, 0.5549673438072205, 0.8024020195007324, -0.2207643985748291,...
func (s *Server) handleZoomOAuthCallback() http.HandlerFunc { return func(w http.ResponseWriter, r *http.Request) { ctx, logger := GetLogger(s.getCtx(r)) //probe for a provider ctx, provider, ok := s.loadProvider(w, r.WithContext(ctx)) if !ok { s.SetCookieErr(w, ErrOAuthZoom) s.redirectAbs(w, r.WithCont...
[ -0.018678251653909683, 0.10824041068553925, 0.5799100399017334, 0.5599513053894043, -0.5054909586906433, -0.6678799986839294, -0.06763160973787308, 0.4397778809070587, 1.2568039894104004, 0.1762249618768692, -0.10208533704280853, 0.9294952750205994, 0.8276131749153137, -0.06801753491163254...
func (s *Server) handleZoomWebHookCallback() http.HandlerFunc { return func(w http.ResponseWriter, r *http.Request) { ctx, logger := GetLogger(s.getCtx(r)) //verify a valid event event, err := VerifyWebHookZoom(w, r.WithContext(ctx)) if err != nil { logger.Errorw("verify zoom", "error", err) w.WriteHead...
[ 0.2954644560813904, -0.23959830403327942, 0.756091296672821, 0.6707755923271179, -0.6264714598655701, -0.19368016719818115, 0.7009584903717041, 0.419224351644516, 1.49124014377594, 0.44528889656066895, -0.6290525794029236, -0.3308342397212982, 0.5699218511581421, 0.9150151610374451, 0.52...
func NewPage(in php_serialize.PhpArray) (Page, error) { entries := make([]EntryRef, 0) for key, val := range in["entries"].(php_serialize.PhpArray) { entries = append(entries, NewEntryRef(php_serialize.PhpValueString(key), php_serialize.PhpValueString(val))) } return Page{ Total: php_serialize.PhpValueInt64...
[ 0.15818874537944794, -0.20900580286979675, 0.5176376700401306, -0.35306116938591003, -0.2903037965297699, 0.31839510798454285, -0.17912964522838593, -0.5646882057189941, 0.3010379374027252, 0.13412591814994812, 1.1960750818252563, -0.7109484076499939, -0.7354209423065186, 0.220900595188140...
func NewEntryRef(key, name string) EntryRef { parts := strings.SplitN(key, "-", 2) return EntryRef{ Utime: parts[0], Filename: parts[1], Symbol: name, } }
[ 0.17198361456394196, -0.7385835647583008, 0.14923331141471863, -0.4264109134674072, -0.8702854514122009, -0.31720244884490967, -0.7346190810203552, 0.5084053874015808, -0.5707842111587524, 0.8767931461334229, -0.29190486669540405, 0.5444513559341431, -0.3096201717853546, 0.3383657038211822...
func NewSavedTrackTable(savedTracksPage *api.SavedTracksPaged) *SavedTrackTable { return &SavedTrackTable{ tracks: savedTracksPage, } }
[ -0.09148561954498291, 0.03100518323481083, 0.33663392066955566, 0.3165254592895508, -0.6072244644165039, -0.27643004059791565, 0.6318424344062805, -0.3795809745788574, -0.7084110379219055, 0.2172030359506607, -0.6574281454086304, -0.4349922835826874, 0.017007045447826385, 0.186428979039192...
func IsNetErrCode(code int) bool { switch code { case GetConnErrorCode: // WriteConnErrCode, ReadConnErrCode return true } return false }
[ -1.1176981925964355, -0.8545677661895752, 0.8726359009742737, 0.0033874341752380133, 0.2721487879753113, -0.6043378710746765, -0.3385028839111328, -0.4188652038574219, 0.5789600610733032, 0.6849223375320435, 0.10318230837583542, -0.24147170782089233, -1.0988391637802124, 0.5000514984130859...
func IsKiteErrCode(code int) bool { switch code { case NotAllowedByServiceCBCode, NotAllowedByInstanceCBCode, ForbiddenByDegradationCode, GetDegradationPercentErrorCode, BadConnBalancerCode, BadConnRetrierCode, ConnRetryCode, NoExpectedFieldCode, ServiceDiscoverCode, IDCSelectErrorCode, GetConnErrorCode: return...
[ -0.5677652359008789, 0.4286425709724426, 0.801807701587677, -0.20635508000850677, -0.6819895505905151, 0.1941179484128952, -0.34021031856536865, -0.11809953302145004, 0.20130787789821625, 0.511726975440979, 0.35690754652023315, -0.2229757457971573, -1.1760969161987305, 0.6467911005020142, ...
func DeployAddress(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *Address, error) { parsed, err := abi.JSON(strings.NewReader(AddressABI)) if err != nil { return common.Address{}, nil, nil, err } address, tx, contract, err := bind.DeployContract(auth, parsed, common....
[ -0.439732164144516, -0.8080154657363892, 0.8960126042366028, -0.18418896198272705, -0.21975521743297577, -0.43712618947029114, 0.07966335862874985, -0.015689173713326454, 0.8214560747146606, 0.949383020401001, 0.04218215122818947, 0.8527296185493469, -0.5084851980209351, -0.004383045248687...
func NewAddress(address common.Address, backend bind.ContractBackend) (*Address, error) { contract, err := bindAddress(address, backend, backend, backend) if err != nil { return nil, err } return &Address{AddressCaller: AddressCaller{contract: contract}, AddressTransactor: AddressTransactor{contract: contract}, A...
[ 0.2223154902458191, -0.33762362599372864, 0.6368004679679871, 0.5573399662971497, -0.7420544624328613, -0.13460391759872437, -0.13344407081604004, 0.1542733907699585, 1.3763374090194702, 0.5966686606407166, 0.19138236343860626, 0.9332672357559204, -0.4578084349632263, 0.33554399013519287, ...
func NewAddressCaller(address common.Address, caller bind.ContractCaller) (*AddressCaller, error) { contract, err := bindAddress(address, caller, nil, nil) if err != nil { return nil, err } return &AddressCaller{contract: contract}, nil }
[ -0.5445007681846619, -0.39828261733055115, 0.5179861187934875, 0.2635137140750885, -1.2692973613739014, 0.3803984820842743, -0.6503804922103882, 0.2858639657497406, 1.1910464763641357, 0.37684351205825806, -0.4196542799472809, -0.10859151184558868, -0.04840882495045662, 1.3508151769638062,...
func NewAddressTransactor(address common.Address, transactor bind.ContractTransactor) (*AddressTransactor, error) { contract, err := bindAddress(address, nil, transactor, nil) if err != nil { return nil, err } return &AddressTransactor{contract: contract}, nil }
[ -0.6046041250228882, -0.09693251550197601, 0.5315048694610596, -0.17239674925804138, -1.6963658332824707, -0.06105702370405197, -0.23386096954345703, 0.49461638927459717, 0.7937791347503662, 0.9127472639083862, -1.40153169631958, 0.02874782308936119, 0.3674713969230652, 0.3421125113964081,...
func NewAddressFilterer(address common.Address, filterer bind.ContractFilterer) (*AddressFilterer, error) { contract, err := bindAddress(address, nil, nil, filterer) if err != nil { return nil, err } return &AddressFilterer{contract: contract}, nil }
[ -0.5663606524467468, -0.2929127812385559, 0.48352980613708496, 0.44462329149246216, -1.2000608444213867, -0.07392401993274689, -0.7683069109916687, 0.3122798204421997, 0.5485062003135681, 0.32673680782318115, -0.49509814381599426, 0.34459659457206726, 0.0291220024228096, 1.2340890169143677...
func bindAddress(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { parsed, err := abi.JSON(strings.NewReader(AddressABI)) if err != nil { return nil, err } return bind.NewBoundContract(address, parsed, caller, tra...
[ -0.4190855324268341, -0.9143916368484497, 0.654775083065033, 0.1399453580379486, -0.4915284812450409, -0.20714408159255981, -0.44021546840667725, 0.16820649802684784, 1.1473212242126465, -0.039391081780195236, 0.0934009850025177, 1.2528263330459595, -0.08315028250217438, 0.3756987452507019...
func (_Address *AddressRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { return _Address.Contract.AddressCaller.contract.Call(opts, result, method, params...) }
[ -1.2623709440231323, 0.5821270942687988, 0.5653305053710938, 0.5635539293289185, -0.9962431788444519, 0.30638620257377625, -0.3662688434123993, -0.37205106019973755, 0.7835962772369385, 0.18597468733787537, 0.0649060383439064, 0.10007716715335846, -0.5065622925758362, 0.4072634279727936, ...
func (_Address *AddressRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { return _Address.Contract.AddressTransactor.contract.Transfer(opts) }
[ -0.8168889284133911, 0.05037302151322365, 0.42658787965774536, 0.18820583820343018, -0.6581666469573975, 0.20965726673603058, 0.5196948647499084, -0.27126437425613403, 1.1244316101074219, -0.2321864813566208, -0.20380540192127228, 0.43540167808532715, -0.07830043137073517, -0.5795779824256...
func (_Address *AddressRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { return _Address.Contract.AddressTransactor.contract.Transact(opts, method, params...) }
[ -0.6211621761322021, 0.3184490501880646, 0.49623212218284607, -0.6232362389564514, -0.04857390373945236, -0.21231502294540405, 0.869647741317749, -0.1616934984922409, 0.7290418148040771, 0.05313016101717949, -0.3101096749305725, 0.6071935892105103, 0.18353502452373505, -0.18080982565879822...
func (_Address *AddressCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { return _Address.Contract.contract.Call(opts, result, method, params...) }
[ -1.1226693391799927, 0.6257490515708923, 0.5369491577148438, 0.5918180346488953, -0.9237219095230103, 0.27137696743011475, -0.32155025005340576, -0.3992794454097748, 0.6862397789955139, 0.26520079374313354, 0.04043065384030342, 0.09034162759780884, -0.5587536692619324, 0.36698928475379944,...
func (_Address *AddressTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { return _Address.Contract.contract.Transfer(opts) }
[ -0.5445948839187622, 0.17252634465694427, 0.31071949005126953, 0.3917751908302307, -0.17075583338737488, 0.07835184782743454, 0.5382406115531921, -0.43111032247543335, 1.0682388544082642, -0.22081038355827332, 0.1340392827987671, 0.2968537211418152, -0.11851807683706284, -0.552953600883483...
func (_Address *AddressTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { return _Address.Contract.contract.Transact(opts, method, params...) }
[ -0.4616066515445709, 0.40550604462623596, 0.4008171558380127, -0.4457705318927765, 0.20634816586971283, -0.3206508755683899, 0.9205976128578186, -0.41687530279159546, 0.582610011100769, 0.11773311346769333, -0.03906351700425148, 0.5148543119430542, 0.11053009331226349, -0.2569414973258972,...
func NewContext(address common.Address, backend bind.ContractBackend) (*Context, error) { contract, err := bindContext(address, backend, backend, backend) if err != nil { return nil, err } return &Context{ContextCaller: ContextCaller{contract: contract}, ContextTransactor: ContextTransactor{contract: contract}, C...
[ 0.4314305782318115, 0.1413881778717041, 0.7008147835731506, 0.4550386965274811, -0.9813692569732666, -0.3520320951938629, -0.2899484932422638, 0.11431600153446198, 1.3181068897247314, 0.9836050868034363, 0.10533136874437332, 0.4098799526691437, -0.3579443693161011, -0.2500484585762024, 0...
func NewContextCaller(address common.Address, caller bind.ContractCaller) (*ContextCaller, error) { contract, err := bindContext(address, caller, nil, nil) if err != nil { return nil, err } return &ContextCaller{contract: contract}, nil }
[ -0.1462281346321106, -0.004018731880933046, 0.46848347783088684, 0.44024717807769775, -0.9397953152656555, 0.01758803240954876, -0.8979124426841736, -0.10802281647920609, 1.1236178874969482, 0.8380010724067688, -0.4119495153427124, 0.15180698037147522, -0.9643537402153015, 0.67144149541854...
func NewContextTransactor(address common.Address, transactor bind.ContractTransactor) (*ContextTransactor, error) { contract, err := bindContext(address, nil, transactor, nil) if err != nil { return nil, err } return &ContextTransactor{contract: contract}, nil }
[ -0.15145190060138702, -0.13792173564434052, 0.37991902232170105, 0.17435166239738464, -1.777259349822998, -0.4213469624519348, -0.36976179480552673, 0.1413705199956894, 0.9876473546028137, 1.3330174684524536, -1.4683756828308105, 0.3861732482910156, -0.4423646330833435, -0.3965401947498321...
func NewContextFilterer(address common.Address, filterer bind.ContractFilterer) (*ContextFilterer, error) { contract, err := bindContext(address, nil, nil, filterer) if err != nil { return nil, err } return &ContextFilterer{contract: contract}, nil }
[ -0.18317288160324097, 0.09499764442443848, 0.4831790626049042, 0.631734311580658, -1.2185828685760498, -0.408991277217865, -0.7957563996315002, 0.029751084744930267, 0.7104825377464294, 0.7282336950302124, -0.31878823041915894, 0.5238367915153503, -0.8991507887840271, 0.5537488460540771, ...
func bindContext(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { parsed, err := abi.JSON(strings.NewReader(ContextABI)) if err != nil { return nil, err } return bind.NewBoundContract(address, parsed, caller, tra...
[ -0.4994336664676666, -0.25340375304222107, 0.7884976863861084, 0.13692978024482727, -0.7394561171531677, -0.12124866247177124, -0.7844638228416443, -0.36173903942108154, 0.9780757427215576, 0.6221843957901001, 0.10301350802183151, 0.8671144843101501, -0.2249600887298584, 0.1167764812707901...
func (_Context *ContextRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { return _Context.Contract.ContextCaller.contract.Call(opts, result, method, params...) }
[ -1.014716386795044, 0.5592675805091858, 0.5614335536956787, 0.9377090930938721, -0.7511646747589111, 0.4587401747703552, -0.4654666781425476, -0.4497544765472412, 0.6928945779800415, 0.5230610966682434, 0.31543976068496704, 0.2455558478832245, -0.7529984712600708, -0.1300240010023117, -0...
func (_Context *ContextRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { return _Context.Contract.ContextTransactor.contract.Transfer(opts) }
[ -0.560802698135376, -0.07767108827829361, 0.3061859905719757, 0.6908136010169983, -0.4109564423561096, 0.3458198308944702, 0.29564234614372253, -0.5213809013366699, 1.0484658479690552, -0.06131611764431, 0.048362694680690765, 0.5682240724563599, -0.42239511013031006, -1.002705454826355, ...
func (_Context *ContextRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { return _Context.Contract.ContextTransactor.contract.Transact(opts, method, params...) }
[ -0.47061026096343994, 0.3495692014694214, 0.385695219039917, -0.060454100370407104, 0.1801193207502365, -0.15339091420173645, 0.7273507714271545, -0.3967704176902771, 0.5696397423744202, 0.23899221420288086, 0.025987032800912857, 0.8653897643089294, -0.15562984347343445, -0.592022955417633...
func (_Context *ContextCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { return _Context.Contract.contract.Call(opts, result, method, params...) }
[ -0.8832606673240662, 0.5318389534950256, 0.5065737962722778, 0.9311822056770325, -0.7113988995552063, 0.3887891471385956, -0.4514447748661041, -0.5270154476165771, 0.6168146729469299, 0.39091789722442627, 0.23293553292751312, 0.209233820438385, -0.6928932666778564, 0.010035463608801365, ...
func (_Context *ContextTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { return _Context.Contract.contract.Transfer(opts) }
[ -0.45126375555992126, 0.06973019242286682, 0.2128983438014984, 0.7480602264404297, -0.07351749390363693, 0.23913085460662842, 0.3396107852458954, -0.6325452327728271, 1.0506497621536255, -0.16629135608673096, 0.20108382403850555, 0.3947562575340271, -0.3209529519081116, -0.8544178009033203...
func (_Context *ContextTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { return _Context.Contract.contract.Transact(opts, method, params...) }
[ -0.35301339626312256, 0.3985201418399811, 0.2991596758365631, -0.15701384842395782, 0.2642044126987457, -0.26893937587738037, 0.762161135673523, -0.5727872848510742, 0.5148484110832214, 0.17548085749149323, 0.10155650228261948, 0.7045556306838989, -0.061123576015233994, -0.5092774629592896...
func DeployERC20(auth *bind.TransactOpts, backend bind.ContractBackend, name string, symbol string) (common.Address, *types.Transaction, *ERC20, error) { parsed, err := abi.JSON(strings.NewReader(ERC20ABI)) if err != nil { return common.Address{}, nil, nil, err } address, tx, contract, err := bind.DeployContract...
[ -0.12988996505737305, -1.1403075456619263, 0.8093527555465698, -1.133262276649475, -0.36213016510009766, -0.8621171116828918, 0.5238762497901917, 0.0983310416340828, -0.12999305129051208, 1.1743860244750977, -0.43076416850090027, 0.33488044142723083, -0.7095170021057129, 0.1870461106300354...
func NewERC20(address common.Address, backend bind.ContractBackend) (*ERC20, error) { contract, err := bindERC20(address, backend, backend, backend) if err != nil { return nil, err } return &ERC20{ERC20Caller: ERC20Caller{contract: contract}, ERC20Transactor: ERC20Transactor{contract: contract}, ERC20Filterer: ER...
[ 0.43923088908195496, -1.409969687461853, 0.5905951261520386, -0.34076523780822754, -0.9498070478439331, -0.35550186038017273, 0.05117456242442131, 0.0019371112575754523, 0.13770708441734314, 0.6413962841033936, -0.33074259757995605, 0.23104819655418396, 0.08027472347021103, 1.1113420724868...
func NewERC20Caller(address common.Address, caller bind.ContractCaller) (*ERC20Caller, error) { contract, err := bindERC20(address, caller, nil, nil) if err != nil { return nil, err } return &ERC20Caller{contract: contract}, nil }
[ -0.4742059111595154, -0.9272717833518982, 0.18749171495437622, -0.3588550388813019, -1.1530227661132812, 0.4068371653556824, -0.5588991641998291, 0.09930713474750519, 0.15151745080947876, 0.531047523021698, -0.2756180465221405, 0.03723158314824104, -0.28346389532089233, 1.74538254737854, ...
func NewERC20Transactor(address common.Address, transactor bind.ContractTransactor) (*ERC20Transactor, error) { contract, err := bindERC20(address, nil, transactor, nil) if err != nil { return nil, err } return &ERC20Transactor{contract: contract}, nil }
[ -0.3768845498561859, -1.0076998472213745, 0.13788358867168427, -0.7697967290878296, -1.249852180480957, -0.45501452684402466, 0.22558468580245972, 0.6551539897918701, 0.03567122668027878, 0.4547698497772217, -1.3735984563827515, 0.013696904294192791, 0.1643122285604477, 0.9787106513977051,...