text
stringlengths
11
6.3k
embedding
listlengths
768
768
func (e *Expect) DELETE(path string, pathargs ...interface{}) *Request { return e.Request(http.MethodDelete, path, pathargs...) }
[ 0.4326973557472229, -0.0819224864244461, 0.4182386100292206, 0.00898823793977499, 0.5573270916938782, 0.11325441300868988, 0.06109955906867981, 0.03476216271519661, 0.08990516513586044, -0.16213038563728333, 1.080185890197754, 0.9501293897628784, -0.38857316970825195, 0.12665681540966034, ...
func (e *Expect) Value(value interface{}) *Value { opChain := e.chain.enter("Value()") defer opChain.leave() return newValue(opChain, value) }
[ -0.016242273151874542, 0.6708616614341736, 0.33922335505485535, 0.7108214497566223, 0.11900386214256287, 0.4540000557899475, 0.32628747820854187, -1.2210475206375122, 1.0866209268569946, -0.10939113050699234, 0.5558002591133118, 0.8298599720001221, -0.6858134865760803, 0.6237938404083252, ...
func (e *Expect) Object(value map[string]interface{}) *Object { opChain := e.chain.enter("Object()") defer opChain.leave() return newObject(opChain, value) }
[ -0.5271212458610535, -0.26974883675575256, 0.34219831228256226, -0.030663777142763138, -0.3961840569972992, 1.1320418119430542, 0.5033490657806396, -0.7484160661697388, 0.37222203612327576, -0.456771582365036, 0.011471405625343323, 0.6946108341217041, -0.11726552993059158, 0.01927610114216...
func (e *Expect) Array(value []interface{}) *Array { opChain := e.chain.enter("Array()") defer opChain.leave() return newArray(opChain, value) }
[ -0.185725599527359, -0.4035276472568512, 0.41566765308380127, 0.45723310112953186, 0.5528184175491333, 0.3562711179256439, 0.06653980910778046, -0.8229527473449707, 0.2855187952518463, -0.2056964486837387, 0.34713995456695557, 1.1310714483261108, -1.0009671449661255, 1.0350708961486816, ...
func (e *Expect) String(value string) *String { opChain := e.chain.enter("String()") defer opChain.leave() return newString(opChain, value) }
[ 0.11300382018089294, -0.026338811963796616, 0.16815617680549622, -0.21347688138484955, -0.6017614006996155, 0.4338991343975067, 0.7026786208152771, -1.4104349613189697, 0.6239578723907471, -0.26380568742752075, 0.4678288400173187, 0.9381315112113953, -0.786159873008728, -0.0359264202415943...
func (e *Expect) Number(value float64) *Number { opChain := e.chain.enter("Number()") defer opChain.leave() return newNumber(opChain, value) }
[ -0.13927341997623444, 0.8382482528686523, 0.3104831576347351, 1.0117607116699219, 0.1846613734960556, -0.11820141226053238, 0.6934230923652649, -0.5255556702613831, 0.9544291496276855, -0.9369539618492126, 0.09105619043111801, 0.7580429911613464, -0.1780676692724228, 0.6963540315628052, ...
func (e *Expect) Boolean(value bool) *Boolean { opChain := e.chain.enter("Boolean()") defer opChain.leave() return newBoolean(opChain, value) }
[ -0.08275598287582397, 0.7666066288948059, 0.2754266560077667, 0.25295376777648926, 0.02693096548318863, 0.00006386946188285947, 0.5211967825889587, 0.3208039402961731, 0.14504379034042358, -0.7169443368911743, 0.21793043613433838, 0.2740746736526489, -1.059753656387329, 0.07028613984584808...
func (m *Heartbeat) GetVersion() int { if m.HasExtensionFieldValues { return 2 } return 1 }
[ 0.16470849514007568, 1.325013279914856, 0.5470923185348511, 1.9378540515899658, 0.5918120741844177, 0.20775245130062103, 0.8470191359519958, 0.32891419529914856, -0.6285020112991333, 0.04149887338280678, -0.6706897020339966, -0.44755464792251587, -0.9018838405609131, 0.725813627243042, 0...
func (m *Heartbeat) GetDialect() string { return "common" }
[ 0.9809409976005554, 0.16725735366344452, 0.7164453268051147, 0.7490730285644531, 0.45996564626693726, 0.9661554098129272, -0.12094767391681671, -0.7770613431930542, 0.3568118214607239, -0.13555119931697845, 0.9319839477539062, -0.23678523302078247, -0.4493025839328766, 0.4809037148952484, ...
func (m *Heartbeat) GetMessageName() string { return "Heartbeat" }
[ 0.01583138480782509, 0.23287330567836761, 0.6636462807655334, 1.211416482925415, -0.24714937806129456, 0.6802659034729004, -0.6543333530426025, -0.23806658387184143, 0.2960071563720703, 0.7005925178527832, 0.23209649324417114, -0.343323677778244, -0.9687792658805847, 1.0624395608901978, ...
func (m *Heartbeat) GetID() uint32 { return 0 }
[ 1.0243061780929565, 0.23337407410144806, 0.7167075276374817, 1.424529790878296, 0.8885782361030579, 1.588218331336975, 0.6078470349311829, -0.3730495274066925, 1.1035491228103638, -0.634611964225769, -0.3252638876438141, -0.04244038462638855, -1.9399354457855225, 1.239366888999939, 0.201...
func (m *Heartbeat) HasExtensionFields() bool { return false }
[ 0.7835639119148254, 0.9159674644470215, 0.6102131605148315, 0.4594169855117798, 0.040956009179353714, 0.0004689160268753767, -0.14938271045684814, 0.4606590270996094, 0.5414608120918274, 0.15055568516254425, -1.1775363683700562, -0.6685840487480164, -1.5327194929122925, 0.6733927130699158,...
func (m *Heartbeat) Read(frame mavlink2.Frame) (err error) { version := frame.GetVersion() // Ensure only Version 1 or Version 2 were specified if version != 1 && version != 2 { err = mavlink2.ErrUnsupportedVersion return } // Don't attempt to Read V2 messages from V1 frames if m.GetID() > 255 && version < ...
[ -0.21437396109104156, -0.13923613727092743, 0.6993255615234375, 0.5310309529304504, -0.3267676830291748, 0.3324322998523712, -0.29953938722610474, -0.16607072949409485, 0.1353345364332199, -0.22022491693496704, 0.15634270012378693, 0.9377875924110413, -0.9115738868713379, 0.315588474273681...
func (m *Heartbeat) Write(version int) (output []byte, err error) { var buffer bytes.Buffer // Ensure only Version 1 or Version 2 were specified if version != 1 && version != 2 { err = mavlink2.ErrUnsupportedVersion return } // Don't attempt to Write V2 messages to V1 bodies if m.GetID() > 255 && version < ...
[ -0.3983234763145447, -0.10975644737482071, 0.7525838017463684, 0.47612038254737854, 0.11797227710485458, 0.037940192967653275, 0.22072629630565643, -0.118613600730896, 0.0727362409234047, 0.6724042296409607, -0.5036932229995728, 0.43838176131248474, -1.1117994785308838, 0.6601799130439758,...
func Version() string { b, err := exec.Command("go", "version").CombinedOutput() if err != nil { panic(err.Error()) } token := strings.Split(string(b), " ") if strings.HasPrefix(token[2], "go") { return token[2] } if !strings.HasPrefix(token[2], "devel") { panic("Can not detect go version") } d := strin...
[ -0.43503186106681824, -0.15559513866901398, 0.8365065455436707, 0.5410284399986267, 0.31560254096984863, 0.5335859656333923, 0.29794296622276306, -0.629437267780304, -0.6766089797019958, 0.7934868931770325, -0.20220807194709778, 0.2643105983734131, -0.8487688899040222, 0.3441365957260132, ...
func WithMultiStatsHandler(handlers ...stats.Handler) grpc.DialOption { mh := &multiStatsHandler{} for _, h := range handlers { if h == nil { continue } mh.delegates = append(mh.delegates, h) } switch len(mh.delegates) { case 0: // Effectively, this unsets the dial option for the stats handler. return...
[ 0.7960363030433655, -0.0637686550617218, 0.4480043649673462, 0.26466190814971924, -0.6494694948196411, 0.6732033491134644, -0.2136201113462448, -0.9804805517196655, 0.7205950617790222, -0.8106707334518433, 0.1686486452817917, -0.7260629534721375, 0.4107562005519867, 0.8879752159118652, -...
func separatedMessages(values ...interface{}) (string, []interface{}) { if len(values)%2 == 0 { return ``, values } return values[0].(string), values[1:] }
[ -0.5833225846290588, -0.15669645369052887, 0.65394127368927, -0.032009996473789215, 0.685748279094696, -0.14418388903141022, 0.2093840390443802, -1.1121808290481567, 0.048090118914842606, -0.7846131324768066, -0.3255437910556793, 0.25061488151550293, -1.042955994606018, 0.944409191608429, ...
func zapLogger(config *Configuration) (*zap.SugaredLogger, writers) { encoder := zapEncoders[config.Formatter] current := config.Default writers := make(writers, len(current)) cores := make([]zapcore.Core, len(current)) for i := range current { writers[current[i]] = channelMap[current[i]](config) cores[i] = za...
[ 0.10942232608795166, -0.3250635862350464, 0.7572087049484253, -0.35654112696647644, -0.4096250534057617, -0.3555099368095398, 0.07310932874679565, 0.03524888679385185, 0.114195317029953, 0.3738066852092743, -0.2858840823173523, -0.4055147171020508, -1.0961910486221313, 0.7877820730209351, ...
func (g *Genkey) Getkey() (key int64, err error) { select { case key = <-g.keys: return case <-time.After(genKeyTimeout): err = errors.New("getKey timeout") return } }
[ -0.6371453404426575, 1.1165522336959839, 0.49528199434280396, 1.1316657066345215, 0.19447782635688782, -0.2845061719417572, 0.34531813859939575, -0.22619245946407318, -0.6877117156982422, 0.29198479652404785, 0.3628738522529602, 0.22074735164642334, -1.0977904796600342, -0.1498536914587021...
func (g *Genkey) preGenerate() { var ( i int ) time.Sleep(errorSleep) for i = 0; i < 10; i++ { go func() { var ( key int64 keys []int64 err error ) for { if keys, err = g.client.Ids(100); err != nil { log.Errorf("preGenerate() error(%v) retry", err) time.Sleep(errorSleep) ...
[ -1.064498782157898, 1.036295771598816, 0.5773435235023499, -0.08911329507827759, 1.0883058309555054, -0.34908828139305115, 0.5321794748306274, -0.6246651411056519, -1.0508062839508057, 0.01981157809495926, -0.07706151157617569, 0.03161786496639252, -0.7940735220909119, 0.7351202368736267, ...
func makeExpansionHeader(n int) (uint32, error) { return uint32(n), nil }
[ -0.3644760251045227, 1.0454987287521362, 0.43664464354515076, -0.4796244502067566, -0.677640438079834, 0.3153505027294159, 0.6441306471824646, -0.519403874874115, 0.3998992145061493, -0.5784661173820496, -0.35322442650794983, -1.2035763263702393, -0.09941328316926956, -0.029761698096990585...
func implicitPrimary(r rune) int { if unicode.Is(unicode.Ideographic, r) { if r >= minUnified && r <= maxUnified { // The most common case for CJK. return int(r) + commonUnifiedOffset } if r >= minCompatibility && r <= maxCompatibility { // This will typically not hit. The DUCET explicitly specifies map...
[ -0.8268539309501648, 0.04906943067908287, 0.632728636264801, -1.0315024852752686, -1.0212124586105347, -0.013046813197433949, 0.524396538734436, 0.12008834630250931, 0.7244778275489807, -0.3862357437610626, -0.08682973682880402, 0.022574307397007942, -0.4539623558521271, -0.020139187574386...
func convertLargeWeights(elems []rawCE) (res []rawCE, err error) { const ( cjkPrimaryStart = 0xFB40 rarePrimaryStart = 0xFB80 otherPrimaryStart = 0xFBC0 illegalPrimary = 0xFFFE highBitsMask = 0x3F lowBitsMask = 0x7FFF lowBitsFlag = 0x8000 shiftBits = 15 ) for i := 0; i ...
[ -0.6785553693771362, -0.07852796465158463, 0.9200930595397949, -0.393037348985672, -0.20540930330753326, 0.4681021273136139, 0.29911601543426514, 0.034289099276065826, 0.9866840243339539, 0.46433505415916443, -0.7534573674201965, 0.4736659824848175, -0.3192899227142334, 0.9390873312950134,...
func nextWeight(level colltab.Level, elems []rawCE) []rawCE { if level == colltab.Identity { next := make([]rawCE, len(elems)) copy(next, elems) return next } next := []rawCE{makeRawCE(elems[0].w, elems[0].ccc)} next[0].w[level]++ if level < colltab.Secondary { next[0].w[colltab.Secondary] = defaultSeconda...
[ -0.03468433767557144, -0.1845143884420395, 0.7902132868766785, 0.774769127368927, -0.13982757925987244, -0.06671153008937836, 0.2512877583503723, -0.1533985435962677, -0.21211576461791992, 0.8187556266784668, -0.16886629164218903, -0.1991812288761139, -0.3983217477798462, 0.691470801830291...
func compareWeights(a, b []rawCE) (result int, level colltab.Level) { for level := colltab.Primary; level < colltab.Identity; level++ { var va, vb int for ia, ib := 0, 0; ia < len(a) || ib < len(b); ia, ib = ia+1, ib+1 { ia, va = nextVal(a, ia, level) ib, vb = nextVal(b, ib, level) if va != vb { if va...
[ -0.0324677936732769, -0.5145101547241211, 0.7904291749000549, -0.37866833806037903, 0.4118460714817047, -0.09587064385414124, 0.001143819303251803, -0.4686693251132965, -0.5877171158790588, 0.5283137559890747, -0.0783165767788887, -0.14560425281524658, -1.0340029001235962, 0.78421264886856...
func CheckSIMActivate(mobno string) utils.Response { _sn := getDBSession().Copy() defer _sn.Close() resp := utils.Response{} //Check imei in inventory ColSimEnv := col(_sn, db.ColSimEnv) var sIMMaster datamodel.SIMMaster ColSimEnv.Find(bson.M{"mobno": mobno}).One(&sIMMaster) // if imei not found if sIMMaste...
[ -0.7241488695144653, -0.49744394421577454, 0.608218252658844, 0.7941750288009644, 0.481710821390152, -0.7810099124908447, 0.7437335252761841, -0.11135024577379227, 0.4195210039615631, 1.1687206029891968, -0.5675536394119263, 0.06508495658636093, -0.9373953938484192, -0.044485993683338165, ...
func CreateSIMEntry(data datamodel.SIMMaster) utils.Response { _sn := getDBSession().Copy() defer _sn.Close() data.CreateOn = time.Now() validerr := GetValidator().Struct(data) resp := utils.Response{} if validerr != nil { resp.Error = validerr.Error() resp.Status = false resp.StausCode = 0 return resp...
[ -0.2557455599308014, -0.12852323055267334, 0.8179123997688293, 0.35559916496276855, 0.6008415222167969, 0.08515740931034088, 0.29569271206855774, -0.48245692253112793, 0.5459086298942566, 0.7688798904418945, -0.7548063397407532, -0.7563825249671936, -1.144289493560791, 0.5759650468826294, ...
func Anagrams(s string, dpath string) ([]string, error) { d, err := readDict(dpath) if err != nil { panic(err) } l := strings.ReplaceAll(s, " ", "") l = util.SortString(l) res := []string{} return *findAnagrams(l, &res, d, s), nil }
[ 0.1002679392695427, 0.41765645146369934, 0.48274296522140503, -0.2921307682991028, -1.3715050220489502, -0.3694315254688263, -0.2999036908149719, -0.42200854420661926, 0.3713061809539795, 1.1941800117492676, -0.05054101347923279, 0.40190139412879944, 0.028298093006014824, -0.34885579347610...
func NewFloat(x float64) *Float { return new(Float).SetFloat64(x) }
[ 0.7365191578865051, 1.044137716293335, 0.22239947319030762, 0.9788856506347656, -1.0823960304260254, -0.7618059515953064, -0.5953800082206726, -0.6263853907585144, 0.2681994140148163, -1.6980773210525513, -0.4493052661418915, 0.08774155378341675, 0.6230838894844055, 0.43081289529800415, ...
func NewFloat2(x float64, prec uint) *Float { f := new(Float) f.prec = prec f.SetFloat64(x) return f }
[ 0.39710575342178345, -0.34923791885375977, 0.23897145688533783, 0.5983461141586304, -1.198161005973816, -0.23740115761756897, -0.7498067617416382, -0.46829140186309814, -1.0963879823684692, -1.2539873123168945, -0.7052822113037109, 0.6849362850189209, 0.5160183310508728, 0.5069721937179565...
func (f *Float) doinit() { if f.init { return } if f.prec != 0 { C.mpf_init2(&f.i[0], C.mp_bitcnt_t(f.prec)) } else { C.mpf_init(&f.i[0]) } f.init = true }
[ 0.007196030113846064, 0.013759749941527843, 0.4227994978427887, 0.24907530844211578, 1.097044825553894, -0.04917314276099205, 1.2251442670822144, 0.3193736672401428, -1.32888662815094, -0.4205748438835144, -0.4594634771347046, 0.6035839319229126, -0.23312129080295563, 0.7259458899497986, ...
func (f *Float) Set(x *Float) *Float { f.doinit() C.mpf_set(&f.i[0], &x.i[0]) return f }
[ -0.05930691957473755, 0.20210127532482147, 0.3598237931728363, -0.3359087109565735, 0.09785892814397812, 0.14779487252235413, 0.589308500289917, -0.518455982208252, -0.707354724407196, -0.5657044649124146, -0.510450541973114, 0.8035107851028442, -0.15094606578350067, -0.18085931241512299, ...
func (f *Float) SetInt64(x int64) *Float { f.doinit() C.mpf_set_si(&f.i[0], C.long(x)) return f }
[ -0.3904251456260681, 1.0398365259170532, 0.313812792301178, 1.2523728609085083, 0.3078603744506836, -0.543560266494751, 0.4501003324985504, -0.13745234906673431, -0.5261381268501282, -0.5076008439064026, -0.7221330404281616, -0.13998593389987946, -0.256715327501297, 0.46457135677337646, ...
func (f *Float) SetFloat64(x float64) *Float { f.doinit() C.mpf_set_d(&f.i[0], C.double(x)) return f }
[ -0.845086395740509, 0.7552428245544434, 0.42310720682144165, 1.079010009765625, 0.4848702549934387, -0.3227923512458801, 0.8137015104293823, -0.3625950813293457, -0.19098001718521118, -0.8152381777763367, -0.9078026413917542, 0.1049850583076477, 0.11288008093833923, 0.6651416420936584, -...
func (f *Float) SetString(s string, base int) error { f.doinit() if base < 2 || base > 36 { return os.ErrInvalid } p := C.CString(s) defer C.free(unsafe.Pointer(p)) if C.mpf_set_str(&f.i[0], p, C.int(base)) < 0 { return os.ErrInvalid } return nil }
[ -0.2638443112373352, -0.3434959053993225, 0.3836093544960022, 0.12301411479711533, -0.0458049513399601, 0.01559208519756794, 0.5190669894218445, -0.48446425795555115, -1.119449257850647, -0.0673757940530777, -0.2430608868598938, -0.20506928861141205, -0.3731265068054199, 0.0508578978478908...
func (f *Float) String() string { s, _ := f.StringBase(10, 0) return s }
[ 0.46692028641700745, 0.021638989448547363, 0.10008443892002106, -0.33659884333610535, 1.0606406927108765, 0.1684829145669937, 0.775128185749054, -0.7190230488777161, -1.1470057964324951, -0.6180235743522644, -0.6999309659004211, -0.05223780497908592, 0.004850016441196203, 0.536631166934967...
func (f *Float) Float2Exp() (d float64, exp int) { var exp_ C.long d = float64(C.mpf_get_d_2exp(&exp_, &f.i[0])) exp = int(exp_) return }
[ 0.204217329621315, 0.12618125975131989, 0.4914539158344269, -0.03939443826675415, -0.43779993057250977, -0.7152767777442932, 0.7404681444168091, 0.5991796255111694, -0.11218034476041794, 0.3629254996776581, -0.2924502491950989, 0.23093581199645996, 0.38518890738487244, 0.5216110348701477, ...
func (f *Float) Add(x, y *Float) *Float { x.doinit() y.doinit() f.doinit() C.mpf_add(&f.i[0], &x.i[0], &y.i[0]) return f }
[ -0.34871330857276917, -0.44247952103614807, 0.49765560030937195, -0.33600983023643494, 0.5642431974411011, 0.28973016142845154, -0.13322922587394714, -0.6169848442077637, -0.45508748292922974, -0.4311578869819641, 0.39663204550743103, 0.8690041303634644, -0.3296894133090973, 0.002642863197...
func (f *Float) Sub(x, y *Float) *Float { x.doinit() y.doinit() f.doinit() C.mpf_sub(&f.i[0], &x.i[0], &y.i[0]) return f }
[ 0.12869136035442352, -0.05694708228111267, 0.3821243941783905, -0.2679251432418823, -0.5644245147705078, 0.06886490434408188, 0.23005087673664093, -0.09558164328336716, -1.1217747926712036, -0.5183441042900085, -0.2876559793949127, 0.8441228270530701, -0.2314687967300415, -0.65313613414764...
func (f *Float) Mul(x, y *Float) *Float { x.doinit() y.doinit() f.doinit() C.mpf_mul(&f.i[0], &x.i[0], &y.i[0]) return f }
[ 0.1881079524755478, 0.34467998147010803, 0.519653856754303, 0.061829738318920135, 0.30698591470718384, 0.11671977490186691, 0.21754442155361176, -0.020458368584513664, -0.4239892065525055, -0.3269105851650238, 0.11759871989488602, 0.6261166334152222, 0.33232036232948303, -0.708308160305023...
func (f *Float) Div(x, y *Float) *Float { x.doinit() y.doinit() f.doinit() C.mpf_div(&f.i[0], &x.i[0], &y.i[0]) return f }
[ -0.14546144008636475, -0.21628127992153168, 0.5623887181282043, -0.01877542771399021, 0.6430553793907166, -0.007036566734313965, 0.3780529201030731, -0.09486987441778183, -1.2501126527786255, -0.5312491655349731, -0.0568283386528492, 1.0822991132736206, 0.08803541213274002, -0.203980758786...
func (f *Float) Sqrt(x *Float) *Float { x.doinit() f.doinit() C.mpf_sqrt(&f.i[0], &x.i[0]) return f }
[ 0.28120505809783936, -0.25684112310409546, 0.33364346623420715, -0.02063142880797386, -0.309499591588974, -0.2995865046977997, -0.2545568346977234, -0.3549637198448181, 0.581633985042572, -0.7658957242965698, -0.138756662607193, 0.9695450067520142, -0.5143448710441589, 0.11859080940485, ...
func (f *Float) SqrtUint(x uint) *Float { f.doinit() C.mpf_sqrt_ui(&f.i[0], C.ulong(x)) return f }
[ 0.2998921573162079, -0.2711845338344574, 0.3192123770713806, -0.8567352294921875, -0.11527394503355026, -0.22459502518177032, -0.21714428067207336, 0.10468009859323502, 1.058800220489502, -1.4042946100234985, -0.8671237826347351, 0.6782061457633972, -0.2787037491798401, -0.6085852384567261...
func (f *Float) PowUint(x *Float, y uint) *Float { x.doinit() f.doinit() C.mpf_pow_ui(&f.i[0], &x.i[0], C.ulong(y)) return f }
[ -0.34935620427131653, -0.3646615743637085, 0.3681596517562866, -0.7906527519226074, 0.5084918737411499, 0.08505351096391678, -0.47990182042121887, 0.4114669859409332, -0.5163781046867371, -0.732802152633667, -0.17974208295345306, 0.4846305847167969, 0.21304136514663696, -0.4283190667629242...
func (f *Float) Neg(x *Float) *Float { x.doinit() f.doinit() C.mpf_neg(&f.i[0], &x.i[0]) return f }
[ -0.5127407312393188, 0.09666750580072403, 0.47658970952033997, 0.28541862964630127, 0.3894946873188019, 0.5825412273406982, 0.04545005038380623, 0.39460647106170654, -0.43200743198394775, -0.5209827423095703, -0.025738215073943138, 0.7663788199424744, 0.2056848555803299, -0.066827334463596...
func (f *Float) Abs(x *Float) *Float { x.doinit() f.doinit() C.mpf_abs(&f.i[0], &x.i[0]) return f }
[ -0.5802297592163086, -0.3988356590270996, 0.4552375078201294, 0.1257975697517395, 0.05707547441124916, 0.1047939583659172, -0.2987099289894104, -0.06303071975708008, -0.6505085229873657, -0.46975141763687134, 0.40993592143058777, 1.4142566919326782, 0.7554150223731995, 0.14870396256446838,...
func (f *Float) Mul2Exp(x *Float, s uint) *Float { x.doinit() f.doinit() C.mpf_mul_2exp(&f.i[0], &x.i[0], C.mp_bitcnt_t(s)) return f }
[ 0.9837841391563416, -0.44798538088798523, 0.33180734515190125, 0.18055573105812073, -0.7908067107200623, -0.36931124329566956, 0.2565982937812805, -0.0048146927729249, 0.5355844497680664, -0.1500571221113205, -0.6388639807701111, 0.1258959025144577, 0.6614874005317688, -0.08459963649511337...
func (f *Float) Div2Exp(x *Float, s uint) *Float { x.doinit() f.doinit() C.mpf_div_2exp(&f.i[0], &x.i[0], C.mp_bitcnt_t(s)) return f }
[ 0.03441566601395607, -0.15068356692790985, 0.37876901030540466, 0.1710081547498703, -0.6063663363456726, -0.36852970719337463, 0.8812587857246399, 0.04956265166401863, 0.09098191559314728, -0.3180253207683563, -0.28860917687416077, 0.36179304122924805, 0.5905423760414124, -0.19936548173427...
func (f *Float) RelDiff(x, y *Float) *Float { x.doinit() y.doinit() f.doinit() C.mpf_reldiff(&f.i[0], &x.i[0], &y.i[0]) return f }
[ 0.9373837113380432, -0.059051513671875, 0.560682475566864, -0.19602814316749573, 0.0764356479048729, 0.9297419786453247, 0.032033294439315796, -0.364271879196167, -0.4370921552181244, -0.5593112707138062, -0.07736819982528687, 1.0440863370895386, -0.2624232769012451, -0.23021025955677032, ...
func (f *Float) Sgn() int { f.doinit() //TODO(ug): mpf_sgn seems to be implemented as a macro. // We need to watch out for changes in the data structure :( //return int(C.mpf_sgn(&f.i[0])) switch size := int(f.i[0]._mp_size); { case size < 0: return -1 case size == 0: return 0 } return 1 }
[ -0.5359772443771362, 0.6096128225326538, 0.5320817828178406, 0.6766703724861145, 0.2797818183898926, -1.1824625730514526, 0.8030245304107666, 0.7729838490486145, -0.6565355062484741, -0.41315001249313354, -0.6813840866088867, -0.24553976953029633, 0.06622326374053955, 0.3945332467556, 0....
func CmpFloat(x, y *Float) int { x.doinit() y.doinit() return int(C.mpf_cmp(&x.i[0], &y.i[0])) }
[ 0.4891594648361206, -0.1578950136899948, 0.5039077997207642, -0.5574206709861755, -0.3718164563179016, -0.37971919775009155, -0.29276150465011597, -0.740420401096344, -1.1132409572601318, -0.09280955046415329, 0.40486493706703186, 0.009349431842565536, -0.9985001087188721, 0.04943191260099...
func EqFloat(x, y *Float, n uint) int { x.doinit() y.doinit() return int(C.mpf_eq(&x.i[0], &y.i[0], C.mp_bitcnt_t(n))) }
[ -0.23694482445716858, 0.6627230048179626, 0.3211642801761627, -0.35715705156326294, 0.898950457572937, -0.7902845144271851, 0.4550977647304535, -0.7250563502311707, -1.0724064111709595, -0.21079029142856598, -0.7586436867713928, 0.23838788270950317, -0.15918156504631042, 1.0626904964447021...
func (f *Float) Ceil(x *Float) *Float { x.doinit() f.doinit() C.mpf_ceil(&f.i[0], &x.i[0]) return f }
[ 0.4132770895957947, 0.12309931218624115, 0.2359713315963745, -0.022231731563806534, -0.05999325215816498, 0.27994585037231445, 0.6329110264778137, -0.8274045586585999, -0.9961596727371216, 0.20808939635753632, -0.12679404020309448, 1.0378156900405884, 0.557219386100769, -0.5589975714683533...
func (f *Float) Floor(x *Float) *Float { x.doinit() f.doinit() C.mpf_floor(&f.i[0], &x.i[0]) return f }
[ 0.329267293214798, 0.20856758952140808, 0.23261943459510803, -0.19925297796726227, 0.12888690829277039, 0.7138755321502686, 0.9637610912322998, -0.9895457029342651, -0.03663623705506325, -0.8251922130584717, -0.010917157866060734, 0.41644036769866943, -0.06086776778101921, 1.06853389739990...
func (f *Float) Trunc(x *Float) *Float { x.doinit() f.doinit() C.mpf_trunc(&f.i[0], &x.i[0]) return f }
[ 1.0370551347732544, 0.36193183064460754, 0.48082345724105835, -0.1872173547744751, 0.23098759353160858, 0.25836220383644104, 0.8130415678024292, -0.007626249920576811, -0.3243377208709717, -0.4586993157863617, 0.031171882525086403, 1.5296741724014282, 0.6457846164703369, -1.242255926132202...
func TestAcceptRetryTemporary(t *testing.T) { listener := &testutils.MockListener{ AcceptFunc: func(i int) (net.Conn, error) { if i < 10 { return nil, testutils.ErrTemporaryTrue } return nil, io.EOF }, } server := &RetryServer{ Listener: listener, } ctx, cancel := context.WithTimeout(context.Ba...
[ 0.5473260283470154, 0.45367929339408875, 0.586956799030304, -1.0170882940292358, 0.14474275708198547, 0.39454925060272217, 0.18367211520671844, -0.004447835497558117, -0.2465095967054367, 0.002093398943543434, -0.4151032567024231, 0.43179649114608765, 0.3034948408603668, 0.1235067695379257...
func TestAcceptRetryTemporaryReset(t *testing.T) { // the accepted connection conn := &testutils.MockConn{} // the listener that fails with temporary errors, accepts one, // and fails again with temporary errors to check the reset // of the temporary errors delay listener := &testutils.MockListener{ AcceptFunc...
[ 0.4976251721382141, 0.23123766481876373, 0.5859161615371704, -0.9393056035041809, 0.14453129470348358, 0.2021436095237732, 0.5826202034950256, -0.392034649848938, -0.5800743103027344, -0.29545989632606506, -0.13909681141376495, 0.727350115776062, -0.08966072648763657, -0.21795548498630524,...
func TestNoRetryTemporaryFalse(t *testing.T) { listener := &testutils.MockListener{ AcceptFunc: func(i int) (net.Conn, error) { return nil, testutils.ErrTemporaryFalse }, } server := &RetryServer{ Listener: listener, } ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second) defer cancel(...
[ 0.18886680901050568, 0.2898871898651123, 0.4404149055480957, -0.6200488805770874, 0.3403242230415344, 0.33731529116630554, -0.05354690924286842, 0.09519466012716293, -0.5670291781425476, -0.6076472401618958, -0.3588683307170868, 0.29899781942367554, -0.3691776394844055, 0.558711588382721, ...
func TestDirectConnectionFlags(t *testing.T) { // Test with the equivalent of a single IP address in the -d arg: -d 1.2.3.4 gDirects = "1.2.3.4" dirFuncs := buildDirectors(gDirects) director = getDirector(dirFuncs) ipv4 := "1.2.3.4" wentDirect,_ := director(ipv4) if wentDirect == false ...
[ -0.7083935737609863, 0.27492743730545044, 0.8610764741897583, -0.8057325482368469, 0.1612853854894638, 0.6759313344955444, 0.8277661204338074, 0.156359001994133, -0.44429197907447815, -0.19128113985061646, -0.3000516891479492, 0.39205193519592285, -0.5147910118103027, 0.027987424284219742,...
func RemoveDuplicateTags(ToFilter []TagInformation) []TagInformation { //Rules: //We do not care about meta-tags //Exlusionary tags win for Index := 0; Index < len(ToFilter); Index++ { if ToFilter[Index].IsMeta { continue //Skip Metatags } //Standard tag confirmed, scan for duplicates for ScanIndex := 0...
[ -0.20068325102329254, 0.06396535784006119, 0.7407277226448059, 0.002486341167241335, -0.6962096095085144, -0.2601226568222046, 0.5846971869468689, -0.3556036055088043, 0.8458132743835449, 0.9540427923202515, -0.19743612408638, 0.398603618144989, -0.01620769500732422, 0.31495407223701477, ...
func MergeTagSlices(Original []TagInformation, ToAdd []TagInformation) []TagInformation { //Rules: //We do not care about meta-tags //Tags in ToAdd win //Exlusionary tags win after tags in ToAdd //First, remove duplicates from original that exist in ToAdd for Index := 0; Index < len(ToAdd); Index++ { if ToAdd[...
[ -0.11447587609291077, -0.02653554640710354, 0.6586071848869324, -0.002920283703133464, -0.6226651668548584, -0.18261520564556122, -0.639782190322876, -0.5358749032020569, -0.2551489770412445, 0.4602946639060974, 0.10057152807712555, 0.0809033140540123, 0.27321702241897583, 0.73656636476516...
func EntryPoint(w http.ResponseWriter, r *http.Request) { wrapper = gcfwrapper.NewHandlerWrapper(handler) wrapper.Invoke(w, r) }
[ 1.1149678230285645, -0.6014108061790466, 0.5211808085441589, -0.03508783131837845, 0.6796796917915344, 0.5846514105796814, 0.6348647475242615, 0.10990434885025024, -0.24703550338745117, -0.3111846148967743, 0.29105061292648315, 0.3344854414463043, -0.4808128774166107, -0.1188688725233078, ...
func KeywordSearch(t *testing.T, url string) (statusCode int, respBody []byte, err error) { respStatusCode, respBody, _ := GetResponseByGet(t, url) return respStatusCode, respBody, nil }
[ -0.004585179500281811, -0.015828898176550865, 0.6412542462348938, -0.39850088953971863, -0.08489880710840225, 0.03092292882502079, -0.4284290671348572, 0.2158230096101761, 0.7943799495697021, 0.30893751978874207, -0.4443991184234619, -0.14209550619125366, -1.2528350353240967, 0.18710120022...
func QslSearch(t *testing.T, url string) (statusCode int, respBody []byte, err error) { respStatusCode, respBody, _ := GetResponseByGet(t, url) return respStatusCode, respBody, nil }
[ -0.3369651734828949, -0.6481211185455322, 0.4686404764652252, -0.47515010833740234, -0.3822844922542572, -0.3788924217224121, 0.018100712448358536, -0.41668710112571716, 0.8109581470489502, -0.4098152220249176, -0.6420056819915771, 0.005095349624752998, -0.6640773415565491, 0.0346810258924...
func TestKeywordSearch(t *testing.T) { testURL1 := TestBaseURL + "/v1/query?keyword=node01" testURL2 := TestBaseURL + "/v1/query?keyword=node02" tests := []TestStruct{ {"TestKeywordSearchNode01", testURL1, "", 200, "", 0}, {"TestKeywordSearchNode02", testURL2, "", 200, "", 0}, } for i, testCase := range test...
[ 0.06997670978307724, 0.6520345211029053, 0.559364914894104, 0.07877873629331589, 0.2585884928703308, 0.4890604019165039, 0.21027813851833344, -0.14870844781398773, 0.23574618995189667, -0.016277749091386795, -0.32527488470077515, 0.4341256022453308, -0.7792524099349976, 0.6924092769622803,...
func TestQslSearch(t *testing.T) { if testing.Short() { t.Skip("skipping TestQSLSearch in short mode") } testURL1 := TestBaseURL + "/v1/qsl/node[@name=\"node01\"]{*}" testURL2 := TestBaseURL + "/v1/qsl/node[@name=\"node01\"]{@labels}" tests := []TestStruct{ {"TestSearchNode01All", testURL1, "", 200, "", 0}, ...
[ -0.18830862641334534, 0.2597547471523285, 0.4793819487094879, -0.4341391623020172, 0.19962728023529053, 0.6959356069564819, 0.2760932147502899, -0.8494486212730408, 0.05819063261151314, -0.3763342499732971, -0.3253570795059204, 0.4663335680961609, -0.2775014638900757, 0.0815521702170372, ...
func FormatDate(timestamp int64, format string) (ret string) { return time.Unix(timestamp, 0).Format(format) }
[ 0.11076264828443527, -0.16006726026535034, 0.6190987825393677, 0.6909207105636597, -0.44125574827194214, -0.3725869059562683, -1.719973087310791, -0.12398520112037659, 0.9795688986778259, -0.7448620200157166, 1.194161057472229, 0.06353434175252914, 0.25811752676963806, 0.6466888785362244, ...
func GenerateTimestampArray(startTS, endTS int64) (tsArray []int64) { daysNbr := (endTS - startTS) / (24 * 3600) var i int64 for i = 0; i <= daysNbr; i++ { tsArray = append(tsArray, startTS+(i*24*3600)) } return tsArray }
[ -1.8159582614898682, -0.11951293796300888, 0.80451899766922, 0.15488111972808838, 0.3627931475639343, 0.3876676559448242, -0.4493524730205536, -0.13934236764907837, 0.04831354692578316, 0.36323636770248413, -0.9833342432975769, -0.09202083200216293, -0.12202171236276627, 0.4904340505599975...
func New(db *gorm.DB, sk []byte) *API { return &API{ db: db, signingKey: sk, } }
[ -0.5008183121681213, -0.6646227836608887, 0.022825714200735092, 0.3791956901550293, -1.379692792892456, -0.19409964978694916, -0.5589194893836975, 0.370929092168808, -0.041567880660295486, 0.5811299681663513, -0.7151034474372864, 0.047009944915771484, -0.23754411935806274, 0.57824397087097...
func (s *SmartContract) initLedger(stub shim.ChaincodeStubInterface) sc.Response { fmt.Println("Initalising ledger") chainkeys := []ChainKey{ ChainKey{DocumentID: "doc1", Glue: "glue1", TypeofDocument: "type1"}, ChainKey{DocumentID: "doc2", Glue: "glue2", TypeofDocument: "type2"}, } m := 0 for m < len(chainke...
[ -0.9770129323005676, -0.08286947011947632, 0.694263756275177, -0.6532117128372192, 0.36782029271125793, -0.32534143328666687, 0.22220084071159363, 0.03506733477115631, -0.2478727251291275, 0.2694074213504791, -0.7972462177276611, 0.516517698764801, -0.8091983199119568, 1.5383648872375488, ...
func (s *SmartContract) Invoke(stub shim.ChaincodeStubInterface) sc.Response { functionname, args := stub.GetFunctionAndParameters() if functionname == "queryChainKey" { return s.queryChainKey(stub, args) } else if functionname == "listChainKeys" { return s.listChainKeys(stub) } else if functionname == "recordC...
[ -0.7725110054016113, 0.3656460642814636, 0.745755136013031, 0.6105554103851318, 0.039031047374010086, -1.069292426109314, -0.3750511407852173, -0.3236111104488373, -0.06473691016435623, -0.18090388178825378, -0.2600688338279724, 0.7120996713638306, -0.9095823168754578, -0.02738519944250583...
func (s *SmartContract) listChainKeys(stub shim.ChaincodeStubInterface) sc.Response { startKey := "0" endKey := "999999" resultsIterator, err := stub.GetStateByRange(startKey, endKey) if err != nil { return shim.Error(err.Error()) } defer resultsIterator.Close() var buffer bytes.Buffer buffer.WriteString("["...
[ -0.6714617013931274, -0.8292925357818604, 0.8372722864151001, -0.7189070582389832, -0.3076813220977783, -0.8875616788864136, -0.413844496011734, -0.5597948431968689, 0.2138817310333252, 0.17940163612365723, -0.25455719232559204, 0.7761372923851013, -0.43821820616722107, 0.4555424451828003,...
func (s *SmartContract) queryChainKey(stub shim.ChaincodeStubInterface, args []string) sc.Response { if len(args) != 1 { shim.Error("Incorrect number of arguments, Expecting 1") } chainkeyAsBytes, _ := stub.GetState(args[0]) data := string(chainkeyAsBytes) fmt.Println("Returning list of Asset %s args[0]", data) ...
[ -0.850003719329834, 0.026704058051109314, 0.5287801623344421, -0.44565558433532715, 0.38884758949279785, -0.5856587886810303, -0.07557790726423264, -1.0577830076217651, -0.20941664278507233, 0.16513735055923462, -0.09133289009332657, 0.855303943157196, -0.7127688527107239, 0.41134700179100...
func whenAll(dependencies []dependency) dependency { completionSource := &completionSource{ done: make(chan struct{}), } go func() { defer close(completionSource.done) cases := make([]reflect.SelectCase, len(dependencies)) for ix, dependency := range dependencies { cases[ix] = reflect.SelectCase{ Chan...
[ -0.13448292016983032, -0.4115391969680786, 0.5533402562141418, -0.18614722788333893, -0.5071909427642822, -0.36451008915901184, 0.21802501380443573, -0.059588417410850525, 0.5108091235160828, 0.4135255515575409, 0.1118665561079979, -0.09380070865154266, 0.21688079833984375, 0.0453512445092...
func (p promise) then(next func(ctx context.Context) error) promise { completionSource := &completionSource{ done: make(chan struct{}), } go func() { defer close(completionSource.done) select { case <-p.Done(): if err := p.Err(); err != nil { completionSource.err = err return } completionSou...
[ 0.19988389313220978, -0.023021193221211433, 0.5284489393234253, 0.19622106850147247, -0.4243968427181244, 0.21172679960727692, -1.2658275365829468, 0.10331164300441742, -0.19650065898895264, -0.3011746406555176, -0.9876231551170349, -0.1835603266954422, 0.07106495648622513, -0.223895013332...
func newPromise(scheduler scheduler, dependency dependency) promise { return promise{scheduler: scheduler, dependency: dependency} }
[ 0.1248180940747261, -0.3449457287788391, 0.28956982493400574, 0.7064403891563416, -1.4566402435302734, -0.8676416277885437, -2.007225513458252, -0.5525462627410889, -0.11286300420761108, 0.08286109566688538, 0.03848722204566002, -0.010477776639163494, -0.0013401926262304187, 0.280213773250...
func scheduleAndUnwrap(scheduler scheduler, do func(ctx context.Context) (dependency, error)) promise { completionSource := &completionSource{ done: make(chan struct{}), } scheduler.schedule(func(ctx context.Context) error { p, err := do(ctx) if err != nil { completionSource.err = err close(completionSou...
[ -0.6668481826782227, -0.0077522010542452335, 0.8070605993270874, -0.40324917435646057, -1.0321202278137207, -0.38403648138046265, -0.6528088450431824, 0.06311021000146866, 0.5804890394210815, 0.15266066789627075, 0.11386903375387192, 0.503520667552948, 0.6882947087287903, 0.054095178842544...
func (m *AlertableEventType) Validate(formats strfmt.Registry) error { var res []error if err := m.validateCategory(formats); err != nil { res = append(res, err) } if err := m.validateScope(formats); err != nil { res = append(res, err) } if len(res) > 0 { return errors.CompositeValidationError(res...) }...
[ 0.8307210803031921, -0.037152599543333054, 0.41754838824272156, 0.09110523760318756, -0.16801080107688904, -0.017794180661439896, 0.7904801368713379, -0.4074596166610718, -0.9508846402168274, 1.0022388696670532, 0.46374449133872986, 0.157302588224411, -0.38371628522872925, 0.76628923416137...
func (t TaskConfig) IsNotEmpty() bool { return !t.IsEmpty() }
[ -0.5661806464195251, 0.47572246193885803, 0.40682804584503174, 0.420978844165802, 0.5549267530441284, 0.029000718146562576, -0.4850286841392517, -0.0862417072057724, -1.4811538457870483, 1.7505205869674683, -2.3021023273468018, -0.8405225872993469, 0.3517444133758545, 0.13805599510669708, ...
func (t TaskConfig) IsEmpty() bool { return t == TaskConfig{} || t.DbURL == "" || t.DbType == "" }
[ -1.533624529838562, 0.5088030695915222, 0.44022712111473083, 0.35880914330482483, 0.7133173942565918, 0.44122031331062317, -0.04763824865221977, 0.2385151982307434, -0.7919590473175049, 1.3108967542648315, -1.3367208242416382, 0.12254810333251953, -0.13999268412590027, 0.6369287371635437, ...
func TaskConfiguration() TaskConfig { return conf.TaskConfig }
[ -0.05590438470244408, -0.5444392561912537, 0.41298767924308777, 0.34552624821662903, -0.2945801615715027, -0.18218597769737244, 1.7695239782333374, 0.567215085029602, -0.5553723573684692, 1.5256905555725098, -1.9839043617248535, -0.09103255718946457, 0.6805549263954163, 0.5397213101387024,...
func initialize(configFile string) config { initconfigDefaults() file, err := os.Open(configFile) if err != nil { log.Fatal("Could not open file. Error: ", err) } defer file.Close() decoder := json.NewDecoder(file) var conf config err = decoder.Decode(&conf) if err != nil { log.Fatal("Error parsing json...
[ -0.30747678875923157, -0.38679981231689453, 0.5595444440841675, -0.1417941302061081, -0.21224132180213928, -0.151835635304451, -0.36455294489860535, 0.9920098781585693, -1.2823486328125, 0.6910644173622131, -0.6995645761489868, 0.059630248695611954, -0.2750246822834015, 0.33332934975624084...
func NewGithubClient(token, owner, repo, filePath, name, email string) *GithubClient { gc := &GithubClient{} gc.repo.Path = filePath gc.repo.Owner = owner gc.repo.Token = token gc.repo.Repository = repo gc.repo.Name = name gc.repo.Email = email return gc }
[ 0.5185869336128235, -0.5158382654190063, 0.202482208609581, -0.38981249928474426, -0.2827487289905548, 0.5098541378974915, -0.12790720164775848, 0.25593116879463196, -0.9715887308120728, 0.20208749175071716, -0.6399325728416443, 0.8903539776802063, -0.21302497386932373, -0.5895963311195374...
func NewSSHClientConfig(user, keyFile, passworkPhrase string) (*SSHClient, error) { publicKeyMenthod, err := publicKey(keyFile, passworkPhrase) if err != nil { return nil, err } sshConfig := &ssh.ClientConfig{ User: user, Auth: []ssh.AuthMethod{ publicKeyMenthod, }, HostKeyCallback: ssh.InsecureIgnor...
[ 0.2102128118276596, -0.10897936671972275, 0.26259756088256836, 0.35576120018959045, -1.3590152263641357, 0.6078637838363647, -0.8147891759872437, 0.15544293820858002, -0.9660553932189941, 0.3563541769981384, -1.3204342126846313, 0.49444839358329773, 0.026523204520344734, 0.6538125872612, ...
func (c *SSHClient) Connect(host, port string) error { client, err := ssh.Dial("tcp", fmt.Sprintf("%s:%s", host, port), c.config) if err != nil { return err } c.client = client return nil }
[ 0.5214077830314636, -0.21237225830554962, 0.37611234188079834, -0.6304002404212952, -0.2345004677772522, 1.0405105352401733, -1.0784633159637451, -0.13994017243385315, -1.922899603843689, 0.6679068803787231, -0.37867820262908936, 0.29826298356056213, 0.2631602883338928, -0.0758913978934288...
func (c *SSHClient) Close() error { if c.client != nil { return c.client.Close() } return nil }
[ 1.0099328756332397, -0.16959400475025177, 0.45927301049232483, -0.1974714994430542, -0.3049403429031372, 0.5169416666030884, -0.10440792143344879, -0.33637112379074097, -0.9186776876449585, -0.9269739389419556, -0.1937267929315567, 0.5896743535995483, -0.9169831275939941, 0.594729840755462...
func (c *SSHClient) ExecuteBatch(commands []string, prependSudo bool) error { fmt.Printf("**** Host: %s ****\n", c.client.RemoteAddr().String()) for _, cmd := range commands { fmt.Printf("** Execute command: %s **\n", cmd) stdout, stderr, err := c.ExecuteOne(cmd, prependSudo) if err != nil { return err } ...
[ 0.17667430639266968, 0.31627774238586426, 0.738684892654419, 0.33871760964393616, 1.0293991565704346, 1.2032891511917114, 0.1577581912279129, 0.37657082080841064, -0.7435479760169983, -0.731425404548645, -0.02042599394917488, 0.7899285554885864, 0.11837240308523178, 0.9650931358337402, 0...
func (c *SSHClient) ExecuteOne(cmd string, prependSudo bool) (stdout, stderr string, err error) { sess, err := c.client.NewSession() if err != nil { return "", "", err } defer sess.Close() var stdoutBuf, stderrBuf bytes.Buffer sess.Stdout = &stdoutBuf sess.Stderr = &stderrBuf if prependSudo { cmd = "sud...
[ -0.32182538509368896, -0.009963283315300941, 1.0674651861190796, 0.23246243596076965, -0.09074538201093674, 0.8186255097389221, 0.021000603213906288, 0.14570514857769012, -0.425371915102005, -0.07842565327882767, -0.36046984791755676, 0.7236757874488831, 0.1777704805135727, 0.6148195266723...
func IndexHandler(w http.ResponseWriter, r *http.Request) { t, _ := template.ParseFiles("templates/index.html") t.Execute(w, nil) }
[ 0.14137858152389526, 0.0436333604156971, 0.27349919080734253, 0.20124775171279907, 0.20094111561775208, 0.5533644556999207, 1.3674920797348022, 1.5293279886245728, -0.2689024806022644, 0.3106832504272461, 0.21702060103416443, -1.0902605056762695, -0.45458266139030457, -0.6091136932373047, ...
func NewServicesHandler(storage storage.Storage) func(w http.ResponseWriter, r *http.Request) { return func(w http.ResponseWriter, r *http.Request) { specs, err := storage.GetSpecs() if err != nil { http.Error(w, fmt.Sprintf("Error getting the specs from the storage %s", err), http.StatusInternalServerError) ...
[ -0.3570482134819031, -0.5656102895736694, 0.6566153168678284, 0.2140190154314041, -0.9029453992843628, -0.04547756165266037, 0.3628605604171753, -0.6370609402656555, -0.8347621560096741, 0.7031189799308777, 0.0005726200761273503, -0.35628992319107056, -0.048813220113515854, 1.4856275320053...
func (h *Handler) NewRPCHandler() func(w http.ResponseWriter, r *http.Request) { return func(w http.ResponseWriter, r *http.Request) { serviceName := r.PostFormValue("service") procedure := r.PostFormValue("procedure") contentType := r.PostFormValue("contentType") timeout, _ := strconv.Atoi(r.PostFormValue("ti...
[ -0.48251739144325256, -0.1448415219783783, 0.891089141368866, -0.7962993383407593, -0.3208297789096832, 0.02679886668920517, -0.25541526079177856, -0.8936259150505066, -0.8547149300575256, 0.5868178606033325, -0.1678929179906845, 0.21662680804729462, -0.6629219055175781, 0.3904549181461334...
func NewTodoServer(store store.TodoStore) *TodoServer { t := new(TodoServer) t.Store = store t.Router = gin.Default() // Project routes t.Router.GET("/projects/:projectName", t.GetProject) t.Router.POST("/projects/", t.PostProject) t.Router.GET("/projects/", t.GetAllProjects) t.Router.PUT("/projects/:projectNa...
[ -0.6484171748161316, 0.16115519404411316, 0.8711251616477966, -0.4121874272823334, 0.1888366937637329, -0.32184886932373047, 0.45112064480781555, 0.05598267540335655, 0.060485925525426865, 0.17974843084812164, -1.1565866470336914, -0.02364465408027172, -0.20495742559432983, 0.3074868321418...
func NewDataCollectionEndpointsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *DataCollectionEndpointsClient { cp := arm.ClientOptions{} if options != nil { cp = *options } if len(cp.Host) == 0 { cp.Host = arm.AzurePublicCloud } return &DataCollectionEndpointsClie...
[ 0.3111755847930908, -0.24508656561374664, -0.0285812858492136, -0.33677852153778076, 0.16675782203674316, 0.7080658674240112, -0.41452956199645996, -0.0828210860490799, -0.4906902611255646, -0.2986429035663605, -0.8236912488937378, 1.3137568235397339, 0.18876907229423523, -0.34237274527549...
func (client *DataCollectionEndpointsClient) createCreateRequest(ctx context.Context, resourceGroupName string, dataCollectionEndpointName string, options *DataCollectionEndpointsCreateOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft...
[ -0.36099153757095337, -0.09589545428752899, 0.867867112159729, -0.4358200132846832, 0.1253347098827362, 0.2446759194135666, -0.11062402278184891, -0.583899974822998, -0.4431909918785095, 0.3769913911819458, 0.2386593073606491, 0.8722361922264099, -0.3070444166660309, 0.4339154362678528, ...
func (client *DataCollectionEndpointsClient) createHandleResponse(resp *http.Response) (DataCollectionEndpointsCreateResponse, error) { result := DataCollectionEndpointsCreateResponse{RawResponse: resp} if err := runtime.UnmarshalAsJSON(resp, &result.DataCollectionEndpointResource); err != nil { return DataCollecti...
[ -0.427558571100235, -0.591871976852417, 0.20426982641220093, -0.4143260717391968, 0.4688972234725952, 0.4164472818374634, 0.23831556737422943, -0.08714663237333298, 0.051043037325143814, -0.17067861557006836, -0.6623228192329407, -1.300078272819519, -0.7337360978126526, -0.4959519207477569...
func (client *DataCollectionEndpointsClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, dataCollectionEndpointName string, options *DataCollectionEndpointsDeleteOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft...
[ -0.13529758155345917, -0.24113978445529938, 0.8210302591323853, -0.2673533856868744, -0.060851097106933594, -0.08378042280673981, 0.23153197765350342, -0.24544993042945862, -0.3019694685935974, -0.26915156841278076, 0.2699570655822754, 0.952441930770874, -0.16814696788787842, 0.37943446636...
func (client *DataCollectionEndpointsClient) getCreateRequest(ctx context.Context, resourceGroupName string, dataCollectionEndpointName string, options *DataCollectionEndpointsGetOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insig...
[ -0.18613968789577484, 0.05291306599974632, 1.045351266860962, -0.4316534399986267, 0.3825118839740753, -0.14066123962402344, -0.18689550459384918, -0.46150633692741394, -0.6132690906524658, 0.06721614301204681, 0.35017600655555725, 1.4588927030563354, -0.12782788276672363, 0.10850191861391...
func (client *DataCollectionEndpointsClient) getHandleResponse(resp *http.Response) (DataCollectionEndpointsGetResponse, error) { result := DataCollectionEndpointsGetResponse{RawResponse: resp} if err := runtime.UnmarshalAsJSON(resp, &result.DataCollectionEndpointResource); err != nil { return DataCollectionEndpoin...
[ -0.4061656892299652, -0.2179417759180069, 0.39869335293769836, -0.17374499142169952, 0.4929727613925934, -0.11914210021495819, 0.35891321301460266, 0.18371042609214783, 0.18900609016418457, -0.5060946941375732, -0.5581334829330444, -0.7477977871894836, -0.5401296019554138, -0.7153534889221...
func (client *DataCollectionEndpointsClient) listByResourceGroupCreateRequest(ctx context.Context, resourceGroupName string, options *DataCollectionEndpointsListByResourceGroupOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights...
[ -0.27857962250709534, 0.23122826218605042, 0.13463100790977478, -0.7468161582946777, 0.12960763275623322, -0.345604807138443, 0.11719010025262833, -0.6042501926422119, -0.257337749004364, 0.3085324466228485, -0.10456806421279907, 0.2775537669658661, -0.16339363157749176, 0.8609330654144287...
func (client *DataCollectionEndpointsClient) listByResourceGroupHandleResponse(resp *http.Response) (DataCollectionEndpointsListByResourceGroupResponse, error) { result := DataCollectionEndpointsListByResourceGroupResponse{RawResponse: resp} if err := runtime.UnmarshalAsJSON(resp, &result.DataCollectionEndpointResour...
[ -0.28325387835502625, -0.31276044249534607, -0.11024782061576843, -1.0646741390228271, -0.13141591846942902, 0.03164341673254967, 0.4947282075881958, -0.22701095044612885, -0.03647322207689285, 0.06994708627462387, -0.6352775692939758, -1.7663657665252686, -0.47914525866508484, 0.436544448...