text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func (r *Readiness) GetChannel() chan ReadinessMessage {
return r.channel
} | [
-0.3036108911037445,
-0.1823868304491043,
0.3587014675140381,
-0.789002537727356,
0.8273295164108276,
0.7876188158988953,
0.3783377707004547,
-0.3431680202484131,
0.16315419971942902,
-1.0254966020584106,
0.7241554260253906,
1.12691330909729,
-0.5796359181404114,
0.9251912236213684,
0.32... |
func (r *Readiness) readinessMainLoop() {
for msg := range r.channel {
r.logger.Debug("Received readiness update",
zap.Bool("state", msg.Up),
zap.String("message", msg.Message))
r.updateReadinessState(msg.Up, msg.Message)
}
} | [
-0.2677004933357239,
-1.5979381799697876,
0.5773628354072571,
-1.1960972547531128,
0.06674771755933762,
0.39740368723869324,
-0.4459978938102722,
-0.11847104132175446,
0.11489801108837128,
0.5776840448379517,
0.6767681241035461,
0.03335476666688919,
-0.8332159519195557,
0.8024510741233826,... |
func (r *Readiness) updateReadinessState(newState bool, message string) {
// we always update state in case:
// - timestamp is zero (=at application startup)
// - current state different than newstate
if r.lastStateChange.IsZero() || r.status != newState {
r.status = newState
r.message = message
r.lastStateC... | [
-0.3671071529388428,
-0.7422553300857544,
0.3733135163784027,
-1.1068872213363647,
-0.3928278386592865,
0.3032605051994324,
-0.33400365710258484,
0.39917245507240295,
0.6370146870613098,
0.70179283618927,
0.08826761692762375,
0.27050086855888367,
-0.11028207093477249,
0.6044806838035583,
... |
func (r *Readiness) ReadinessProbe(c *gin.Context) {
response := struct {
Status bool `json:"status"`
Message string `json:"message"`
LastStateChange time.Time `json:"lastStateChange"`
}{
Status: r.status,
Message: r.message,
LastStateChange: r.lastStateChange,
... | [
-0.596601665019989,
-0.0290369875729084,
0.6872392296791077,
-0.9340642690658569,
0.052568238228559494,
-0.4349288046360016,
-1.1060296297073364,
-0.12341088056564331,
0.26913121342658997,
1.1866930723190308,
-0.049020785838365555,
-0.054966799914836884,
-0.7635634541511536,
0.582522034645... |
func (v *Variant) GetSegmentForFilename(filename string) *Segment {
return v.Segments[filename]
} | [
-0.6742522120475769,
-0.6739137768745422,
-0.010129855014383793,
-0.09329915791749954,
0.992324709892273,
0.017184196040034294,
0.4495616853237152,
-0.4270351529121399,
-0.36491695046424866,
0.06287064403295517,
0.2777837812900543,
0.11734452843666077,
0.06199001148343086,
-0.2988755404949... |
func NewTrail(ctx *pulumi.Context,
name string, args *TrailArgs, opts ...pulumi.ResourceOpt) (*Trail, error) {
if args == nil || args.S3BucketName == nil {
return nil, errors.New("missing required argument 'S3BucketName'")
}
inputs := make(map[string]interface{})
if args == nil {
inputs["cloudWatchLogsGroupArn... | [
0.9341731667518616,
0.23342294991016388,
0.8345414996147156,
-0.11792995780706406,
-0.3153793513774872,
0.4411347806453705,
-0.2641085386276245,
-0.4958473742008209,
-0.28691011667251587,
0.2653149366378784,
-0.6447114944458008,
0.29552850127220154,
-0.3131606876850128,
0.41382545232772827... |
func GetTrail(ctx *pulumi.Context,
name string, id pulumi.ID, state *TrailState, opts ...pulumi.ResourceOpt) (*Trail, error) {
inputs := make(map[string]interface{})
if state != nil {
inputs["arn"] = state.Arn
inputs["cloudWatchLogsGroupArn"] = state.CloudWatchLogsGroupArn
inputs["cloudWatchLogsRoleArn"] = sta... | [
0.7911939024925232,
0.18198716640472412,
0.5469617247581482,
-0.05374767258763313,
0.10047494620084763,
0.04594668373465538,
-0.3982272446155548,
-0.37754106521606445,
0.25682514905929565,
-0.24349048733711243,
-0.43505823612213135,
1.390164852142334,
-0.02895720675587654,
-0.3618072271347... |
func (r *Trail) URN() pulumi.URNOutput {
return r.s.URN()
} | [
0.6460328698158264,
-0.3565254211425781,
0.27084097266197205,
0.7678041458129883,
0.44667258858680725,
0.23461534082889557,
0.992988646030426,
1.4746036529541016,
0.011649366468191147,
-1.2022513151168823,
-0.8879266977310181,
0.6407647132873535,
0.8506271839141846,
-0.9169073104858398,
... |
func (r *Trail) ID() pulumi.IDOutput {
return r.s.ID()
} | [
1.55924654006958,
0.01827150024473667,
0.3916715383529663,
0.6548797488212585,
0.5595323443412781,
1.0122987031936646,
0.5365465879440308,
0.07842987775802612,
0.6174631714820862,
-0.1436646729707718,
-0.5324771404266357,
0.13611793518066406,
0.17597366869449615,
-0.40282365679740906,
-0... |
func (r *Trail) Arn() pulumi.StringOutput {
return (pulumi.StringOutput)(r.s.State["arn"])
} | [
0.22088900208473206,
-0.7691080570220947,
0.40549638867378235,
0.6958168745040894,
0.5052525401115417,
0.34878215193748474,
0.3359622359275818,
1.1927177906036377,
0.014080611988902092,
-0.30441513657569885,
-0.41737690567970276,
1.0475585460662842,
1.431795597076416,
-0.9821920394897461,
... |
func (r *Trail) CloudWatchLogsGroupArn() pulumi.StringOutput {
return (pulumi.StringOutput)(r.s.State["cloudWatchLogsGroupArn"])
} | [
0.7821803689002991,
0.15904781222343445,
0.36944228410720825,
-0.153904989361763,
0.17872720956802368,
0.6703078150749207,
0.5615593791007996,
0.39872875809669495,
-0.4278002381324768,
-0.11980224400758743,
-0.21467512845993042,
1.8576436042785645,
0.6713955998420715,
-0.4062955677509308,
... |
func (r *Trail) EnableLogFileValidation() pulumi.BoolOutput {
return (pulumi.BoolOutput)(r.s.State["enableLogFileValidation"])
} | [
1.5168980360031128,
-0.08441026508808136,
0.5722968578338623,
0.3260051906108856,
0.2965027391910553,
1.3645844459533691,
0.008204048499464989,
1.042187213897705,
-0.6949005126953125,
-0.48304086923599243,
-0.559037983417511,
0.45767852663993835,
-0.5450754165649414,
-0.7384055852890015,
... |
func (r *Trail) EnableLogging() pulumi.BoolOutput {
return (pulumi.BoolOutput)(r.s.State["enableLogging"])
} | [
0.4046993851661682,
0.9672241806983948,
0.718395471572876,
0.6749733090400696,
0.283903568983078,
1.20014226436615,
-0.14856618642807007,
1.0439040660858154,
0.12945416569709778,
0.2887357175350189,
-0.5509174466133118,
0.050027403980493546,
-0.3800037205219269,
-1.0752480030059814,
-0.8... |
func (r *Trail) EventSelectors() pulumi.ArrayOutput {
return (pulumi.ArrayOutput)(r.s.State["eventSelectors"])
} | [
-0.614055335521698,
-0.4354526102542877,
0.5353586077690125,
0.5220123529434204,
1.9343799352645874,
0.15638965368270874,
0.20861786603927612,
-0.5097874999046326,
0.8173893690109253,
-0.17794953286647797,
-0.9493764638900757,
0.7268540263175964,
0.12156535685062408,
-0.6506857872009277,
... |
func (r *Trail) HomeRegion() pulumi.StringOutput {
return (pulumi.StringOutput)(r.s.State["homeRegion"])
} | [
0.9338719844818115,
0.05180756747722626,
0.44930633902549744,
0.1472938358783722,
0.6298072934150696,
1.2246787548065186,
1.3611347675323486,
-0.3456227481365204,
0.15421642363071442,
-0.008901318535208702,
0.36670804023742676,
1.0097696781158447,
0.4328724443912506,
-1.2856353521347046,
... |
func (r *Trail) IncludeGlobalServiceEvents() pulumi.BoolOutput {
return (pulumi.BoolOutput)(r.s.State["includeGlobalServiceEvents"])
} | [
0.7717898488044739,
1.0120137929916382,
1.0032825469970703,
0.8739396333694458,
-0.2760193943977356,
2.089308977127075,
0.6442382335662842,
0.65726637840271,
0.4322565197944641,
0.46543341875076294,
-0.4420393109321594,
0.6899227499961853,
-0.950574517250061,
-0.15146689116954803,
-0.954... |
func (r *Trail) IsMultiRegionTrail() pulumi.BoolOutput {
return (pulumi.BoolOutput)(r.s.State["isMultiRegionTrail"])
} | [
0.09109359979629517,
0.7109851241111755,
0.5910345911979675,
0.8525065779685974,
0.4563780128955841,
0.9681869745254517,
0.05934338644146919,
-0.05836748331785202,
-0.10819213092327118,
0.39477086067199707,
-0.6352272033691406,
-0.00041458389023318887,
-0.0442466102540493,
0.23948100209236... |
func (r *Trail) IsOrganizationTrail() pulumi.BoolOutput {
return (pulumi.BoolOutput)(r.s.State["isOrganizationTrail"])
} | [
0.44946566224098206,
0.5843139290809631,
0.39792564511299133,
1.0251538753509521,
0.7567631602287292,
1.0761932134628296,
0.48770564794540405,
-0.2737596333026886,
0.29778194427490234,
0.5473094582557678,
-0.13602152466773987,
0.5278374552726746,
0.15397053956985474,
-0.5512604713439941,
... |
func (r *Trail) KmsKeyId() pulumi.StringOutput {
return (pulumi.StringOutput)(r.s.State["kmsKeyId"])
} | [
1.2779345512390137,
-0.17104269564151764,
0.3631563186645508,
0.14859402179718018,
0.08474154770374298,
0.8986951112747192,
-0.2805798053741455,
0.2200896143913269,
0.2007724791765213,
0.31871917843818665,
-0.16716662049293518,
0.6334009170532227,
0.4291188418865204,
-0.46594536304473877,
... |
func (r *Trail) Name() pulumi.StringOutput {
return (pulumi.StringOutput)(r.s.State["name"])
} | [
0.3316477835178375,
-0.19574066996574402,
0.5216178297996521,
-0.03019047901034355,
-0.3959687352180481,
0.8856410384178162,
0.17929592728614807,
-0.22523565590381622,
-0.23452983796596527,
1.1597238779067993,
-1.0569391250610352,
0.02781650982797146,
1.256438970565796,
-0.6972479224205017... |
func (r *Trail) S3BucketName() pulumi.StringOutput {
return (pulumi.StringOutput)(r.s.State["s3BucketName"])
} | [
0.8898097276687622,
0.27537301182746887,
0.6233865022659302,
0.19545161724090576,
-0.23855571448802948,
1.4790823459625244,
-0.1095825582742691,
-0.053393542766571045,
0.0022347557824105024,
0.5963471531867981,
-0.012826631776988506,
0.5160239934921265,
1.4030356407165527,
-1.6331074237823... |
func (r *Trail) S3KeyPrefix() pulumi.StringOutput {
return (pulumi.StringOutput)(r.s.State["s3KeyPrefix"])
} | [
0.4843481183052063,
-0.12668821215629578,
0.4112492799758911,
-0.017000706866383553,
0.2756296992301941,
1.1661990880966187,
-0.35235604643821716,
0.3382849395275116,
1.2393956184387207,
0.901217520236969,
-0.5702861547470093,
1.0346835851669312,
0.5680387616157532,
-1.7414710521697998,
... |
func (r *Trail) SnsTopicName() pulumi.StringOutput {
return (pulumi.StringOutput)(r.s.State["snsTopicName"])
} | [
0.9240192174911499,
0.16995024681091309,
0.4528562128543854,
0.0016343921888619661,
-0.20051978528499603,
1.0572926998138428,
-0.5604097843170166,
-0.40334975719451904,
0.30285748839378357,
0.44218310713768005,
-0.4715348482131958,
-0.2328086942434311,
0.8691105842590332,
-1.18190479278564... |
func (r *Trail) Tags() pulumi.MapOutput {
return (pulumi.MapOutput)(r.s.State["tags"])
} | [
0.3174576163291931,
0.3194042444229126,
0.44473251700401306,
-0.01635993830859661,
0.5215064883232117,
0.48209449648857117,
-0.10209521651268005,
0.3018423318862915,
-0.30213791131973267,
0.017650829628109932,
-1.1152904033660889,
0.2790578007698059,
1.1814844608306885,
-0.4275805950164795... |
func rpcClient(name, ip string, refInt int, minerInfo *MinerInformation, wg *sync.WaitGroup, threshold float64) {
//Add everything except the connection
c := Client{name, ip, nil, refInt, minerInfo, nil, threshold, int(time.Now().Unix())}
//Save the Client struct in the MinerInfo
c.MinerInfo.Client = &c
clientReq... | [
0.05045922473073006,
0.14915086328983307,
0.7433840036392212,
-0.19683130085468292,
-0.07694046944379807,
0.16727475821971893,
-0.14728879928588867,
-1.4002248048782349,
-0.5419042110443115,
-0.10282190144062042,
0.37840795516967773,
-0.25791797041893005,
-1.0702059268951416,
0.17411409318... |
func SummaryHandler(res chan<- RpcRequest, minerInfo *MinerInformation, c *Client, wg *sync.WaitGroup) {
request := RpcRequest{"{\"command\":\"summary\"}", make(chan []byte), ""}
var response []byte
//Creating an empty instance of everything
summary := SummaryResponse{[]StatusObject{StatusObject{}}, []SummaryObjec... | [
-0.0643276497721672,
-0.6029210090637207,
0.8125737905502319,
-0.14829662442207336,
-0.033221203833818436,
0.19555670022964478,
-0.09172461181879044,
-0.6715111136436462,
0.3584785461425781,
0.16697761416435242,
-0.1131276935338974,
0.06153915449976921,
-0.80580735206604,
0.344374835491180... |
func DevsHandler(res chan<- RpcRequest, minerInfo *MinerInformation, c *Client, wg *sync.WaitGroup) {
//Signal that the thread is started
wg.Done()
//Now do this forever and ever!
for {
//If it return false it has failed to connect
//So wait abit more before next time
if UpdateDevs(c.Name, true) == false {
... | [
-0.14868393540382385,
-0.6668936014175415,
0.6618703603744507,
-0.025984298437833786,
-0.2284087836742401,
1.0890722274780273,
-0.6451706886291504,
-1.4756935834884644,
-0.36347535252571106,
-0.5911078453063965,
0.23492877185344696,
-0.6616188883781433,
-0.7591505646705627,
0.1988747715950... |
func UpdateDevs(name string, checkTresHold bool) (ok bool) {
ok = false
request := RpcRequest{"{\"command\":\"devs\"}", make(chan []byte), name}
minerInfo := miners[name]
var devs DevsResponse
//Ignore the error at the moment since it not implement in the Send() yet
response, _ := request.Send()
//Parse the ... | [
-0.6234134435653687,
-0.2695631980895996,
0.806041955947876,
-0.17865580320358276,
-0.5143948793411255,
0.49832770228385925,
-0.6605489253997803,
-1.058699369430542,
0.6317299604415894,
0.07490263879299164,
-0.18732699751853943,
-0.1870567500591278,
-0.7539457082748413,
0.21187497675418854... |
func CheckAliveStatus(devs DevsResponse, name string) {
for i := 0; i < len(devs.Devs); i++ {
var dev = &devs.Devs[i]
if dev.Status != "Alive" {
//Send the restart command
log.Printf("Dev #%s on %s got %s status so sending restart command\n", dev.GPU, name, dev.Status)
restartMiner(name)
}
}
} | [
-0.1445896476507187,
-0.757429301738739,
0.5440537929534912,
0.7336912751197815,
0.5622465014457703,
0.21540842950344086,
-0.43115606904029846,
-0.43613100051879883,
0.6393638849258423,
1.054271936416626,
-0.41789907217025757,
-0.2378351390361786,
-0.4529927670955658,
0.5662393569946289,
... |
func CheckMhsThresHold(mhs float64, lasttime int, c *Client) {
switch {
//Good - It's abowe the limit
case mhs >= c.MHSThresLimit:
//Save the last timestamp
c.LastSumTimestamp = lasttime
return
//Meeh - Under the limit but it hasn't gone 10 min yey
case mhs < c.MHSThresLimit && (lasttime-c.LastSumTimestamp) ... | [
0.46511033177375793,
0.11675106734037399,
0.7985566854476929,
0.08477925509214401,
0.07520534098148346,
0.3410968482494354,
-1.4432001113891602,
-0.45051145553588867,
0.4638045132160187,
0.09140225499868393,
0.005387021228671074,
0.6469718217849731,
-0.819758415222168,
-0.11080724000930786... |
func enableDisable(status, device int, name string) {
var request RpcRequest
switch status {
case 0:
request = RpcRequest{fmt.Sprintf("{\"command\":\"gpudisable\",\"parameter\":\"%v\"}", device), make(chan []byte), name}
case 1:
request = RpcRequest{fmt.Sprintf("{\"command\":\"gpuenable\",\"parameter\":\"%v\"}... | [
0.22533027827739716,
0.19939067959785461,
0.9860033392906189,
0.46773043274879456,
0.03710934519767761,
0.4958499073982239,
0.02271001972258091,
0.6793048977851868,
-0.3878251612186432,
0.5015645623207092,
-0.3170936405658722,
0.5874183177947998,
-1.227573275566101,
0.1092773824930191,
1... |
func setGPUEngine(clock, device int, name string) {
request := RpcRequest{(fmt.Sprintf("{\"command\":\"gpuengine\",\"parameter\":\"%v,%v\"}", device, clock)), make(chan []byte), name}
request.Send()
} | [
-1.0685778856277466,
0.7187849879264832,
0.8752726912498474,
-0.040703848004341125,
0.22845150530338287,
0.35882675647735596,
-0.47910359501838684,
-0.8392468690872192,
-0.9679651260375977,
0.4048355221748352,
-0.6412714123725891,
1.3322230577468872,
-1.272650957107544,
0.5036031603813171,... |
func setGPUMemory(clock, device int, name string) {
request := RpcRequest{(fmt.Sprintf("{\"command\":\"gpumem\",\"parameter\":\"%v,%v\"}", device, clock)), make(chan []byte), name}
request.Send()
} | [
-0.6276412010192871,
0.30277472734451294,
0.7097139358520508,
-0.4111688435077667,
0.26621508598327637,
0.4896406829357147,
-0.27072253823280334,
-1.4337161779403687,
0.09632130712270737,
0.4581129550933838,
-0.9587087631225586,
1.658649206161499,
-1.185290813446045,
0.21398881077766418,
... |
func setVDDC(voltage float64, device int, name string) {
request := RpcRequest{(fmt.Sprintf("{\"command\":\"gpuvddc\",\"parameter\":\"%v,%v\"}", device, voltage)), make(chan []byte), name}
request.Send()
} | [
-0.4972917437553406,
0.37131649255752563,
0.7244526743888855,
-0.2917042672634125,
-0.2556609809398651,
0.4270041882991791,
-0.7356675267219543,
-0.7816141843795776,
-0.17839227616786957,
0.20751242339611053,
0.3810333013534546,
1.6682689189910889,
-0.43534979224205017,
0.4932204782962799,... |
func setIntensity(intensity, device int, name string) {
request := RpcRequest{(fmt.Sprintf("{\"command\":\"gpuintensity\",\"parameter\":\"%v,%v\"}", device, intensity)), make(chan []byte), name}
request.Send()
} | [
-0.8169021010398865,
0.02517850324511528,
0.575151801109314,
0.2434193342924118,
0.31364941596984863,
0.5345070958137512,
-0.042499907314777374,
-0.6382827758789062,
-0.3357280194759369,
0.7416057586669922,
-0.6226077079772949,
0.9390068054199219,
-1.659160852432251,
0.21877478063106537,
... |
func writeConfig(name string) {
request := RpcRequest{(fmt.Sprintf("{\"command\":\"save\",\"parameter\":\"\"}")), make(chan []byte), name}
request.Send()
} | [
-1.3830373287200928,
0.37370771169662476,
0.7239028215408325,
-0.8343548774719238,
0.7669625878334045,
0.02065384015440941,
-0.278291791677475,
0.09086895734071732,
-0.6798669099807739,
1.1206079721450806,
-1.5669305324554443,
0.20615935325622559,
-1.2553138732910156,
1.7238951921463013,
... |
func createConnection(ip string) net.Conn {
conn, err := net.DialTimeout("tcp", ip,10*time.Second)
//Check for errors
if err != nil {
log.Printf("createConnection: %s, check if the ip is correct or cgminer's api is enabled or if the miner is offline\n", err)
return nil
}
return conn
} | [
0.13181090354919434,
0.010600699111819267,
0.2056875228881836,
0.5765730738639832,
0.3157489001750946,
0.35327693819999695,
-0.2380063235759735,
0.6063690185546875,
0.02013622224330902,
0.7446304559707642,
0.8627911806106567,
-1.2595492601394653,
-1.064833641052246,
0.40866097807884216,
... |
func sendCommand(conn *net.Conn, cmd string) []byte {
//Write the command to the socket
fmt.Fprintf(*conn, cmd)
//Read the response
response, err := bufio.NewReader(*conn).ReadString('\n')
//Check for any errors
if err != nil {
//Check for errors
if err == io.EOF {
/*
* Cgminer sends out EOF after each... | [
0.008448375388979912,
-0.8126012682914734,
0.9113715291023254,
0.3001295328140259,
0.10451778024435043,
-0.25515443086624146,
-0.6397422552108765,
0.19039909541606903,
0.482571542263031,
0.3327989876270294,
-0.4600857198238373,
0.24259203672409058,
-1.3370914459228516,
0.7295666933059692,
... |
func (request RpcRequest) Send() (response []byte, err error) {
miners[request.Name].Client.ClientRequests <- request
response = <-request.ResultChan
/*
* TODO:
* Check the response for the status and if something
* went wront create and error
*/
return response, nil
} | [
-1.0051872730255127,
-0.4636661410331726,
0.36836013197898865,
0.25104132294654846,
0.9189196228981018,
-0.12700970470905304,
-0.4321388006210327,
-1.8098070621490479,
-0.13859020173549652,
-0.02400946244597435,
0.0749933198094368,
-0.06595014035701752,
-1.6026381254196167,
0.7444557547569... |
func (devs *DevsResponse) Parse(response []byte) {
if len(response) != 0 {
err := json.Unmarshal(response, &devs)
//Check for errors
if err != nil {
fmt.Println(err.Error())
}
//Set the onoff boolean for every device
for i := 0; i < len(devs.Devs); i++ {
//Get the variable
var dev = &devs.Devs[i]
... | [
-0.2736358344554901,
-0.333602637052536,
0.4956459403038025,
-0.03971821069717407,
-0.4188423156738281,
-0.2998994290828705,
-0.05592501908540726,
-0.05791059508919716,
0.5519452095031738,
0.14939849078655243,
0.25825053453445435,
-0.6923843622207642,
-0.7306200265884399,
1.002134680747985... |
func getAllGoidByNative() (goids []int64, err error) {
defer func() {
if e := recover(); e != nil {
err = errors.New(fmt.Sprintf("get all goid failed: %v", e))
goids = nil
}
}()
root, n := runtimeAtomicAllG()
goids = make([]int64, 0, n)
for i := uintptr(0); i < n; i++ {
gp := *(**runtimeG)(unsafe.Point... | [
-0.31985920667648315,
-0.02724447287619114,
0.6076120138168335,
0.38812124729156494,
-0.23321639001369476,
-0.0445157028734684,
-1.04214346408844,
-0.5635946393013,
-1.0427519083023071,
0.6772045493125916,
0.25207269191741943,
0.9364677667617798,
-0.5915327072143555,
0.9310289621353149,
... |
func NewMongoDBItemTemplatesRepository(db *db.Client) ItemTemplatesRepository {
// create index on id
//db.members.createIndex( { "user_id": 1 }, { unique: true } )
ir := &itemTemplatesRepository{
GenericRepo: &GenericRepo{
db: db,
collection: "itemtemplates",
generator: func() interface{} {
... | [
-0.5110405087471008,
-0.08384589850902557,
-0.10432587563991547,
-0.32209399342536926,
-0.007966777309775352,
-0.6911109089851379,
0.3258976936340332,
0.17910179495811462,
0.9472455382347107,
0.1831752359867096,
-1.096204400062561,
-0.6528012752532959,
-0.7946140170097351,
-0.2486830651760... |
func HandShake(agent *KlevrAgent) string {
uri := agent.Manager + "/agents/handshake"
rb := &common.Body{}
SendMe(rb)
logger.Debugf("%v", rb)
b, err := json.Marshal(rb)
if err != nil {
logger.Error(err)
}
// put in & get out
result := communicator.Put_Json_http(uri, b, agent.AgentKey, agent.API_key, age... | [
-0.2373369336128235,
-0.46222975850105286,
0.6718045473098755,
-0.39062270522117615,
-0.3250424563884735,
-0.4349691867828369,
-0.05886230245232582,
0.024681389331817627,
-0.2657972574234009,
0.6878957152366638,
0.2543228268623352,
-0.2749079465866089,
-0.5428264737129211,
-0.1399694681167... |
func NewCreateGameForm() *CreateGameForm {
form := &CreateGameForm{}
form.SetComponentLabels(ui.MapLabels(CreateGameFormFieldLabels))
return form
} | [
-0.2856448292732239,
-0.25411689281463623,
0.2533252537250519,
-0.47747892141342163,
-0.07334788888692856,
-0.016911929473280907,
-0.8560140132904053,
-1.0602614879608154,
-0.5474242568016052,
0.16394144296646118,
-0.8068576455116272,
-0.7107905149459839,
-0.26416245102882385,
0.1737059503... |
func (f *CreateGameForm) Validate() error {
f.ValidateFieldf(len(f.ID) > 2, "ID", "名称至少需要2个字符")
f.ValidateFieldf(len(f.ID) < 64, "ID", "名称不能超过64个字符")
f.ValidateFieldf(world.IDRegexp.MatchString(f.ID), "ID", "名称只能包含数字,字母,- _ @ .()[]+")
f.ValidateFieldf(f.Host != "", "Host", "网址不能为空")
f.ValidateFieldf(f.Port != "",... | [
-0.4190897047519684,
0.38900303840637207,
1.087649941444397,
0.09676746279001236,
0.2606908679008484,
0.9041961431503296,
-0.6306787729263306,
-1.124300241470337,
-1.4361780881881714,
0.2249906361103058,
-0.5513087511062622,
-0.6867545247077942,
-0.9613320231437683,
0.5592935681343079,
0... |
func (f *CreateGameForm) InitWithRequest(r *http.Request) error {
//Put your request form code here.
//such as get current user id or ip address.
return nil
} | [
-1.111504316329956,
-0.31335413455963135,
0.6627733111381531,
0.4802999198436737,
0.16197936236858368,
0.40117454528808594,
-0.5572476387023926,
-1.042424201965332,
-0.9012306928634644,
-0.6018118262290955,
-0.2989013195037842,
0.08847164362668991,
0.23855048418045044,
-0.04772969707846641... |
func EncryptStr_AES_CBC(s, key string) (encoded string, err error) {
var ciphertext []byte
if ciphertext, err = Encrypt_AES_CBC([]byte(s), []byte(key)); err != nil {
return
}
encoded = base64.StdEncoding.EncodeToString(ciphertext)
return
} | [
0.5768053531646729,
-0.49979108572006226,
0.33228757977485657,
0.4524455964565277,
-0.19373051822185516,
-0.9290506839752197,
-0.13108719885349274,
-0.7934139966964722,
0.48566848039627075,
1.0033190250396729,
0.1270069032907486,
0.3673413097858429,
-0.10577674210071564,
-0.851114094257354... |
func Encrypt_AES_CBC(plaintext, key []byte) (ciphertext []byte, err error) {
if len(plaintext)%aes.BlockSize != 0 {
plaintext = PKCS5Padding(plaintext, aes.BlockSize)
}
var block cipher.Block
if block, err = aes.NewCipher(key); err != nil {
return
}
// The IV needs to be unique, but not secure. Therefore it... | [
0.18738019466400146,
0.31181222200393677,
0.7521557211875916,
-0.2110426425933838,
-0.14751338958740234,
-0.34945499897003174,
0.25453755259513855,
-0.7494105696678162,
1.1599955558776855,
0.6712683439254761,
-0.20343150198459625,
-0.1491359919309616,
-0.8853461146354675,
-0.09116034954786... |
func DecryptStr_AES_CBC(s, key string) (decrypted string, err error) {
var ciphertext []byte
if ciphertext, err = base64.StdEncoding.DecodeString(s); err != nil {
return
}
var plaintext []byte
if plaintext, err = Decrypt_AES_CBC(ciphertext, []byte(key)); err != nil {
return
}
decrypted = fmt.Sprintf("%s", ... | [
0.7563573718070984,
-0.17130328714847565,
0.4573702812194824,
0.04616101086139679,
-0.4336344301700592,
-1.159311294555664,
-0.21827755868434906,
-0.4866800010204315,
0.3968662917613983,
1.0570176839828491,
0.2557269036769867,
0.038841165602207184,
-0.1703065186738968,
-0.7098214030265808,... |
func Decrypt_AES_CBC(ciphertext, key []byte) (plaintext []byte, err error) {
var block cipher.Block
if block, err = aes.NewCipher(key); err != nil {
return
}
// The IV needs to be unique, but not secure. Therefore it's common to
// include it at the beginning of the ciphertext.
if len(ciphertext) < aes.BlockSi... | [
0.7031328678131104,
0.24298182129859924,
0.6673559546470642,
-0.30292654037475586,
-0.4834361970424652,
-0.5675154328346252,
0.22343865036964417,
-0.35226303339004517,
0.4278835356235504,
0.6729881167411804,
-0.3631279468536377,
-0.46638956665992737,
-0.5028703212738037,
-0.367689818143844... |
func (b *PersistentDataStoreBuilder) CacheTime(cacheTime time.Duration) *PersistentDataStoreBuilder {
b.cacheTTL = cacheTime
return b
} | [
0.07144491374492645,
0.9225642085075378,
0.2355562448501587,
0.20177321135997772,
-1.26230788230896,
0.5595960021018982,
-0.8426836133003235,
0.9317308068275452,
0.692108690738678,
-0.5821564197540283,
-1.1169171333312988,
-0.7398034930229187,
0.5029990673065186,
0.517028272151947,
-1.28... |
func (b *PersistentDataStoreBuilder) CacheSeconds(cacheSeconds int) *PersistentDataStoreBuilder {
return b.CacheTime(time.Duration(cacheSeconds) * time.Second)
} | [
-0.36836016178131104,
0.9076377153396606,
0.2622714340686798,
0.19072070717811584,
-1.6733827590942383,
0.09091734141111374,
-0.6514843106269836,
-0.24157287180423737,
0.26871156692504883,
-0.8273922204971313,
-0.6201415657997131,
0.10860121995210648,
0.20133616030216217,
-0.08588104695081... |
func (b *PersistentDataStoreBuilder) CacheForever() *PersistentDataStoreBuilder {
return b.CacheTime(-1 * time.Millisecond)
} | [
0.49658703804016113,
0.8084197640419006,
0.47171980142593384,
0.7059723138809204,
-0.6208759546279907,
0.2772478759288788,
-0.8751340508460999,
0.15733842551708221,
-0.13348476588726044,
-1.0521910190582275,
0.03563809022307396,
-0.33977022767066956,
-0.5930274724960327,
0.7764244079589844... |
func (b *PersistentDataStoreBuilder) NoCaching() *PersistentDataStoreBuilder {
return b.CacheTime(0)
} | [
-0.8053539991378784,
1.528533697128296,
0.11807191371917725,
0.10255942493677139,
-1.3277019262313843,
0.2577938139438629,
0.15028876066207886,
0.9404714703559875,
0.045148029923439026,
-0.8700675964355469,
-0.7136618494987488,
-0.2666146755218506,
-0.8340356945991516,
0.37312206625938416,... |
func (b *PersistentDataStoreBuilder) CreateDataStore(
context interfaces.ClientContext,
dataStoreUpdates interfaces.DataStoreUpdates,
) (interfaces.DataStore, error) {
core, err := b.persistentDataStoreFactory.CreatePersistentDataStore(context)
if err != nil {
return nil, err
}
return datastore.NewPersistentDat... | [
0.34377971291542053,
-0.2699286639690399,
0.0868004783987999,
0.21816636621952057,
-0.10138896852731705,
0.47523370385169983,
-0.8955890536308289,
0.17677457630634308,
0.5789688229560852,
-0.738284707069397,
0.39235201478004456,
-0.35463351011276245,
-0.6711152195930481,
0.4597382843494415... |
func (b *PersistentDataStoreBuilder) DescribeConfiguration() ldvalue.Value {
if dd, ok := b.persistentDataStoreFactory.(interfaces.DiagnosticDescription); ok {
return dd.DescribeConfiguration()
}
return ldvalue.String("custom")
} | [
0.09616246074438095,
1.0356947183609009,
0.37402933835983276,
-0.15298707783222198,
-0.7620822191238403,
-0.9452675580978394,
0.04795851930975914,
0.06476348638534546,
0.7037395238876343,
-0.3568843603134155,
0.9488020539283752,
0.09287609159946442,
0.06468649208545685,
1.025790810585022,
... |
func (r *Resolver) Mutation() generated.MutationResolver { return &mutationResolver{r} } | [
-0.85917729139328,
-0.8114736080169678,
0.21915511786937714,
0.6041824817657471,
0.3279842734336853,
-0.12314578890800476,
0.07235062122344971,
0.2440601885318756,
1.0211246013641357,
-1.228659987449646,
-0.5522106885910034,
-1.263425350189209,
0.1981908679008484,
-0.07537302374839783,
-... |
func (r *Resolver) Query() generated.QueryResolver { return &queryResolver{r} } | [
0.0017501392867416143,
-0.48795756697654724,
0.11716366559267044,
0.41594451665878296,
-0.170012965798378,
-0.03253801167011261,
-0.6646475195884705,
0.6134193539619446,
0.6766958832740784,
-1.769515037536621,
-0.099466972053051,
-0.8924757242202759,
-0.0530250146985054,
0.1281633079051971... |
func ParseXRTReadingValue(valueType string, reading interface{}) (interface{}, errors.EdgeX) {
// Since we receive the reading in JSON format, the JSON lib will unmarshal the reading to specified data type:
// bool for JSON booleans, float64 for JSON numbers, nil for JSON null
// string for JSON strings, []interfac... | [
-0.2502664029598236,
-0.3472846448421478,
1.0524379014968872,
-0.5179621577262878,
-0.9435777068138123,
-0.0881054475903511,
-0.6214140057563782,
-0.30023619532585144,
0.15186095237731934,
0.38682058453559875,
1.3192389011383057,
0.13282985985279083,
0.059678222984075546,
0.045851685106754... |
func GetEnvelopeFromBlock(data []byte) (*cb.Envelope, error) {
// Block always begins with an envelope
var err error
env := &cb.Envelope{}
if err = proto.Unmarshal(data, env); err != nil {
return nil, errors.Wrap(err, "error unmarshaling Envelope")
}
return env, nil
} | [
0.6016811728477478,
-0.03511111065745354,
0.48212432861328125,
0.7214875221252441,
-0.5506924986839294,
-0.15491312742233276,
0.29445940256118774,
-0.2291015088558197,
0.311801940202713,
-0.005996842868626118,
-0.03333532065153122,
-0.05669502168893814,
-0.8103686571121216,
0.7824887633323... |
func GetPayload(e *cb.Envelope) (*cb.Payload, error) {
payload := &cb.Payload{}
err := proto.Unmarshal(e.Payload, payload)
return payload, errors.Wrap(err, "error unmarshaling Payload")
} | [
0.062293294817209244,
0.4742669463157654,
0.5450533628463745,
-0.27291980385780334,
0.015337422490119934,
-0.09168825298547745,
-0.12563158571720123,
-0.5087924599647522,
0.6874273419380188,
-0.18733219802379608,
0.20792065560817719,
0.10262864083051682,
-0.7075995802879333,
-0.25345453619... |
func GetChaincodeActionPayload(capBytes []byte) (*peer.ChaincodeActionPayload, error) {
cap := &peer.ChaincodeActionPayload{}
err := proto.Unmarshal(capBytes, cap)
return cap, errors.Wrap(err, "error unmarshaling ChaincodeActionPayload")
} | [
-0.24984732270240784,
-1.2963271141052246,
0.34225162863731384,
0.09868603199720383,
0.05067232996225357,
-0.19148290157318115,
0.5133940577507019,
-0.09243501722812653,
0.554967999458313,
-0.1511189043521881,
-0.7238914966583252,
0.8796271085739136,
-1.0544486045837402,
-0.375822633504867... |
func GetProposalResponsePayload(prpBytes []byte) (*peer.ProposalResponsePayload, error) {
prp := &peer.ProposalResponsePayload{}
err := proto.Unmarshal(prpBytes, prp)
return prp, errors.Wrap(err, "error unmarshaling ProposalResponsePayload")
} | [
-0.0006186424870975316,
-0.6613401174545288,
0.38186872005462646,
-0.8557521104812622,
-0.8699127435684204,
0.40381085872650146,
0.20079250633716583,
0.24206671118736267,
1.2927647829055786,
0.16905483603477478,
-0.06593958288431168,
-0.863205075263977,
-1.3729342222213745,
-0.948333561420... |
func GetChaincodeAction(caBytes []byte) (*peer.ChaincodeAction, error) {
chaincodeAction := &peer.ChaincodeAction{}
err := proto.Unmarshal(caBytes, chaincodeAction)
return chaincodeAction, errors.Wrap(err, "error unmarshaling ChaincodeAction")
} | [
-0.36813491582870483,
-0.951132595539093,
0.36654388904571533,
-0.11270011216402054,
0.37100231647491455,
-0.5527911186218262,
0.648992657661438,
-0.13062702119350433,
0.2697177827358246,
0.14628680050373077,
-0.8784302473068237,
0.9187639355659485,
-1.2003729343414307,
0.25285810232162476... |
func GetTransaction(txBytes []byte) (*peer.Transaction, error) {
tx := &peer.Transaction{}
err := proto.Unmarshal(txBytes, tx)
return tx, errors.Wrap(err, "error unmarshaling Transaction")
} | [
0.16094262897968292,
0.33056625723838806,
0.3163389563560486,
-0.5746129155158997,
0.08402543514966965,
-0.24434062838554382,
0.1319291591644287,
0.1936827450990677,
0.546329915523529,
0.1409505009651184,
-0.9088663458824158,
-0.24307306110858917,
-1.1642732620239258,
-0.8286026120185852,
... |
func modified(f os.FileInfo, dir string) *string {
name := f.Name()
number := getLeetcodeNumber(name)
if len(number) == 0 {
return nil
}
files, error := ioutil.ReadDir(dir + "/" + name)
if error != nil {
log.Fatal(error)
}
if len(files) == 0 {
return nil
}
questionName := strings.Replace(files[0].Name()... | [
0.021490078419446945,
-0.3591681718826294,
0.6743279099464417,
-0.6473939418792725,
-0.5120195150375366,
0.04114469885826111,
-0.011102484539151192,
0.45337381958961487,
-0.18200010061264038,
0.5511783361434937,
0.2903764545917511,
0.15724697709083557,
0.77132248878479,
0.1738259643316269,... |
func (x *MemcacheServiceError_ErrorCode) UnmarshalJSON(b []byte) error {
num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
if err != nil {
return err
}
*x = MemcacheServiceError_ErrorCode(num)
return nil
} | [
-0.9943846464157104,
0.5440183281898499,
0.47618234157562256,
-0.7328776717185974,
-0.89530348777771,
-0.457221657037735,
0.0653495043516159,
0.33680346608161926,
-0.054374828934669495,
0.4152393937110901,
0.20099379122257233,
0.4397621750831604,
-0.4667526185512543,
0.5601485371589661,
... |
func (x *MemcacheSetRequest_SetPolicy) UnmarshalJSON(b []byte) error {
num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
if err != nil {
return err
}
*x = MemcacheSetRequest_SetPolicy(num)
return nil
} | [
-0.5567367076873779,
0.7362523078918457,
0.20765385031700134,
-0.8058279752731323,
-0.1961728036403656,
0.2644043266773224,
-0.3585767149925232,
-0.7544242739677429,
-0.23405961692333221,
0.40226680040359497,
0.19565078616142273,
0.25980469584465027,
-0.25110721588134766,
0.124244868755340... |
func (MemcacheSetRequest_SetPolicy) EnumDescriptor() ([]byte, []int) {
return file_memcache_service_proto_rawDescGZIP(), []int{5, 0}
} | [
-0.9101412892341614,
0.1146310567855835,
0.24852176010608673,
-0.21333563327789307,
0.5760869979858398,
0.5018141269683838,
-0.8586164116859436,
-0.813824474811554,
0.08377294987440109,
0.08702687174081802,
-0.09698349982500076,
0.9552570581436157,
-0.060745179653167725,
0.2615770995616913... |
func (x *MemcacheSetResponse_SetStatusCode) UnmarshalJSON(b []byte) error {
num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
if err != nil {
return err
}
*x = MemcacheSetResponse_SetStatusCode(num)
return nil
} | [
-0.09894547611474991,
0.1126820370554924,
-0.059528592973947525,
-0.9388170838356018,
-0.8648026585578918,
-0.6265618801116943,
0.08280602842569351,
-0.38750794529914856,
-0.1079898551106453,
0.39594489336013794,
-0.6599688529968262,
-0.27688443660736084,
-0.3175092041492462,
-0.0114788888... |
func (MemcacheSetResponse_SetStatusCode) EnumDescriptor() ([]byte, []int) {
return file_memcache_service_proto_rawDescGZIP(), []int{6, 0}
} | [
0.0497467964887619,
-0.5007826089859009,
-0.057096224278211594,
-0.4957655668258667,
-0.05262171849608421,
-0.8621114492416382,
-0.32311928272247314,
-0.36594751477241516,
0.1548425257205963,
-0.0016333863604813814,
-0.6787739396095276,
0.2706764340400696,
-0.0005690724356099963,
0.0933447... |
func (x *MemcacheDeleteResponse_DeleteStatusCode) UnmarshalJSON(b []byte) error {
num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
if err != nil {
return err
}
*x = MemcacheDeleteResponse_DeleteStatusCode(num)
return nil
} | [
0.14246785640716553,
0.12112002819776535,
0.29406145215034485,
-0.8849260210990906,
-0.5963662266731262,
-0.5712679028511047,
-0.22629660367965698,
0.5462900996208191,
0.5311211347579956,
0.06923766434192657,
-0.45929810404777527,
0.007029360625892878,
-0.47063297033309937,
-0.206393375992... |
func (MemcacheDeleteResponse_DeleteStatusCode) EnumDescriptor() ([]byte, []int) {
return file_memcache_service_proto_rawDescGZIP(), []int{8, 0}
} | [
0.3476393222808838,
-0.26942041516304016,
0.27055823802948,
-0.4346878230571747,
0.27064409852027893,
-0.5553377270698547,
-0.5217728018760681,
0.5076016187667847,
0.8568623065948486,
-0.3520306944847107,
-0.5126346349716187,
0.5616542100906372,
-0.10925870388746262,
-0.18952876329421997,
... |
func (x *MemcacheIncrementRequest_Direction) UnmarshalJSON(b []byte) error {
num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
if err != nil {
return err
}
*x = MemcacheIncrementRequest_Direction(num)
return nil
} | [
-1.0493696928024292,
0.5352897047996521,
0.6217927932739258,
-0.3253822922706604,
-0.7503634095191956,
-0.11320008337497711,
0.017583318054676056,
-0.40076744556427,
-0.5774956941604614,
-0.952477753162384,
0.5700600743293762,
0.38091760873794556,
-0.5533583164215088,
0.2906903028488159,
... |
func (MemcacheIncrementRequest_Direction) EnumDescriptor() ([]byte, []int) {
return file_memcache_service_proto_rawDescGZIP(), []int{9, 0}
} | [
-1.077892780303955,
-0.14579546451568604,
0.5390138030052185,
0.12246633321046829,
-0.03572472184896469,
0.17254920303821564,
-0.47029751539230347,
-0.554098904132843,
-0.41063791513442993,
-1.6080539226531982,
0.7821739315986633,
0.8765365481376648,
-0.6613607406616211,
0.5935086607933044... |
func (x *MemcacheIncrementResponse_IncrementStatusCode) UnmarshalJSON(b []byte) error {
num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
if err != nil {
return err
}
*x = MemcacheIncrementResponse_IncrementStatusCode(num)
return nil
} | [
-0.012600514106452465,
0.132436603307724,
0.23683710396289825,
-0.5424989461898804,
-0.9418222904205322,
-0.20314638316631317,
0.4691154360771179,
-0.039746157824993134,
-0.21554285287857056,
-0.27203938364982605,
-0.6977621912956238,
-0.5247253775596619,
-0.9418137669563293,
-0.3281110823... |
func (MemcacheIncrementResponse_IncrementStatusCode) EnumDescriptor() ([]byte, []int) {
return file_memcache_service_proto_rawDescGZIP(), []int{10, 0}
} | [
-0.03483855351805687,
-0.4278474450111389,
0.06470116972923279,
-0.15847133100032806,
-0.2935847342014313,
-0.07124165445566177,
0.09235884249210358,
0.24285173416137695,
-0.10030273348093033,
-0.4625135660171509,
-0.6412324905395508,
-0.030631087720394135,
-0.8051280379295349,
-0.09623374... |
func (*AppOverride) Descriptor() ([]byte, []int) {
return file_memcache_service_proto_rawDescGZIP(), []int{1}
} | [
-0.27290529012680054,
0.7682561874389648,
0.4137519598007202,
0.42442452907562256,
-0.4906548261642456,
-0.8306280970573425,
-0.6800864934921265,
-0.15563075244426727,
-0.5178149938583374,
-1.2611366510391235,
-0.3425482213497162,
-0.4634586274623871,
-0.46868041157722473,
0.78454971313476... |
func (x *AppOverride) GetNumMemcachegBackends() int32 {
if x != nil && x.NumMemcachegBackends != nil {
return *x.NumMemcachegBackends
}
return 0
} | [
0.21816448867321014,
1.4020572900772095,
0.657429039478302,
1.0040826797485352,
-0.07294061034917831,
-0.5494031310081482,
-0.47745031118392944,
-0.3538920283317566,
0.5150458216667175,
0.12893979251384735,
-1.5269320011138916,
0.12292975187301636,
-1.0141068696975708,
1.2634629011154175,
... |
func (x *AppOverride) GetIgnoreShardlock() bool {
if x != nil && x.IgnoreShardlock != nil {
return *x.IgnoreShardlock
}
return false
} | [
0.4948531985282898,
1.3278485536575317,
0.5977749824523926,
0.8020963668823242,
-0.4844728410243988,
0.3449101448059082,
-0.6876661777496338,
-0.47382721304893494,
0.42906269431114197,
-0.6881461143493652,
-0.48412561416625977,
-0.6494476795196533,
-1.175912618637085,
0.5373460054397583,
... |
func (x *AppOverride) GetMemcachePoolHint() string {
if x != nil && x.MemcachePoolHint != nil {
return *x.MemcachePoolHint
}
return ""
} | [
0.7130300402641296,
0.010830066166818142,
0.37589675188064575,
-0.07064764946699142,
-0.8820317387580872,
0.40027517080307007,
-0.5030648112297058,
-1.1191935539245605,
0.6608396768569946,
0.317679762840271,
-0.7128950953483582,
0.2771678566932678,
-1.0477049350738525,
0.4180958569049835,
... |
func (x *AppOverride) GetMemcacheShardingStrategy() []byte {
if x != nil {
return x.MemcacheShardingStrategy
}
return nil
} | [
1.030173659324646,
1.0184335708618164,
0.4266866147518158,
0.26789236068725586,
-0.2141520380973816,
0.009995674714446068,
-0.6122030019760132,
-0.11418696492910385,
0.4595166742801666,
-0.848396897315979,
-0.04482244700193405,
-0.27980878949165344,
-0.3585522174835205,
0.47821298241615295... |
func (*MemcacheGetRequest) Descriptor() ([]byte, []int) {
return file_memcache_service_proto_rawDescGZIP(), []int{2}
} | [
-0.8401066064834595,
0.465018093585968,
0.34277358651161194,
-0.20015637576580048,
0.35457301139831543,
-0.6670084595680237,
-0.5055065751075745,
0.3892088532447815,
-0.3550911247730255,
-0.2747058868408203,
-0.11131206154823303,
0.6208839416503906,
-0.34527644515037537,
0.2735119163990021... |
func (*ItemTimestamps) Descriptor() ([]byte, []int) {
return file_memcache_service_proto_rawDescGZIP(), []int{3}
} | [
-0.22463376820087433,
0.5424863696098328,
-0.01048031821846962,
-0.4535061717033386,
0.14235477149486542,
-0.34956952929496765,
0.18890510499477386,
-1.1988434791564941,
0.7180063724517822,
-0.24405944347381592,
-0.698945164680481,
-0.12185070663690567,
-0.6563525199890137,
-0.755867958068... |
func (*MemcacheGetResponse) Descriptor() ([]byte, []int) {
return file_memcache_service_proto_rawDescGZIP(), []int{4}
} | [
-0.2101009041070938,
-0.15125413239002228,
0.0710974633693695,
-0.5188285112380981,
0.7055539488792419,
-1.1129231452941895,
-0.25484949350357056,
-0.321593314409256,
-0.28657066822052,
-0.5003966093063354,
-1.0356489419937134,
-0.09644147008657455,
-1.027964472770691,
-0.2352028638124466,... |
func (*MemcacheSetRequest) Descriptor() ([]byte, []int) {
return file_memcache_service_proto_rawDescGZIP(), []int{5}
} | [
-1.2665610313415527,
0.7070269584655762,
0.20900703966617584,
-0.42519840598106384,
-0.19740459322929382,
-0.599158763885498,
-0.4032324254512787,
-0.31631192564964294,
-0.685663640499115,
-0.032869551330804825,
0.018338019028306007,
1.0273202657699585,
-0.0777229517698288,
0.5666254162788... |
func (*MemcacheSetResponse) Descriptor() ([]byte, []int) {
return file_memcache_service_proto_rawDescGZIP(), []int{6}
} | [
-0.2803666293621063,
0.25333330035209656,
-0.1435031145811081,
-0.5276746153831482,
-0.13955914974212646,
-1.2142492532730103,
0.0009119599126279354,
-0.7432128190994263,
-0.3357568085193634,
-0.3397550582885742,
-0.727660596370697,
0.2926764488220215,
-0.5775097012519836,
-0.3051014244556... |
func (*MemcacheDeleteRequest) Descriptor() ([]byte, []int) {
return file_memcache_service_proto_rawDescGZIP(), []int{7}
} | [
-0.6535403728485107,
0.5415255427360535,
0.16363751888275146,
-0.10928276181221008,
0.022787394002079964,
-0.552653431892395,
-0.5355838537216187,
0.2440769374370575,
0.025116823613643646,
-0.5919877886772156,
-0.041209716349840164,
0.8662048578262329,
-0.4887182116508484,
0.77173179388046... |
func (*MemcacheDeleteResponse) Descriptor() ([]byte, []int) {
return file_memcache_service_proto_rawDescGZIP(), []int{8}
} | [
-0.11847154051065445,
0.149044468998909,
-0.24545879662036896,
-0.11806954443454742,
-0.0301495548337698,
-1.1313825845718384,
-0.6137063503265381,
-0.18753857910633087,
0.3388194143772125,
-0.695466935634613,
-0.9111905097961426,
0.0576644092798233,
-1.1053482294082642,
-0.253011673688888... |
func (*MemcacheIncrementRequest) Descriptor() ([]byte, []int) {
return file_memcache_service_proto_rawDescGZIP(), []int{9}
} | [
-0.477170467376709,
0.4289291799068451,
0.223342165350914,
-0.1827235221862793,
-0.5428458452224731,
-0.3520979881286621,
-0.004904638510197401,
-0.3076382279396057,
-0.9555795788764954,
-1.0038626194000244,
0.19251643121242523,
0.06825941801071167,
-0.38782820105552673,
0.9336563944816589... |
func (*MemcacheIncrementResponse) Descriptor() ([]byte, []int) {
return file_memcache_service_proto_rawDescGZIP(), []int{10}
} | [
-0.10552317649126053,
-0.0500619038939476,
-0.38441699743270874,
-0.7027838230133057,
0.06750738620758057,
-0.8154982328414917,
0.2647620141506195,
-0.540877640247345,
-0.48718875646591187,
-0.8490543961524963,
-0.8514687418937683,
-0.6128795146942139,
-1.2647602558135986,
-0.1176191791892... |
func (*MemcacheBatchIncrementRequest) Descriptor() ([]byte, []int) {
return file_memcache_service_proto_rawDescGZIP(), []int{11}
} | [
-0.3108106255531311,
-0.07625661045312881,
0.22442300617694855,
0.19493325054645538,
-0.18244825303554535,
0.3502741754055023,
-1.2621338367462158,
-0.4811801314353943,
-0.6711148619651794,
-1.1445863246917725,
0.04220803081989288,
0.37766921520233154,
-0.4467194080352783,
1.33059275150299... |
func (*MemcacheBatchIncrementResponse) Descriptor() ([]byte, []int) {
return file_memcache_service_proto_rawDescGZIP(), []int{12}
} | [
0.3443591594696045,
-0.3799460232257843,
-0.25777360796928406,
-0.08351520448923111,
0.33260300755500793,
-0.08998605608940125,
-0.6770170331001282,
-0.8978847861289978,
-0.4963090419769287,
-1.0190719366073608,
-0.9624127745628357,
-0.36615025997161865,
-1.2412797212600708,
0.459631741046... |
func (*MemcacheFlushRequest) Descriptor() ([]byte, []int) {
return file_memcache_service_proto_rawDescGZIP(), []int{13}
} | [
-0.4592124819755554,
0.8179773688316345,
0.23617663979530334,
0.08044809848070145,
-0.4743199646472931,
-0.07032460719347,
-0.35479581356048584,
-0.5747087597846985,
-0.3154763877391815,
-0.582740843296051,
-0.0704369843006134,
0.8564052581787109,
-0.33332329988479614,
1.1911180019378662,
... |
func (*MemcacheFlushResponse) Descriptor() ([]byte, []int) {
return file_memcache_service_proto_rawDescGZIP(), []int{14}
} | [
0.001305470592342317,
0.43049120903015137,
-0.16363206505775452,
-0.1259169578552246,
0.039549726992845535,
-0.6242988109588623,
-0.024200446903705597,
-0.7303873896598816,
-0.07797147333621979,
-0.9287124872207642,
-1.1073850393295288,
-0.0020548689644783735,
-0.7943447232246399,
0.095706... |
func (*MemcacheStatsRequest) Descriptor() ([]byte, []int) {
return file_memcache_service_proto_rawDescGZIP(), []int{15}
} | [
-0.3098890483379364,
0.81553715467453,
0.1405034214258194,
-0.36435607075691223,
-0.7052756547927856,
0.13390366733074188,
-0.23006075620651245,
-0.4204919934272766,
-0.18001270294189453,
-1.1817800998687744,
0.07920189201831818,
-0.07914441078901291,
-0.08783155679702759,
0.62319308519363... |
func (*MergedNamespaceStats) Descriptor() ([]byte, []int) {
return file_memcache_service_proto_rawDescGZIP(), []int{16}
} | [
0.7485532164573669,
0.9593538641929626,
0.0939597561955452,
-0.22238226234912872,
-0.6770169734954834,
0.609404444694519,
-0.42374494671821594,
-1.1659889221191406,
0.8830723762512207,
-1.3578121662139893,
-0.10641005635261536,
0.5030800700187683,
-0.5715433955192566,
0.8253329396247864,
... |
func (*MemcacheStatsResponse) Descriptor() ([]byte, []int) {
return file_memcache_service_proto_rawDescGZIP(), []int{17}
} | [
0.6991891860961914,
0.6330864429473877,
-0.3456991910934448,
-0.2968340814113617,
-0.5678238868713379,
-0.3135513663291931,
0.0395142063498497,
-0.5205901861190796,
0.17933809757232666,
-0.6413925886154175,
-0.8894689679145813,
-0.8314927220344543,
-0.8016820549964905,
-0.31257420778274536... |
func (*MemcacheGrabTailRequest) Descriptor() ([]byte, []int) {
return file_memcache_service_proto_rawDescGZIP(), []int{18}
} | [
-0.29270970821380615,
1.1254539489746094,
0.7669256925582886,
-0.7438195943832397,
0.2235473096370697,
0.05949421599507332,
-0.4413377046585083,
-0.17073117196559906,
-0.915727972984314,
-0.12488531321287155,
-0.608371376991272,
0.5247085690498352,
-0.3163881003856659,
0.6024361252784729,
... |
func (*MemcacheGrabTailResponse) Descriptor() ([]byte, []int) {
return file_memcache_service_proto_rawDescGZIP(), []int{19}
} | [
0.2962740957736969,
0.7849361300468445,
0.11213952302932739,
-0.7709173560142517,
0.43644532561302185,
-0.38888585567474365,
-0.2396925389766693,
-0.5525791645050049,
-0.5802435278892517,
0.04499811679124832,
-1.016705870628357,
0.07092063874006271,
-1.0117032527923584,
-0.1555131375789642... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.