text
stringlengths
11
6.3k
embedding
listlengths
768
768
func (o *ReportingTaskEntity) GetPermissions() PermissionsDTO { if o == nil || o.Permissions == nil { var ret PermissionsDTO return ret } return *o.Permissions }
[ 0.10851947963237762, 1.0103302001953125, 0.23965968191623688, 0.6277124285697937, 0.2620086669921875, -0.7167084813117981, 1.141496181488037, -0.34705430269241333, 0.8375399112701416, -1.0017635822296143, 0.4201633036136627, -1.3226398229599, -0.5194318890571594, 0.7707808017730713, 0.30...
func (o *ReportingTaskEntity) GetPermissionsOk() (*PermissionsDTO, bool) { if o == nil || o.Permissions == nil { return nil, false } return o.Permissions, true }
[ -0.03044915199279785, 1.677992343902588, 0.316171795129776, 0.8772364258766174, 0.0844876617193222, -0.8863683342933655, 0.5692828297615051, 0.7133708000183105, 0.2880386710166931, -0.0845942273736, -0.0769374817609787, -1.0722846984863281, 0.18659643828868866, 0.1387491226196289, -0.148...
func (o *ReportingTaskEntity) HasPermissions() bool { if o != nil && o.Permissions != nil { return true } return false }
[ 0.623018741607666, 1.086898922920227, 0.06463620066642761, -0.07189877331256866, 0.6033953428268433, -0.8449482321739197, 0.4401795268058777, 0.6877104640007019, 0.2675657868385315, -0.6788133978843689, 0.17976407706737518, -1.3111114501953125, -0.24970437586307526, 0.37665849924087524, ...
func (o *ReportingTaskEntity) SetPermissions(v PermissionsDTO) { o.Permissions = &v }
[ 0.12323937565088272, 1.2003787755966187, 0.11854635179042816, 0.06146383658051491, -0.4470873177051544, -0.35899412631988525, -0.4613516628742218, -0.6711443066596985, -0.3003183603286743, -0.4883864223957062, 0.621793270111084, 0.6117007732391357, 0.19991189241409302, -0.21499821543693542...
func (o *ReportingTaskEntity) GetBulletins() []BulletinEntity { if o == nil || o.Bulletins == nil { var ret []BulletinEntity return ret } return *o.Bulletins }
[ -0.31913065910339355, 0.0244844201952219, 0.580860435962677, 1.1691206693649292, 0.14030683040618896, 0.18327689170837402, 0.5882525444030762, -1.2963221073150635, 1.279649257659912, -0.23018617928028107, -0.4733380377292633, -0.7671586275100708, -1.2020516395568848, 0.8729159235954285, ...
func (o *ReportingTaskEntity) GetBulletinsOk() (*[]BulletinEntity, bool) { if o == nil || o.Bulletins == nil { return nil, false } return o.Bulletins, true }
[ -0.1819021999835968, -0.3256503641605377, 0.4724082052707672, 0.5871212482452393, -0.4704160690307617, -0.2182924747467041, 0.4475520849227905, -0.6337671279907227, 0.11908546090126038, 0.9976452589035034, -1.748956561088562, 0.17090077698230743, -0.2822401225566864, -0.12163283675909042, ...
func (o *ReportingTaskEntity) HasBulletins() bool { if o != nil && o.Bulletins != nil { return true } return false }
[ 0.3356199860572815, 0.44038137793540955, 0.3602026402950287, 0.041941817849874496, 0.8138203024864197, -0.07313824445009232, 0.008068359456956387, -0.6104026436805725, 0.4514240026473999, -0.301923006772995, -1.1663202047348022, -0.9338527917861938, -0.617150604724884, 0.42536306381225586,...
func (o *ReportingTaskEntity) SetBulletins(v []BulletinEntity) { o.Bulletins = &v }
[ -0.38854992389678955, -0.33398282527923584, 0.14808256924152374, 0.6354749202728271, 0.39400961995124817, 0.8214571475982666, -0.7323834896087646, -1.6848033666610718, 0.5246978998184204, 0.0848391056060791, -0.13282890617847443, 0.3359849452972412, -0.4999426603317261, 0.529242992401123, ...
func (o *ReportingTaskEntity) GetDisconnectedNodeAcknowledged() bool { if o == nil || o.DisconnectedNodeAcknowledged == nil { var ret bool return ret } return *o.DisconnectedNodeAcknowledged }
[ 0.2830757796764374, 0.2822944223880768, 0.7670210599899292, -0.8679700493812561, 0.11827292293310165, 0.6442127823829651, 0.7904220819473267, 0.7869220972061157, 0.23031361401081085, -0.5435841679573059, -0.2606711685657501, 0.14322945475578308, 0.15611152350902557, 0.31136617064476013, ...
func (o *ReportingTaskEntity) GetDisconnectedNodeAcknowledgedOk() (*bool, bool) { if o == nil || o.DisconnectedNodeAcknowledged == nil { return nil, false } return o.DisconnectedNodeAcknowledged, true }
[ 0.3624979555606842, 0.07026571780443192, 0.879795253276825, -0.6898512244224548, 0.16054962575435638, 0.8271154761314392, 0.774374783039093, 1.4773283004760742, -0.0863305851817131, -0.009542068466544151, -0.648056149482727, 0.09685460478067398, 0.8527330160140991, 0.6325024962425232, 0....
func (o *ReportingTaskEntity) HasDisconnectedNodeAcknowledged() bool { if o != nil && o.DisconnectedNodeAcknowledged != nil { return true } return false }
[ 0.6774842143058777, 0.4310593605041504, 0.7130129933357239, -1.3541853427886963, 1.0574790239334106, -0.04273746535181999, 0.4662836194038391, 1.250099539756775, -0.23655793070793152, -0.5920794606208801, -0.25577953457832336, 0.07759150862693787, 1.1000134944915771, 0.9202669262886047, ...
func (o *ReportingTaskEntity) SetDisconnectedNodeAcknowledged(v bool) { o.DisconnectedNodeAcknowledged = &v }
[ 0.42187079787254333, 0.33868470788002014, 0.33660802245140076, -1.2224942445755005, 0.3119688928127289, 0.6450114250183105, 0.5341944694519043, 0.9518715143203735, -0.40890082716941833, -0.04734311252832413, -0.31605157256126404, 0.7585086226463318, 0.8462604880332947, -0.07601757347583771...
func (o *ReportingTaskEntity) GetComponent() ReportingTaskDTO { if o == nil || o.Component == nil { var ret ReportingTaskDTO return ret } return *o.Component }
[ 0.7850199341773987, 0.7783108353614807, 0.29898974299430847, 0.4222548007965088, 0.5927795767784119, 0.13823384046554565, 1.467049241065979, 0.21831826865673065, 0.324882835149765, -0.9495940804481506, 0.16782094538211823, -1.3054497241973877, 0.05423295870423317, 0.42804357409477234, 0....
func (o *ReportingTaskEntity) GetComponentOk() (*ReportingTaskDTO, bool) { if o == nil || o.Component == nil { return nil, false } return o.Component, true }
[ 0.04562157765030861, 0.3784278333187103, 0.5082249641418457, 0.032453350722789764, 0.22629375755786896, -0.11692026257514954, 1.1431553363800049, 1.3879202604293823, -0.32886093854904175, 0.30139872431755066, -0.6885561943054199, -0.9128094911575317, -0.16021187603473663, -0.19984242320060...
func (o *ReportingTaskEntity) HasComponent() bool { if o != nil && o.Component != nil { return true } return false }
[ 0.8157048225402832, 0.2578304708003998, 0.09071610122919083, -0.55564284324646, 0.9004587531089783, 0.3096213638782501, 0.7439830303192139, 1.2206366062164307, 0.037747349590063095, -1.1205798387527466, 0.12351658195257187, -1.2979656457901, 0.5427020192146301, 0.16026021540164948, 0.391...
func (o *ReportingTaskEntity) SetComponent(v ReportingTaskDTO) { o.Component = &v }
[ 0.4468127489089966, 0.6466776728630066, -0.15107883512973785, -0.8155590891838074, 0.675809919834137, 0.6661418676376343, 0.42217177152633667, 0.05528696998953819, -0.5048025846481323, -0.16377602517604828, 0.6176295876502991, -0.08928155153989792, 1.0272297859191895, -0.14536280930042267,...
func (o *ReportingTaskEntity) GetOperatePermissions() PermissionsDTO { if o == nil || o.OperatePermissions == nil { var ret PermissionsDTO return ret } return *o.OperatePermissions }
[ -0.9149826169013977, 0.7464036345481873, 0.7211170196533203, 0.3370596468448639, 0.0752103179693222, -0.1990835964679718, 1.0619714260101318, -0.6874901652336121, 0.3119660019874573, -0.048055145889520645, 0.5273771286010742, -0.9609342217445374, -1.2046175003051758, 0.015874134376645088, ...
func (o *ReportingTaskEntity) GetOperatePermissionsOk() (*PermissionsDTO, bool) { if o == nil || o.OperatePermissions == nil { return nil, false } return o.OperatePermissions, true }
[ -1.0026437044143677, 1.1319451332092285, 0.6813733577728271, 0.6219539642333984, 0.16283324360847473, -0.5286867618560791, 1.0846937894821167, -0.15906020998954773, 0.3240658640861511, 0.6699750423431396, 0.10453221201896667, -0.920753002166748, -0.26383689045906067, -0.15891563892364502, ...
func (o *ReportingTaskEntity) HasOperatePermissions() bool { if o != nil && o.OperatePermissions != nil { return true } return false }
[ -0.6785231828689575, 0.9919739961624146, 0.6931332945823669, -0.19882141053676605, 0.6966615915298462, -0.6897011399269104, 0.5328380465507507, 0.13904279470443726, -0.18068893253803253, 0.6393582224845886, 0.14918115735054016, -1.488806128501892, -0.5464655756950378, 0.4097869396209717, ...
func (o *ReportingTaskEntity) SetOperatePermissions(v PermissionsDTO) { o.OperatePermissions = &v }
[ -1.1172220706939697, 0.8332700133323669, 0.3168282210826874, -0.2952205240726471, -0.08113382011651993, -0.13920733332633972, 0.24231714010238647, -0.5776069760322571, -0.2560245394706726, 0.21000809967517853, 0.5962736010551453, 0.08214636892080307, -0.29449400305747986, -0.45869240164756...
func (o *ReportingTaskEntity) GetStatus() ReportingTaskStatusDTO { if o == nil || o.Status == nil { var ret ReportingTaskStatusDTO return ret } return *o.Status }
[ 0.9746257066726685, 1.035928726196289, 0.1938805878162384, 0.8643355369567871, 0.24051311612129211, -0.10997012257575989, 1.0406010150909424, 0.5058316588401794, 0.4981246590614319, -1.0240272283554077, -0.7314712405204773, -0.5556042194366455, 0.053051870316267014, 0.4781390130519867, -...
func (o *ReportingTaskEntity) GetStatusOk() (*ReportingTaskStatusDTO, bool) { if o == nil || o.Status == nil { return nil, false } return o.Status, true }
[ -0.24256901443004608, 1.2243400812149048, 0.37854820489883423, 0.8704151511192322, 0.31735503673553467, 0.08715161681175232, 0.7422984838485718, 1.4365112781524658, -0.16794835031032562, -0.48631665110588074, -1.3151073455810547, 0.002572924131527543, 0.5770734548568726, 0.1184879466891288...
func (o *ReportingTaskEntity) HasStatus() bool { if o != nil && o.Status != nil { return true } return false }
[ 0.8459928035736084, 0.10742372274398804, 0.1917491853237152, 0.4751083254814148, 0.7187351584434509, 0.010847561992704868, -0.08197122067213058, 1.5211821794509888, 0.3016182780265808, -0.9047181606292725, -1.189647912979126, -0.7146589159965515, 0.3112312853336334, 0.3501467704772949, 0...
func (o *ReportingTaskEntity) SetStatus(v ReportingTaskStatusDTO) { o.Status = &v }
[ 0.6513012647628784, 0.7131551504135132, -0.07778208702802658, 0.20265904068946838, -0.43577367067337036, 0.991253674030304, -0.5081447958946228, 0.32110872864723206, -0.39603152871131897, 0.10431131720542908, -0.5088458061218262, 0.6783120036125183, 0.9664133787155151, -0.05427289009094238...
func (f *Firmata) SnapshotPins() (pins []*Pin, err error) { err = f.WaitLoop(func() error { pins = ClonePins_l(f.Pins) return nil }) return }
[ -0.9746610522270203, 1.022854208946228, 0.2635934352874756, 0.5509774684906006, -0.2406271994113922, 0.6724945306777954, -0.12952092289924622, -0.2865580916404724, 0.8176751732826233, 0.1643911749124527, -0.5648365020751953, 0.49861013889312744, 0.0805586725473404, -0.3245629370212555, -...
func (f *Firmata) SnapshotAnalogPins() (pins []*Pin, err error) { err = f.WaitLoop(func() error { pins = ClonePins_l(f.AnalogPins) return nil }) return }
[ -0.9791300296783447, 0.7088074684143066, 0.28384828567504883, 0.25275492668151855, -0.3243592381477356, 0.5373628735542297, -0.2897137403488159, -0.39520353078842163, 0.8980504870414734, 0.5467168092727661, -0.33948639035224915, 0.6392077803611755, 0.5220578908920288, -0.27550598978996277,...
func (f *Firmata) Reset_l() (err error) { err = f.writer.Reset() if err != nil { return } f.ClosedError_l = nil f.VersionInfo = VersionInfo{} f.DxByName = nil f.Pins = nil f.AnalogPins = nil f.TotalPorts = 0 f.TotalPins = 0 f.TotalAnalogPins = 0 f.PortConfigInputs_l = [16]byte{} f.connectedOnce = sync.O...
[ -0.008852746337652206, 0.146452397108078, 0.3237369954586029, -0.4790423512458801, 0.6633281707763672, -0.6785650253295898, 1.2745922803878784, 0.06304806470870972, -0.22531947493553162, -0.46773937344551086, -0.6561022400856018, -0.30051401257514954, 0.0854375883936882, 0.0060477396473288...
func (f *Firmata) SetPinMode_l(pin byte, mode byte) error { if pin >= f.TotalPins { return fmt.Errorf("SetPinMode pin out of index: %d", pin) } if !f.Pins[pin].SupportMode(mode) { return fmt.Errorf("unsupported mode, pin: %d", pin) } if f.Pins[pin].Mode_l == mode { return nil } err := f.writer.SetPinMode(p...
[ -0.6070454716682434, -0.2529662549495697, 0.4964330792427063, -0.11489101499319077, -0.3764955401420593, 0.4617413580417633, -0.1687333881855011, 0.6882115602493286, 0.4173398017883301, 0.3985089659690857, -0.9340083003044128, -0.6814666390419006, -0.30613550543785095, -0.1433752328157425,...
func (f *Firmata) SetDigitalPinToLow_l(pin byte, low bool) error { if low { return f.SetDigitalPinLow_l(pin) } return f.SetDigitalPinHigh_l(pin) }
[ -0.6671217083930969, 0.6244385242462158, 0.6056943535804749, -0.5197930335998535, -0.39383426308631897, 0.7000489234924316, 0.11269761621952057, -0.5459489226341248, 1.0898329019546509, -0.18291598558425903, -0.5024194121360779, 0.4870914816856384, 0.032783232629299164, 0.23121987283229828...
func (f *Firmata) SetDigitalPinValue_l(pin byte, value byte) error { if pin >= f.TotalPins { return fmt.Errorf("SetDigitalPinValue pin out of index: %d", pin) } if value > 1 { return fmt.Errorf("SetDigitalPinValue pin %d accept 0/1, but got: %d", pin, value) } if f.Pins[pin].Value_l == uint32(value) { return...
[ -0.5413514971733093, 0.34844303131103516, 0.6577746868133545, -0.36079561710357666, -0.6805537939071655, 0.9061793088912964, 0.36007264256477356, 0.0005457564257085323, 0.710673987865448, -0.04832422733306885, -0.47886472940444946, -0.21661508083343506, 0.5654916167259216, 0.21247985959053...
func (f *Firmata) SetDigitalPinHigh_l(pin byte) error { return f.SetDigitalPinValue_l(pin, 1) }
[ -0.6724003553390503, 0.8155822157859802, 0.4486411213874817, 0.8000301718711853, -0.49076607823371887, 1.460319995880127, 0.017180049791932106, 0.1207428053021431, 0.49484091997146606, -0.1115700975060463, -1.063653588294983, 0.3463282883167267, 0.9022552371025085, 0.3569389581680298, 0....
func (f *Firmata) SetDigitalPinLow_l(pin byte) error { return f.SetDigitalPinValue_l(pin, 0) }
[ -0.4808483123779297, 0.7439514994621277, 0.5444050431251526, -0.6716532707214355, -0.49383923411369324, 1.1013014316558838, 0.23341155052185059, -0.44511356949806213, 1.0288714170455933, -0.4896929860115051, -0.7029763460159302, 0.42690831422805786, -0.08359739929437637, 0.3664316236972809...
func (f *Firmata) DigitalWrite_l(port byte, values byte) (pins byte, err error) { if port > f.TotalPorts { return 0, fmt.Errorf("DigitalWrite port out of index: %d", port) } err = f.writer.DigitalWrite(port, values) if err != nil { return 0, err } return f.localDigitalOutputPortValues_l(port, values), nil }
[ -0.7709776163101196, 0.5407257080078125, 0.35915490984916687, -0.40129899978637695, 0.23625394701957703, -0.19410915672779083, 0.3454732894897461, 0.03380172699689865, 0.2348690778017044, -0.11532194912433624, -0.08526981621980667, -0.841630220413208, 0.10145754367113113, -0.06060978397727...
func (f *Firmata) ServoConfig_l(pin byte, max int32, min int32) error { // TODO save to Firmata return f.writer.ServoConfig(pin, max, min) }
[ -0.26077908277511597, -0.057574979960918427, 0.24537600576877594, -0.1433521956205368, -0.8615198731422424, 0.2221844345331192, -0.7639240622520447, 0.48701703548431396, -0.1980770379304886, 0.2999342978000641, -1.6400277614593506, -0.7016215920448303, 0.15138466656208038, 0.27399155497550...
func (f *Firmata) AnalogWrite_l(pin byte, value uint32) (err error) { if pin >= f.TotalPins { return fmt.Errorf("AnalogWrite pin(%d) not found", pin) } if pin > 15 || value >= 0x4000 { err = f.writer.ExtendedAnalogWrite(pin, value) } else { err = f.writer.AnalogWrite(pin, value) } if err == nil { f.Pins[...
[ -0.15695957839488983, -0.29444488883018494, 0.5823027491569519, -0.9571529030799866, -0.11816912889480591, 0.7121919393539429, 0.32861119508743286, 0.12532909214496613, 0.6137352585792542, 0.6804935932159424, -0.21203216910362244, -0.4294540286064148, 0.46319830417633057, -0.17896810173988...
func (f *Firmata) PinStateQuery_l(pin byte) error { return f.writer.PinStateQuery(pin) }
[ -0.6975805163383484, 0.11645840853452682, -0.06200584024190903, -0.198980912566185, -0.8987990021705627, 0.5819395780563354, 0.05000847950577736, -0.020176826044917107, 0.921714723110199, -0.28630906343460083, 0.15836521983146667, -0.7619158625602722, -0.354734867811203, 0.1241115704178810...
func (f *Firmata) PinState_l(pin byte) (uint32, error) { if pin >= f.TotalPins { return 0, fmt.Errorf("PinStateQuery pin(%d) not found", pin) } return f.Pins[pin].State_l, nil }
[ -0.3825492560863495, 0.31643348932266235, 0.335511714220047, -0.8035131096839905, -0.46775150299072266, 0.4282122552394867, 0.5541183948516846, 0.019593989476561546, 1.134738802909851, 0.12330498546361923, -0.29667285084724426, -0.6845865845680237, -0.36963799595832825, -0.410441517829895,...
func (f *Firmata) ReportDigital_l(port byte, enable bool) error { var value byte if enable { value = 1 } return f.writer.ReportDigital(port, value) }
[ 0.028059180825948715, 0.8057054877281189, 0.5114241242408752, -0.29542985558509827, -0.317504346370697, 0.5829867124557495, 0.6083418130874634, 0.4046557545661926, -0.017263351008296013, 0.20374026894569397, -0.22609788179397583, -0.7606873512268066, -0.5940594673156738, 0.7316598296165466...
func (f *Firmata) ReportAnalog_l(pin byte, enable bool) error { var value byte if enable { value = 1 } return f.writer.ReportAnalog(pin, value) }
[ 0.11654473096132278, 0.9744900465011597, 0.39670905470848083, -0.37283000349998474, -0.28708067536354065, 0.6232926845550537, 0.761156439781189, 0.48276835680007935, 0.11419611424207687, 0.7813568115234375, -0.1434997320175171, -0.5735363960266113, -0.01977374590933323, 0.36879825592041016...
func (f *Firmata) I2cWrite_l(address int32, data []byte) error { if len(data) > MaxI2cDataBytes { return fmt.Errorf("MaxI2cDataBytes is %d, but data len is %d", MaxI2cDataBytes, len(data)) } return f.writer.I2cWrite(address, data) }
[ -0.9109586477279663, -0.0929117500782013, 0.34622636437416077, -0.6491703391075134, -0.09126011282205582, -0.527519941329956, 0.037327736616134644, 0.4206259250640869, -0.40214473009109497, -0.13612423837184906, 0.1098724901676178, -0.3236732482910156, 0.22717717289924622, 0.03264342248439...
func (f *Firmata) I2cRead_l(address int32, autoRestartTransmission bool, continuous bool, numBytes byte) error { return f.writer.I2cRead(address, autoRestartTransmission, continuous, numBytes) }
[ -0.8114281892776489, -0.4178113341331482, 0.4798841178417206, -0.17021960020065308, -0.6387279033660889, -0.14691898226737976, -0.30150580406188965, -0.15650184452533722, -0.511295735836029, 0.05640590190887451, 0.1952453851699829, 0.3253115117549896, -0.09125803411006927, -0.8900623917579...
func (f *Firmata) I2cConfig_l(delay uint32) error { return f.writer.I2cConfig(delay) }
[ -1.0333738327026367, -0.14817149937152863, 0.24326704442501068, -0.5383488535881042, -0.5621072053909302, -0.6103411912918091, 0.4794842600822449, 0.5300866365432739, -1.6413570642471313, 0.04357504844665527, -0.5883128643035889, -0.6925325989723206, 0.9717029929161072, 0.33466166257858276...
func (f *Firmata) SamplingInterval_l(ms uint32) error { return f.writer.SamplingInterval(ms) }
[ -0.09187742322683334, -0.3192110061645508, 0.1765621453523636, -0.13253383338451385, -1.2228912115097046, 0.5840693712234497, 0.16773900389671326, -0.08869320154190063, 0.3961476981639862, 0.09299827367067337, -0.3872876763343811, -1.4950505495071411, -0.4049125015735626, 0.142052546143531...
func AfterTest() { httpmock.DeactivateAndReset() }
[ 0.32565683126449585, -0.6214162111282349, 0.18927514553070068, 0.3017958700656891, 0.03288525715470314, 0.7836699485778809, 1.4627246856689453, 0.3154803216457367, 0.7334917187690735, 0.10602652281522751, -0.3499012887477875, 0.013852983713150024, -0.5708760023117065, -1.3258994817733765, ...
func Watch(i Item, conn *redis.Client) error { reply := conn.Cmd("WATCH", i.getWatchKey()) if reply.Err != nil { OnPrimaryFailure() } return reply.Err }
[ -0.4355091452598572, 0.02368994429707527, 0.3502717614173889, 0.4087997078895569, 0.7513610124588013, 0.2642723321914673, -0.3727307915687561, -0.16425323486328125, -0.2282048761844635, -0.022671248763799667, -1.1049962043762207, 0.704698383808136, 0.00963318906724453, -0.5298489928245544,...
func Load(i Item, conn *redis.Client) (Item, bool, error) { reply, err := conn.Cmd("HMGET", i.getValueKey(), i.listKeys()).List() if err != nil { OnPrimaryFailure() return nil, false, err } //copy result to object i, err = i.fromList(reply) if err != nil { //error indicates the list was invalid, and since ...
[ -0.7938880324363708, 0.39566534757614136, 0.7968478202819824, -0.406044065952301, 0.00882766768336296, 0.4018465578556061, -1.0006803274154663, 0.4408338665962219, -0.1061512753367424, 0.7725690603256226, -1.0646153688430786, -0.8329564332962036, -1.0147298574447632, -0.6956901550292969, ...
func LoadRandom(itemtype Item, conn *redis.Client) (Item, bool, error) { //fetch 1 random element reply, err := conn.Cmd("SRANDMEMBER", itemtype.getMembersKey(), 1).List() if err != nil { OnPrimaryFailure() return nil, false, err } if len(reply) == 0 { //no such item exists return nil, false, nil } uui...
[ -0.26602068543434143, 0.5631638765335083, 0.7549730539321899, -0.12415997684001923, -0.3985183835029602, 0.32346391677856445, -0.9882298707962036, -0.08570883423089981, 0.8146104216575623, 0.20498187839984894, -0.6047910451889038, -0.3078954517841339, -1.1546885967254639, -0.04974925518035...
func WatchType(itemtype Item, conn *redis.Client) error { reply := conn.Cmd("WATCH", itemtype.getMembersKey()) if reply.Err != nil { OnPrimaryFailure() } return reply.Err }
[ -0.09638957679271698, 0.34659796953201294, 0.3222809433937073, 0.39931973814964294, 1.1008540391921997, -0.42732223868370056, -0.36793240904808044, -0.6798416972160339, -0.3776891827583313, 0.5227735042572021, -0.8446956276893616, 1.2237111330032349, -0.600407063961029, 0.3807096779346466,...
func WatchMany(itemtype Item, items []*Item, conn *redis.Client) error { //start with a watch on the item set err := WatchType(itemtype, conn) if err != nil { //db failure handled in WatchType return err } var idStrings []string if items == nil { //ids was nil, load all members into a list var err error ...
[ -0.4648714065551758, -0.2850017845630646, 0.8990098237991333, 0.1929442435503006, 0.9132028818130493, -0.46700385212898254, -1.1072934865951538, 0.2276488095521927, -0.4535232484340668, 0.32949215173721313, -0.18767611682415009, 0.4651575982570648, -0.6528255343437195, 0.7907828092575073, ...
func LoadMany(itemtype Item, items []*Item, conn *redis.Client) ([]*Item, []bool, error) { var err error //get ids to load var idStrings []string if items == nil { //ids was nil, load all members into a list idStrings, err = conn.Cmd("SMEMBERS", itemtype.getMembersKey()).List() if err != nil { OnPrimaryFa...
[ -0.6100364923477173, 0.17316249012947083, 1.0496091842651367, 0.25206246972084045, 0.5909268856048584, -0.3854469060897827, -1.346908450126648, 0.21329346299171448, -0.11018502712249756, 0.402439683675766, -0.5489253401756287, -0.4903692901134491, -0.7590115070343018, 0.8470402956008911, ...
func Save(i Item, conn *redis.Client) error { //put the item id into the set of item response := conn.Cmd("SADD", i.getMembersKey(), i.getWatchKey()) if response.Err != nil { OnPrimaryFailure() return response.Err } //save the item entry response = conn.Cmd("HMSET", i.getValueKey(), i.mapKeys()) if response...
[ 0.3507912755012512, 0.5282741189002991, 0.5446494817733765, -0.08691593259572983, 1.1883615255355835, -0.02033901773393154, -0.5185790657997131, -0.4686809778213501, -0.6234274506568909, 0.6841446161270142, -0.9738877415657043, 0.16536951065063477, -0.8387953639030457, 0.11299890279769897,...
func Delete(i Item, conn *redis.Client) error { //remove the item from the set of items response := conn.Cmd("SREM", i.getMembersKey(), i.getWatchKey()) if response.Err != nil { OnPrimaryFailure() return response.Err } //delete the item entry response = conn.Cmd("HDEL", i.getValueKey(), i.listKeys()) if res...
[ 0.9178429245948792, 0.7573789358139038, 0.525218665599823, 0.352718710899353, 1.060783863067627, -0.15660066902637482, -0.5351337790489197, -0.07020807266235352, 0.03750927001237869, 0.42775508761405945, -0.05020783469080925, 0.09694540500640869, -0.867079496383667, -0.06794199347496033, ...
func IsOriginValid(next http.Handler) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { origin := r.Header.Get("Origin") if host != "*" && origin != host { http.Error(w, "Origin not allowed.", http.StatusForbidden) return } next.ServeHTTP(w, r) }) }
[ 0.24076128005981445, -1.5316851139068604, 0.6118662357330322, 0.4131588041782379, -1.1124588251113892, 0.9491214752197266, -0.013810564763844013, 0.698436975479126, -0.3966577649116516, 0.5315467119216919, 1.0276565551757812, 1.0671072006225586, -0.2899537682533264, -0.4890977144241333, ...
func (Category) Fields() []ent.Field { return []ent.Field{ field.UUID("id", uuid.UUID{}).Immutable(), field.String("name"), } }
[ -1.4441149234771729, 0.047689422965049744, 0.03352351859211922, -0.9868191480636597, 0.828841507434845, 0.5873253345489502, -0.968829870223999, -0.214938223361969, 0.11913636326789856, -0.12291450798511505, -0.9106214642524719, -0.7598716616630554, 0.4848528206348419, -0.12012075632810593,...
func (Category) Edges() []ent.Edge { return nil }
[ -0.9613344073295593, -0.04570012912154198, 0.30044546723365784, -0.2820400595664978, 0.9612817168235779, 0.016558660194277763, -0.7957196831703186, 0.2977275550365448, 0.22679072618484497, -0.812890350818634, 0.41449522972106934, 0.047762904316186905, 0.16131319105625153, 0.727783620357513...
func MergeAllLocalizableCSV(config *CrowdinSheetsConfig) ([]byte, error) { mergedCsv := tablib.NewDataset([]string{"English"}) results := make(mergedTranslations) for _, language := range config.Languages { mergedCsv.AppendColumn(language, nil) results[language] = make(map[string]string) } for _, language :...
[ 0.22573018074035645, 0.018565764650702477, 0.6807771921157837, -0.36244404315948486, -0.4275842010974884, 0.2030620276927948, -0.13451969623565674, -0.030918674543499947, -0.9058339595794678, -0.3714323043823242, -0.5589486956596375, -0.4987352192401886, 0.24415425956249237, 0.681680679321...
func WindowsSModeConfigurationPNoRestriction() *WindowsSModeConfiguration { v := WindowsSModeConfigurationVNoRestriction return &v }
[ -0.2879663109779358, 0.1471089869737625, -0.019273461773991585, 0.334353506565094, -1.0404400825500488, -0.09536316245794296, 0.41005459427833557, 0.030567718669772148, 0.4508874714374542, 0.29911184310913086, -0.4227176904678345, -0.5099252462387085, -2.000133752822876, 0.1899558156728744...
func WindowsSModeConfigurationPBlock() *WindowsSModeConfiguration { v := WindowsSModeConfigurationVBlock return &v }
[ -0.17907285690307617, 0.22287976741790771, 0.3382968306541443, 0.9024989604949951, -0.7444584369659424, 0.2164621353149414, 0.11825825273990631, -0.09529612958431244, 0.5264583230018616, 0.1507164090871811, -0.11183931678533554, -0.4895409643650055, -1.6237399578094482, 1.2551084756851196,...
func WindowsSModeConfigurationPUnlock() *WindowsSModeConfiguration { v := WindowsSModeConfigurationVUnlock return &v }
[ -0.204959437251091, 0.41265854239463806, 0.1711336076259613, 0.13951019942760468, -0.40310683846473694, -0.7531830668449402, 0.001608224236406386, 0.38521504402160645, 0.5957934260368347, 0.2217075377702713, -0.13934758305549622, 0.1291026920080185, -0.9581803679466248, 0.494241863489151, ...
func GetParamsCmd(cdc *codec.Codec) *cobra.Command { paramsCmd := &cobra.Command{ Use: "params", Short: "Update the params of various modules", SuggestionsMinimumDistance: 2, } paramsCmd.AddCommand(AccountParamsCmd(cdc)) paramsCmd.AddCommand(BankParamsCmd(cdc)) pa...
[ 0.6481119394302368, -0.3155885934829712, 0.7588834762573242, -0.3428769111633301, 0.5170949101448059, 0.045701608061790466, -0.4006907343864441, -0.07348664849996567, 0.14951564371585846, -0.5434584021568298, 0.6894252300262451, 0.9440785646438599, -0.2738834321498871, 1.1003086566925049, ...
func AccountParamsCmd(cdc *codec.Codec) *cobra.Command { cmd := &cobra.Command{ Use: "account [auth-address]", Short: "Update the params of the account module", Args: cobra.ExactArgs(1), RunE: func(cmd *cobra.Command, args []string) error { mapInput := make(map[string]string) updates := account.Param...
[ -0.11447084695100784, -1.072729468345642, 0.8020182847976685, -0.2053220123052597, -0.3160175085067749, 0.3167240023612976, 0.5303977727890015, 0.5629431009292603, -0.13335798680782318, 0.338156133890152, 0.4216051995754242, 1.3085992336273193, 0.28734681010246277, 0.3665103018283844, 0....
func BankParamsCmd(cdc *codec.Codec) *cobra.Command { cmd := &cobra.Command{ Use: "bank [auth-address]", Short: "Update the params of the bank module", Args: cobra.ExactArgs(1), RunE: func(cmd *cobra.Command, args []string) error { mapInput := make(map[string]string) updates := bank.Params{} updat...
[ 0.009056396782398224, -0.791691243648529, 0.8480424880981445, -0.15964800119400024, -0.13620899617671967, 0.7166627049446106, 0.1840328574180603, 0.4565800428390503, -0.6823031902313232, 0.28898176550865173, 0.22233229875564575, 1.1534814834594727, -0.38782697916030884, 0.7789360284805298,...
func ClaimParamsCmd(cdc *codec.Codec) *cobra.Command { cmd := &cobra.Command{ Use: "claim [auth-address]", Short: "Update the params of the claim module", Args: cobra.ExactArgs(1), RunE: func(cmd *cobra.Command, args []string) error { mapInput := make(map[string]string) updates := claim.Params{} u...
[ 0.34447991847991943, -1.0459874868392944, 0.900566816329956, -0.40237125754356384, -0.32357287406921387, 0.3077665865421295, -0.1868617683649063, 0.6083223819732666, 0.04722556099295616, 0.14940515160560608, 0.17427371442317963, 1.1080495119094849, 0.0909084752202034, 0.5325543880462646, ...
func CommunityParamsCmd(cdc *codec.Codec) *cobra.Command { cmd := &cobra.Command{ Use: "community [auth-address]", Short: "Update the params of the community module", Args: cobra.ExactArgs(1), RunE: func(cmd *cobra.Command, args []string) error { mapInput := make(map[string]string) updates := communi...
[ 0.10801173746585846, -1.1384981870651245, 0.7453923225402832, -0.21953748166561127, -0.3669797480106354, 0.37035560607910156, 0.07264342159032822, 0.5086861252784729, -0.46570339798927307, 0.19187718629837036, 0.2649027109146118, 0.3559955954551697, -0.17280612885951996, 0.6247907280921936...
func SlashingParamsCmd(cdc *codec.Codec) *cobra.Command { cmd := &cobra.Command{ Use: "slashing [auth-address]", Short: "Update the params of the slashing module", Args: cobra.ExactArgs(1), RunE: func(cmd *cobra.Command, args []string) error { mapInput := make(map[string]string) updates := slashing.P...
[ 0.03678003326058388, -0.6953970193862915, 0.7977728247642517, -0.2014983892440796, -0.37157362699508667, 0.5229206085205078, 0.1870071291923523, 0.5574358701705933, -0.6650453209877014, 0.20024451613426208, -0.030939551070332527, 0.6804965138435364, -0.2024904042482376, 0.4008849263191223,...
func StakingParamsCmd(cdc *codec.Codec) *cobra.Command { cmd := &cobra.Command{ Use: "staking [auth-address]", Short: "Update the params of the staking module", Args: cobra.ExactArgs(1), RunE: func(cmd *cobra.Command, args []string) error { mapInput := make(map[string]string) updates := staking.Param...
[ -0.047774236649274826, -0.6602073907852173, 0.7998644709587097, -0.15673300623893738, -0.7993432879447937, 0.6495814323425293, 0.21782314777374268, 0.5506114363670349, -0.7341884970664978, 0.7624388933181763, 0.08572284877300262, 0.6539083123207092, -0.31825122237205505, 0.5898582935333252...
func mapParams(params interface{}, fn func(param string, index int, field reflect.StructField)) { rParams := reflect.TypeOf(params) for i := 0; i < rParams.NumField(); i++ { field := rParams.Field(i) param := field.Tag.Get("json") if !strings.HasSuffix(param, "_admins") { fn(param, i, field) } } }
[ -1.1109321117401123, 0.42593881487846375, 0.5682351589202881, -0.6531153917312622, 0.1417085826396942, -0.02165139466524124, -0.3633440136909485, -0.5598801970481873, -0.331036776304245, 0.4902380704879761, -0.027049943804740906, 0.6318349838256836, 0.02577079087495804, 0.28325745463371277...
func makeCosmosObject(cosmosType string, value string) reflect.Value { if cosmosType == "types.Dec" { dec := sdk.MustNewDecFromStr(value) return reflect.ValueOf(dec) } if cosmosType == "types.Coin" { coin, err := sdk.ParseCoin(value) if err != nil { panic(err) } return reflect.ValueOf(coin) } if c...
[ 0.08446507900953293, -0.1805170476436615, 0.5532708168029785, -0.1966041475534439, -0.7396395206451416, 0.023758690804243088, 0.08149948716163635, -0.8557894229888916, -0.7878814339637756, -0.49247777462005615, -0.35983505845069885, 0.32151806354522705, 0.24795092642307281, -0.549308419227...
func DeployEventExample(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *EventExample, error) { parsed, err := abi.JSON(strings.NewReader(EventExampleABI)) if err != nil { return common.Address{}, nil, nil, err } address, tx, contract, err := bind.DeployContract(auth, ...
[ -0.025177491828799248, -0.7267451286315918, 0.9128303527832031, -0.3836008310317993, -0.4203101694583893, -0.27586254477500916, 0.007380358874797821, 0.11825400590896606, 0.5157408118247986, 1.4355639219284058, -0.7475927472114563, 0.13613808155059814, -0.4582228362560272, 0.16683793067932...
func NewEventExample(address common.Address, backend bind.ContractBackend) (*EventExample, error) { contract, err := bindEventExample(address, backend, backend, backend) if err != nil { return nil, err } return &EventExample{EventExampleCaller: EventExampleCaller{contract: contract}, EventExampleTransactor: Event...
[ 0.3885509967803955, -0.3224763572216034, 0.5127734541893005, 0.1546996682882309, -0.8117223978042603, -0.1714257299900055, -0.39090782403945923, 0.380511999130249, 0.5377855896949768, 1.6398601531982422, -1.3097426891326904, 0.17678166925907135, -0.44809380173683167, 0.443693071603775, 0...
func NewEventExampleCaller(address common.Address, caller bind.ContractCaller) (*EventExampleCaller, error) { contract, err := bindEventExample(address, caller, nil, nil) if err != nil { return nil, err } return &EventExampleCaller{contract: contract}, nil }
[ -0.16745758056640625, -0.12235444784164429, 0.3379984498023987, -0.08764415979385376, -0.9006066918373108, 0.39026716351509094, -0.5250879526138306, 0.18802450597286224, 0.8418028950691223, 1.121842622756958, -1.0993471145629883, -0.07053504884243011, -0.5180030465126038, 0.848870277404785...
func NewEventExampleTransactor(address common.Address, transactor bind.ContractTransactor) (*EventExampleTransactor, error) { contract, err := bindEventExample(address, nil, transactor, nil) if err != nil { return nil, err } return &EventExampleTransactor{contract: contract}, nil }
[ 0.11422291398048401, -0.2508048117160797, 0.5276713371276855, -0.7634187936782837, -1.5246223211288452, -0.22540819644927979, -0.1604628562927246, 0.5162079930305481, 0.7243748903274536, 1.5130754709243774, -1.870384931564331, -0.014702314510941505, 0.03816670924425125, 0.30810415744781494...
func NewEventExampleFilterer(address common.Address, filterer bind.ContractFilterer) (*EventExampleFilterer, error) { contract, err := bindEventExample(address, nil, nil, filterer) if err != nil { return nil, err } return &EventExampleFilterer{contract: contract}, nil }
[ -0.22700124979019165, -0.386380136013031, 0.40376076102256775, -0.011258619837462902, -1.1857373714447021, -0.13326683640480042, -0.4314969480037689, 0.4843709170818329, 0.13388989865779877, 1.2998183965682983, -0.9708462953567505, 0.29200422763824463, -0.5518531203269958, 0.88271176815032...
func bindEventExample(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { parsed, err := abi.JSON(strings.NewReader(EventExampleABI)) if err != nil { return nil, err } return bind.NewBoundContract(address, parsed, c...
[ -0.3778240978717804, -0.9026036262512207, 0.7456852197647095, -0.06697110086679459, -0.7596656084060669, -0.2034328430891037, -0.673532247543335, 0.215586319565773, 0.5841480493545532, 0.6768634915351868, -0.5811479091644287, 0.6009221076965332, -0.17090129852294922, 0.25966891646385193, ...
func (_EventExample *EventExampleRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { return _EventExample.Contract.EventExampleCaller.contract.Call(opts, result, method, params...) }
[ -0.8236163854598999, 0.5975846648216248, 0.6969034075737, 0.6154271960258484, -0.9383283853530884, 0.27568307518959045, -0.2663425803184509, -0.4443545341491699, 0.5727449655532837, 0.6527416706085205, -0.29540908336639404, 0.24332623183727264, -0.2488568127155304, 0.3353179395198822, -0...
func (_EventExample *EventExampleRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { return _EventExample.Contract.EventExampleTransactor.contract.Transfer(opts) }
[ -0.3289736807346344, -0.008910010568797588, 0.5626091361045837, 0.3719499409198761, -0.6680355668067932, 0.2496298998594284, 0.43580618500709534, -0.3470710217952728, 1.124022126197815, 0.00375171797350049, -0.7101439833641052, 0.4938063323497772, 0.12938058376312256, -0.20433519780635834,...
func (_EventExample *EventExampleRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { return _EventExample.Contract.EventExampleTransactor.contract.Transact(opts, method, params...) }
[ -0.3861968219280243, 0.2131153643131256, 0.674302339553833, -0.35101059079170227, -0.1766243875026703, -0.17828382551670074, 0.8708347082138062, -0.34371712803840637, 0.5699328184127808, 0.31507545709609985, -0.6645433306694031, 0.45957306027412415, 0.39805108308792114, 0.12332789599895477...
func (_EventExample *EventExampleCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { return _EventExample.Contract.contract.Call(opts, result, method, params...) }
[ -1.0253665447235107, 0.7312624454498291, 0.6881387233734131, 0.7579603791236877, -0.7878072261810303, 0.29051023721694946, -0.23953849077224731, -0.44558843970298767, 0.44462135434150696, 0.4589199125766754, -0.23726089298725128, 0.03179742023348808, -0.37544456124305725, 0.210657268762588...
func (_EventExample *EventExampleTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { return _EventExample.Contract.contract.Transfer(opts) }
[ -0.30589547753334045, 0.09808855503797531, 0.4461044669151306, 0.6615765690803528, -0.4943484961986542, 0.22889350354671478, 0.5220010280609131, -0.24625356495380402, 1.084128975868225, -0.32861146330833435, -0.571262538433075, 0.3349301517009735, -0.05855574458837509, -0.3358200490474701,...
func (_EventExample *EventExampleTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { return _EventExample.Contract.contract.Transact(opts, method, params...) }
[ -0.46800291538238525, 0.33707115054130554, 0.5992792844772339, -0.23613251745700836, -0.046443380415439606, -0.1942092925310135, 0.9598872065544128, -0.2568308413028717, 0.5713995695114136, 0.0523548424243927, -0.46781983971595764, 0.3942539393901825, 0.22221781313419342, -0.08711893856525...
func (_EventExample *EventExampleTransactor) StoreData(opts *bind.TransactOpts, _data1 *big.Int, _data2 *big.Int) (*types.Transaction, error) { return _EventExample.contract.Transact(opts, "storeData", _data1, _data2) }
[ -1.0776886940002441, 0.8281991481781006, 0.6013726592063904, -0.2533540427684784, -0.7298638820648193, 0.23844899237155914, -0.3401859998703003, -0.6377559304237366, 0.046450819820165634, -0.13952936232089996, -1.067799687385559, 0.7513105273246765, 0.2601463794708252, -0.21325626969337463...
func (_EventExample *EventExampleSession) StoreData(_data1 *big.Int, _data2 *big.Int) (*types.Transaction, error) { return _EventExample.Contract.StoreData(&_EventExample.TransactOpts, _data1, _data2) }
[ -0.8108516335487366, 0.8257813453674316, 0.6367577314376831, -0.3890414535999298, -0.7093133330345154, -0.003079226240515709, -0.43653738498687744, -0.7995858788490295, 0.21315635740756989, -0.10002132505178452, -1.0632262229919434, 0.4816041886806488, 0.22828735411167145, -0.4791622161865...
func (_EventExample *EventExampleTransactorSession) StoreData(_data1 *big.Int, _data2 *big.Int) (*types.Transaction, error) { return _EventExample.Contract.StoreData(&_EventExample.TransactOpts, _data1, _data2) }
[ -0.7469639182090759, 0.7684314846992493, 0.6199772357940674, -0.39024004340171814, -0.6870819926261902, -0.0914110541343689, -0.3385847210884094, -0.8314796686172485, 0.21314135193824768, -0.1183992549777031, -1.079203486442566, 0.4090447425842285, 0.20050184428691864, -0.44936665892601013...
func (it *EventExampleDataStoredIterator) Close() error { it.sub.Unsubscribe() return nil }
[ 0.5739718079566956, 0.17927946150302887, 0.18468806147575378, -0.3768557012081146, -1.1685594320297241, 0.7891091108322144, -0.22891581058502197, 0.0598096027970314, -0.44909632205963135, -0.2317523956298828, 0.16630132496356964, 0.6445633172988892, 0.010840756818652153, 0.8860072493553162...
func (_EventExample *EventExampleFilterer) FilterDataStored(opts *bind.FilterOpts, data2 []*big.Int) (*EventExampleDataStoredIterator, error) { var data2Rule []interface{} for _, data2Item := range data2 { data2Rule = append(data2Rule, data2Item) } logs, sub, err := _EventExample.contract.FilterLogs(opts, "Data...
[ 0.16254954040050507, -0.0429934523999691, 0.5237396955490112, -0.41995400190353394, -1.2104915380477905, 0.5125619769096375, -0.1616651564836502, -0.06328140944242477, 0.09631241112947464, 0.025805668905377388, -0.22282592952251434, 1.549424171447754, 0.3072194755077362, 0.2167277932167053...
func (_EventExample *EventExampleFilterer) WatchDataStored(opts *bind.WatchOpts, sink chan<- *EventExampleDataStored, data2 []*big.Int) (event.Subscription, error) { var data2Rule []interface{} for _, data2Item := range data2 { data2Rule = append(data2Rule, data2Item) } logs, sub, err := _EventExample.contract....
[ 0.7446102499961853, -0.3506523370742798, 0.7246325016021729, -0.5682964324951172, -0.586155891418457, 0.04995006322860718, 0.17702090740203857, -0.3220953345298767, 0.04003838822245598, -0.437621533870697, -0.6260086297988892, 1.7087711095809937, 1.0319651365280151, 0.18248920142650604, ...
func (_EventExample *EventExampleFilterer) ParseDataStored(log types.Log) (*EventExampleDataStored, error) { event := new(EventExampleDataStored) if err := _EventExample.contract.UnpackLog(event, "DataStored", log); err != nil { return nil, err } event.Raw = log return event, nil }
[ 0.6310087442398071, 0.5277933478355408, 0.5996984839439392, -0.9363532662391663, -0.9368704557418823, -0.24048607051372528, 0.49524930119514465, -0.25567886233329773, 1.170515775680542, -0.48562362790107727, -1.2667204141616821, 0.35977408289909363, 1.0677376985549927, -0.3876451253890991,...
func (s *StatefulSet) Render(ctx context.Context, ns string, o interface{}) error { raw, ok := o.(*unstructured.Unstructured) if !ok { return fmt.Errorf("Expected Unstructured, but got %T", o) } var sts appsv1.StatefulSet err := runtime.DefaultUnstructuredConverter.FromUnstructured(raw.Object, &sts) if err != n...
[ -0.5063897371292114, 0.3465403914451599, 0.7700668573379517, -0.1552356332540512, -0.2951059639453888, -0.21297116577625275, -0.2948366403579712, -0.884086549282074, 0.16636714339256287, 0.6578424572944641, 0.2605973184108734, 0.05925319716334343, -0.14193101227283478, 0.14539949595928192,...
func (a *ARC) Command(ctx context.Context, name string, arg ...string) *testexec.Cmd { // adb exec-out is like adb shell, but skips CR/LF conversion. // Unfortunately, adb exec-out always passes the command line to /bin/sh, so // we need to escape arguments. shell := "exec " + shutil.EscapeSlice(append([]string{nam...
[ 0.3888097405433655, -0.40990614891052246, 0.5500319004058838, -0.3273009955883026, 0.09816735982894897, 0.307802677154541, -0.6877766251564026, -0.5552451014518738, 0.5365515351295471, -0.34755271673202515, 0.5711462497711182, 0.9017598032951355, 0.2522807717323303, 0.11513091623783112, ...
func BootstrapCommand(ctx context.Context, name string, arg ...string) *testexec.Cmd { // Refuse to find an executable with $PATH. // android-sh inserts /vendor/bin before /system/bin in $PATH, and /vendor/bin // contains very similar executables as /system/bin on some boards (e.g. nocturne). // In particular, /ven...
[ 0.8833276629447937, -0.11248575150966644, 0.961018443107605, -0.27405795454978943, -0.07591152936220169, -0.1417459100484848, 0.05422867089509964, -0.8648908734321594, 0.4799697995185852, 0.15213549137115479, 0.35553252696990967, -0.04366465285420418, 0.6434713006019592, 0.5132814049720764...
func (a *ARC) SendIntentCommand(ctx context.Context, action, data string) *testexec.Cmd { args := []string{"start", "-a", action} if len(data) > 0 { args = append(args, "-d", data) } return a.Command(ctx, "am", args...) }
[ 0.03584327548742294, -0.9900723695755005, 0.6567705869674683, -0.6999009847640991, 0.4577297568321228, 0.24772702157497406, 0.7952802181243896, -1.021415114402771, 1.1103601455688477, -0.24246659874916077, 0.4656994938850403, 1.5631370544433594, -0.8586583137512207, -0.32611632347106934, ...
func Timeout(t time.Duration) Option { return func(o *Options) { o.Timeout = t } }
[ 0.8368653655052185, 0.7563989758491516, 0.3904015123844147, 0.009719712659716606, 0.7291950583457947, 0.8222098350524902, 0.6691315770149231, 0.15166647732257843, 0.9142182469367981, 0.49139177799224854, -0.14100204408168793, 0.47007986903190613, 1.0497711896896362, -0.5760408639907837, ...
func Addrs(addrs ...string) Option { return func(o *Options) { o.Addrs = addrs } }
[ -0.2426544725894928, 0.7696085572242737, 0.4387872815132141, -0.07997342944145203, 0.3656906187534332, 0.3803118169307709, -0.5307848453521729, -0.48483341932296753, 1.1946911811828613, -0.4202597141265869, 0.3453720211982727, 0.2704011797904968, 0.1234302818775177, -0.2856426239013672, ...
func WithStream() DialOption { return func(o *DialOptions) { o.Stream = true } }
[ 0.5456936359405518, 0.28184622526168823, 0.30521678924560547, 0.21609659492969513, -0.5441460609436035, 0.5017672181129456, 0.35499659180641174, -0.7185770869255066, 0.9285246133804321, -1.259391188621521, -0.023889806121587753, -0.24650342762470245, 0.6496188044548035, 0.3315032720565796,...
func WithTimeout(d time.Duration) DialOption { return func(o *DialOptions) { o.Timeout = d } }
[ 0.4738906919956207, 0.3590700924396515, 0.21192941069602966, -0.1975877434015274, -0.3900739550590515, 0.1892530620098114, 0.2774154543876648, -0.27330875396728516, 1.3838409185409546, 0.20769242942333221, -0.3799111247062683, -0.07042509317398071, 1.6029719114303589, 0.17033609747886658, ...
func NewMetadataAPI(databaseService service.DatabaseService, replicaStateMachine replica.StatusStateMachine, nodeStateMachine broker.NodeStateMachine, executorFactory parallel.ExecutorFactory, jobManager parallel.JobManager, ) *MetadataAPI { return &MetadataAPI{ databaseService: databaseService, replicaState...
[ 0.11235441267490387, -0.4700935482978821, 0.21568121016025543, 0.09678442031145096, -0.4883953630924225, 0.2946629822254181, -0.6710764169692993, 0.4980784058570862, -0.20636045932769775, 0.5005494356155396, -0.5362966060638428, 1.0270408391952515, -0.3712014853954315, 0.7655811309814453, ...
func (d *MetadataAPI) Handle(w http.ResponseWriter, r *http.Request) { ql, err := api.GetParamsFromRequest("sql", r, "", true) if err != nil { api.Error(w, err) return } metaQuery, err := parseSQLFunc(ql) if err != nil { api.Error(w, err) return } switch metaQuery.Type { case stmt.Database: d.showData...
[ -0.28980553150177, 0.6944895386695862, 0.7908164262771606, 0.24512389302253723, 0.5189195871353149, 0.05914013460278511, -0.3212670683860779, -0.6713162064552307, -0.5098660588264465, 0.157541885972023, 0.7425186038017273, 0.6450495719909668, -0.11592860519886017, 0.46686431765556335, -0...
func (d *MetadataAPI) showDatabases(w http.ResponseWriter) { databases, err := d.databaseService.List() if err != nil { api.Error(w, err) return } var databaseNames []string for _, db := range databases { databaseNames = append(databaseNames, db.Name) } api.OK(w, &models.Metadata{ Type: stmt.Database.S...
[ -0.34001845121383667, 1.3787163496017456, 0.17590880393981934, -0.526528537273407, -0.267947256565094, 0.35655802488327026, 0.06343279033899307, 0.38817697763442993, 0.08533311635255814, 1.2041189670562744, -0.1778281182050705, 1.2610933780670166, -0.4415111839771271, 0.7591625452041626, ...
func (d *MetadataAPI) suggest(w http.ResponseWriter, database string, request *stmt.Metadata) { //TODO add timeout cfg ctx, cancel := context.WithTimeout(context.TODO(), time.Minute) defer cancel() exec := d.executorFactory.NewMetadataBrokerExecutor(ctx, database, request, d.replicaStateMachine, d.nodeStateMachi...
[ -1.289049506187439, 0.37955912947654724, 0.643373429775238, -0.2255784124135971, -0.04783231392502785, -0.2608494460582733, -0.23422180116176605, -0.6522260904312134, -1.0689750909805298, 0.8977307081222534, -0.019131658598780632, 0.7105019092559814, -0.2771553099155426, 0.1968984007835388...
func parseSQL(ql string) (*stmt.Metadata, error) { query, err := sql.Parse(ql) if err != nil { return nil, err } metaQuery, ok := query.(*stmt.Metadata) if !ok { return nil, errWrongQueryStmt } return metaQuery, nil }
[ 0.5682188868522644, -0.4932471513748169, 0.37772467732429504, 0.4431142508983612, -1.3086596727371216, -0.47560736536979675, -1.1340138912200928, -0.18191523849964142, 0.5791332721710205, 0.324339896440506, 0.4521327316761017, 0.21148593723773956, 0.81123286485672, -0.020611323416233063, ...