text
stringlengths
11
6.3k
embedding
listlengths
768
768
func deriveKeys(parts ...*[32]byte) (*[32]byte, *[32]byte) { d := sha512.New() for _, p := range parts { d.Write(p[:]) } k := d.Sum(nil) a := new([32]byte) b := new([32]byte) copy(a[:], k[:32]) copy(b[:], k[32:64]) return a, b }
[ -0.5179261565208435, -0.04869464784860611, 0.7049102783203125, -0.4500851631164551, -0.3006094694137573, -0.252596914768219, -0.7980262637138367, -0.49524566531181335, 0.21686354279518127, -0.10260408371686935, -0.5540510416030884, -0.47506582736968994, -0.7877147793769836, 0.2141962647438...
func genKeyAndSendCipher(kx *KX, pk *[sntrup4591761.PublicKeySize]byte, ek *[32]byte) (*[32]byte, error) { c, k, err := sntrup4591761.Encapsulate(rand.Reader, pk) if err != nil { return nil, err } if ek != nil { err = kx.writeWithKey(c[:], ek) } else { _, err = xdr.Marshal(kx.Conn, c) } return k, err }
[ -0.3789782226085663, 0.2738567888736725, 0.7771948575973511, -0.6253295540809631, -0.5522289276123047, 0.482524573802948, 0.17295719683170319, -0.5418093204498291, 0.5963718295097351, 1.1808587312698364, -0.5086368918418884, -0.021655289456248283, -0.38954341411590576, 0.31548577547073364,...
func recvCipherAndGetKey(kx *KX, sk *[sntrup4591761.PrivateKeySize]byte, ek *[32]byte) (*[32]byte, int) { c := new([sntrup4591761.CiphertextSize]byte) if ek != nil { x, err := kx.readWithKey(ek) if err != nil { return nil, 0 } if len(x) != len(c) { return nil, 0 } copy(c[:], x) } else { _, err :=...
[ -0.238812655210495, 0.1212620958685875, 0.9467838406562805, -0.3750963509082794, -0.9195805191993713, -0.9166809320449829, -0.4695803225040436, -0.28285518288612366, 0.5322001576423645, 0.6027594208717346, -0.5123612880706787, 0.23756204545497894, -0.5215075016021729, -0.17127203941345215,...
func sendProof(kx *KX, mk, ek *[32]byte, parts ...[]byte) ([]byte, error) { h := hmac.New(sha256.New, mk[:]) for _, p := range parts { h.Write(p) } d := h.Sum(nil) err := kx.writeWithKey(d, ek) if err != nil { return nil, err } return d, err }
[ -0.323031485080719, 0.8478450179100037, 0.6594368815422058, 0.5974880456924438, -0.49544498324394226, -0.11115547269582748, -0.7920727133750916, -0.42218372225761414, -0.0523461177945137, 1.4450045824050903, -0.6599473357200623, -0.4901583790779114, -1.0248594284057617, 0.7080017924308777,...
func recvProof(kx *KX, mk, ek *[32]byte, parts ...[]byte) ([]byte, error) { h := hmac.New(sha256.New, mk[:]) for _, p := range parts { h.Write(p) } d := h.Sum(nil) rd, err := kx.readWithKey(ek) if err != nil { return nil, err } if len(rd) != sha256.Size { return nil, ErrUnmarshal } D(0, "[session.recvPr...
[ 0.11630699038505554, 0.38911786675453186, 0.5757002830505371, -0.12883391976356506, -0.7522669434547424, -0.4688259959220886, -0.6960988640785217, -0.1652613878250122, 0.2247975766658783, 0.9523293375968933, -0.18073421716690063, -0.4837142527103424, -0.6501181721687317, 0.0649197027087211...
func recvEncryptedIdentity(kx *KX, ek *[32]byte) (*[sntrup4591761.PublicKeySize]byte, error) { pk := new([sntrup4591761.PublicKeySize]byte) payload, err := kx.readWithKey(ek) if err != nil { return nil, err } if len(payload) != sntrup4591761.PublicKeySize { return nil, ErrUnmarshal } copy(pk[:], payload) re...
[ -0.3585265576839447, 0.04959120228886604, 0.8090289831161499, -0.2106943130493164, -0.5792446136474609, 0.47848230600357056, 0.21623657643795013, -0.6444644927978516, 0.5041831731796265, 0.8869869709014893, -1.154854655265808, 0.03361489251255989, -0.9958535432815552, -0.7347989082336426, ...
func (kx *KX) Initiate() error { if err := regenerateEphemeral(); err != nil { return err } defer zeroEphemeral() D(0, "[session.Initiate] ephemeral public:\n%x", ephemeralPublic) D(0, "[session.Initiate] ephemeral private:\n%x", ephemeralPrivate) D(0, "[session.Initiate] our public key:\n%x", *kx.OurPublicKey...
[ -0.5805056691169739, 0.3530365228652954, 0.7656636238098145, -0.16279108822345734, -0.11570946872234344, 0.4706645607948303, -0.006733519956469536, 0.08351536095142365, -0.5845115780830383, 0.25572749972343445, -1.328835129737854, 1.0238091945648193, -0.3985171318054199, 0.6096979379653931...
func (kx *KX) Respond() error { // Step 0: Obtain a copy of our ephemeral keys. epk := new([sntrup4591761.PublicKeySize]byte) esk := new([sntrup4591761.PrivateKeySize]byte) ephemeralMutex.Lock() copy(epk[:], ephemeralPublic[:]) copy(esk[:], ephemeralPrivate[:]) ephemeralMutex.Unlock() D(0, "[session.Respond] e...
[ -0.22000862658023834, -0.09804604202508926, 0.7995578646659851, 0.13230076432228088, -0.1543189287185669, 0.15982241928577423, -0.026994774118065834, -0.019571885466575623, 0.15943099558353424, 0.363925963640213, -0.7929474115371704, 0.28226032853126526, -0.3522842228412628, 0.182181179523...
func (kx *KX) Write(data []byte) error { return kx.writeWithKey(data, kx.writeKey) }
[ -1.1826438903808594, -0.04383661597967148, 0.07803753763437271, 0.7906472086906433, 0.3017379641532898, 0.36793071031570435, -1.0293586254119873, 0.13071958720684052, 0.46279051899909973, 0.7417857646942139, -0.7792433500289917, -0.17781710624694824, -0.4578070640563965, 0.7114357948303223...
func incSeq(seq *[24]byte) { n := uint32(1) for i := 0; i < 8; i++ { n += uint32(seq[i]) seq[i] = byte(n) n >>= 8 } }
[ -0.8278125524520874, 0.35161247849464417, 0.5974363088607788, 0.1475566178560257, 0.23267920315265656, 0.0005927173770032823, 0.2576923668384552, 0.3020165264606476, 0.5150887966156006, 0.17790624499320984, -1.337248682975769, 0.2006317526102066, -0.5260101556777954, 0.3213130235671997, ...
func NewParamsReader(logger logging.Logger) Reader { return &reader{ envParams: libparams.NewEnv(), logger: logger, verifier: verification.NewVerifier(), } }
[ 0.5667527318000793, -1.280889868736267, 0.3082338571548462, -0.3427162766456604, -0.9387590885162354, 0.421846479177475, -0.949487566947937, -0.060505736619234085, -0.6220746636390686, -0.4737366735935211, 0.47638076543807983, 0.08180862665176392, -0.0483546257019043, 1.1787011623382568, ...
func Register(c *context.Context) { ctx = c ensureConnection() setTargetChannel = startReleaseChannelUpdater(ctx) }
[ -0.4676099717617035, -0.5253958106040955, 0.2609262466430664, -0.2804121673107147, 1.2767013311386108, -0.5054457783699036, -0.9013124704360962, 0.06594174355268478, -0.11775320768356323, -0.6997448801994324, 0.021258477121591568, 0.8580888509750366, -0.10826709121465683, 0.091837018728256...
func Infof(sl *SubLogger, format string, a ...interface{}) { mu.RLock() defer mu.RUnlock() if f := sl.getFields(); f != nil { sl.getFields().stagef(f.logger.InfoHeader, format, a...) } }
[ 0.17752857506275177, -0.39274904131889343, 0.4972769320011139, 0.5936434268951416, 0.23093688488006592, -0.335097998380661, 0.7076272368431091, 0.3021722137928009, -0.7566487789154053, -0.40957891941070557, -0.25705140829086304, 0.4784890115261078, 0.5110084414482117, 0.7897495031356812, ...
func InfofWithFields(sl *SubLogger, extra ExtraFields, format string, a ...interface{}) { //nolint:goprintffuncname // False positive mu.RLock() defer mu.RUnlock() if f := sl.getFields(); f != nil { f.structuredFields = extra f.stagef(f.logger.InfoHeader, format, a...) } }
[ 0.32890254259109497, -0.16175012290477753, 0.4899110198020935, 0.1463870108127594, -0.18041525781154633, -0.19330984354019165, 0.3697150945663452, 0.5411083698272705, -0.3936265707015991, -0.5759501457214355, -0.5589691996574402, 0.28393328189849854, 0.39929983019828796, 0.3633589446544647...
func Debugf(sl *SubLogger, data string, v ...interface{}) { mu.RLock() defer mu.RUnlock() if f := sl.getFields(); f != nil { sl.getFields().stagef(f.logger.DebugHeader, data, v...) } }
[ -0.003962463699281216, 0.48903679847717285, 0.4918069839477539, 0.6060301065444946, -0.47652560472488403, -0.7720968723297119, 0.22029894590377808, 0.015109519474208355, -1.3738914728164673, -0.7273144721984863, -0.6451791524887085, 0.010098036378622055, -0.03303610906004906, 0.95444607734...
func DebugfWithFields(sl *SubLogger, extra ExtraFields, format string, a ...interface{}) { //nolint:goprintffuncname // False positive mu.RLock() defer mu.RUnlock() if f := sl.getFields(); f != nil { f.structuredFields = extra f.stagef(f.logger.DebugHeader, format, a...) } }
[ 0.12424560636281967, 0.5238763093948364, 0.537450909614563, -0.2576480805873871, -0.47393733263015747, -0.4950834810733795, -0.009700650349259377, 0.3681095242500305, -0.5165768265724182, -1.0156060457229614, -0.7307848334312439, -0.1616421490907669, 0.10832186788320541, 0.7047595977783203...
func Warnf(sl *SubLogger, data string, v ...interface{}) { mu.RLock() defer mu.RUnlock() if f := sl.getFields(); f != nil { sl.getFields().stagef(f.logger.WarnHeader, data, v...) } }
[ 0.3233485221862793, 0.32946208119392395, 0.35626208782196045, 0.5719664096832275, -0.424630731344223, -0.6670504808425903, 0.8160420656204224, 0.20997874438762665, -1.2510876655578613, -0.2079840749502182, -0.40622150897979736, 0.8199500441551208, 0.3740260601043701, 0.4196526110172272, ...
func WarnfWithFields(sl *SubLogger, extra ExtraFields, format string, a ...interface{}) { //nolint:goprintffuncname // False positive mu.RLock() defer mu.RUnlock() if f := sl.getFields(); f != nil { f.structuredFields = extra f.stagef(f.logger.WarnHeader, format, a...) } }
[ 0.3094913363456726, 0.2893540561199188, 0.42514729499816895, 0.11466578394174576, -0.45964452624320984, -0.44538193941116333, 0.4607877731323242, 0.4407923221588135, -0.5561453104019165, -0.4258071482181549, -0.6421434879302979, 0.7046573162078857, 0.5769139528274536, 0.23765726387500763, ...
func (l *fields) enabled(header string) string { switch header { case l.logger.InfoHeader: if l.info { return "info" } case l.logger.WarnHeader: if l.warn { return "warn" } case l.logger.ErrorHeader: if l.error { return "error" } case l.logger.DebugHeader: if l.debug { return "debug" } ...
[ 0.395852267742157, -0.791445255279541, 0.8008432984352112, -0.6905732154846191, -0.06440320611000061, 0.3614986836910248, -1.107271432876587, 0.2814231812953949, -0.17243745923042297, -0.09394121915102005, -0.8042130470275879, 0.2281724065542221, -0.6251094937324524, 0.05326032638549805, ...
func (l *fields) stage(header string, deferFunc deferral) { if l == nil { return } if level := l.enabled(header); level != "" { l.output.StageLogEvent(deferFunc, header, l.name, l.logger.Spacer, l.logger.TimestampFormat, l.botName, level, l.logger.ShowLogSystemName, l.logger.BypassJobChan...
[ 0.283782422542572, -0.13552820682525635, 0.6143028140068054, -0.14402246475219727, -0.28537845611572266, 0.04753422364592552, 0.40913811326026917, 0.6404536962509155, -0.7209259271621704, -0.4753818213939667, -0.5923146605491638, 0.4720798134803772, -0.39694857597351074, 0.8318756222724915...
func (l *fields) stageln(header string, a ...interface{}) { l.stage(header, func() string { return fmt.Sprint(a...) }) }
[ -0.9784578084945679, -0.4075656533241272, 0.4829838275909424, 0.6432541608810425, -1.1024186611175537, -0.5465021133422852, 0.004501854535192251, 0.4658488929271698, -0.6470309495925903, -0.23539917171001434, -0.5232275724411011, -0.4267720580101013, 0.2882075309753418, 0.604874849319458, ...
func (l *fields) stagef(header, format string, a ...interface{}) { l.stage(header, func() string { return fmt.Sprintf(format, a...) }) }
[ -0.47538095712661743, -0.5370740294456482, 0.3817879259586334, 0.04774249717593193, -0.8259320855140686, -0.5315462946891785, 0.17551811039447784, 0.6700018048286438, -1.3522135019302368, -0.2049436718225479, -0.29464226961135864, -0.3846557140350342, 0.22870862483978271, 0.714778542518615...
func New(length int) func() *Float32s { return func() *Float32s { result := make(Float32s, length) for i := 0; i < length; i++ { result[i] = randFloat32() } return &result } }
[ -0.23907874524593353, 0.20826023817062378, 0.39223435521125793, -1.560100793838501, -0.2600418031215668, -0.44548287987709045, 0.6364390850067139, -0.8072521090507507, -0.027430882677435875, -0.7890171408653259, -1.2001618146896362, 0.6110393404960632, 0.11034974455833435, 0.40260708332061...
func (g *Float32s) String() string { if g == nil { return "<nil>" } return fmt.Sprintf("%+v", *g) }
[ 0.5862866640090942, 0.542700469493866, 0.22002795338630676, -0.5622033476829529, -0.159059539437294, 0.3514092266559601, 0.20858827233314514, -1.215986967086792, -0.10876321792602539, -0.26685595512390137, 0.048579927533864975, 0.633413553237915, -0.39904507994651794, 0.4675642251968384, ...
func (g *Float32s) Reset() { // No state }
[ 0.3858734667301178, 0.864996075630188, 0.23951666057109833, -0.48869800567626953, 0.42817047238349915, 0.7383938431739807, 1.4704729318618774, -1.2470595836639404, -1.201433777809143, -0.9916312098503113, -0.5541473627090454, 0.934203028678894, -0.396219402551651, 0.34173816442489624, -0...
func (g *Float32s) Mutate() { const rate = 0.02 if mrand.Float32() >= rate { return } i := mrand.Int31n(int32(len(*g))) (*g)[i] = mrand.Float32() }
[ -0.13304376602172852, 1.3514758348464966, 0.41116923093795776, -0.521691083908081, 0.7266880869865417, 0.5441885590553284, 0.019386734813451767, -1.420128583908081, -0.05983128771185875, 0.008255611173808575, -0.10077106952667236, 0.7243976593017578, -0.5678128600120544, 0.8482716083526611...
func (g *Float32s) Crossover(p1, p2 evolve.Genome) { v1, v2 := *p1.(*Float32s), *p2.(*Float32s) n := len(v1) for i := 0; i < n; i++ { (*g)[i] = crossover(v1[i], v2[i]) } }
[ 0.08214136213064194, 1.2507590055465698, 0.7159290909767151, 0.8886803984642029, -0.11057747900485992, 1.3620489835739136, -0.7355486750602722, -0.1637599766254425, -1.3262544870376587, 0.9345433115959167, -0.23664043843746185, 1.30845308303833, -0.04228481650352478, 0.008405051194131374, ...
func crossover(v1, v2 float32) float32 { const delta = 0.10 switch { case isNan(v1) && isNan(v2): return randFloat32() case isNan(v1): return v2 case isNan(v2) || v1 == v2: return v1 default: // e.g. [5, 10], move by x% towards 10 return v1 + ((v2 - v1) * delta) } }
[ 0.243006631731987, 0.5190840363502502, 0.8785943388938904, 0.797224760055542, -0.4048512578010559, 0.7003087997436523, -0.35464632511138916, -0.679749608039856, -0.08926581591367722, 0.4664251208305359, 0.1323705017566681, 0.911666214466095, -0.40486443042755127, -0.6149005889892578, -0....
func checkTargetMapContainsSourceMap(source, target map[string]interface{}) bool { for key, sourceValue := range source { targetValue, exist := target[key] if !exist && !reflect.DeepEqual(sourceValue, targetValue) { return false } } return true }
[ -0.5947003364562988, -0.7376149296760559, 0.49982357025146484, -0.39624711871147156, 0.029022645205259323, 0.6689703464508057, -0.3076687753200531, 0.3366372287273407, -0.7590999007225037, 0.5629352331161499, 0.371454656124115, 0.06305087357759476, -0.10153871774673462, 0.6722112894058228,...
func (s *Stage) ToJSON() ([]byte, error) { return json.Marshal(s) }
[ -0.7545326352119446, -0.8374060392379761, 0.5756705403327942, 0.4996907114982605, -0.8686115741729736, -0.38886794447898865, 0.8755638003349304, 0.3662227690219879, 0.4980849325656891, 0.588615894317627, -1.1183768510818481, 0.7462071180343628, -0.15850462019443512, 0.28551653027534485, ...
func (s *Stage) FromJSON(b []byte) error { var res Stage if err := json.Unmarshal(b, &res); err != nil { return err } *s = res return nil }
[ -0.4311772584915161, -0.6074641346931458, 0.39873459935188293, 0.1561935544013977, -1.355648159980774, -0.25329580903053284, 0.3653765916824341, 0.4164964258670807, 0.6368396282196045, 0.6095806360244751, -1.0289454460144043, 0.281649112701416, -0.2396077960729599, 0.4095149338245392, 0....
func LoadComponent(text []byte) (*Component, error) { def := &Component{} if err := yaml.Unmarshal(text, def); err != nil { return nil, err } return def, nil }
[ 0.9348801374435425, -0.26077812910079956, 0.15673087537288666, -0.5351044535636902, -0.8518322706222534, -0.5975475907325745, -0.11469889432191849, 0.6735324859619141, 0.24909988045692444, -0.23173567652702332, -0.5412728786468506, -0.11940999329090118, -0.4758346676826477, 0.4874093532562...
func LoadComponentFromPath(path string) (*Component, error) { data, err := ioutil.ReadFile(path) if err != nil { return nil, err } def, err := LoadComponent(data) if err != nil { return nil, err } def.Path = path return def, nil }
[ 1.059679627418518, -0.694631814956665, 0.5134440064430237, -0.3219091594219208, -0.833698570728302, 0.16932666301727295, -0.20054706931114197, -0.5329170227050781, 0.15824541449546814, -0.4578089416027069, -0.4385247230529785, -0.22430679202079773, -0.07671622186899185, -0.2148042470216751...
func (c *Component) Merge(other *Component) *Component { r := &Component{ Path: other.Path, Name: mergeStr(c.Name, other.Name), App: mergeStr(c.App, other.App), Kind: mergeStr(c.Kind, other.Kind), Ignore: mergeBool(c.Ignore, other.Ignore), Docker: mergeDocker(c.Docker...
[ -0.07682056725025177, -0.7017494440078735, 0.6014074683189392, -0.7201523184776306, 0.3629198968410492, 0.5239402055740356, -0.7493773698806763, -0.6077540516853333, 0.4061454236507416, -1.0903096199035645, -0.37511497735977173, 0.14038847386837006, -0.22450685501098633, 0.2818126678466797...
func HandlerMatkulPost(w http.ResponseWriter, r *http.Request) { defer r.Body.Close() body, err := ioutil.ReadAll(r.Body) if err != nil { http.Error(w, err.Error(), http.StatusInternalServerError) return } var data Matkul if err = json.Unmarshal(body, &data); err != nil { http.Error(w, err.Error(), http.S...
[ -0.4302256405353546, 0.22614967823028564, 1.1901391744613647, 0.05099945142865181, -0.43112310767173767, 0.39849987626075745, -0.139881893992424, -0.21769902110099792, -0.25223493576049805, 0.6687233448028564, -0.25650554895401, -0.9523739814758301, -0.013064532540738583, 0.327043145895004...
func HandlerMatkulDelete(w http.ResponseWriter, r *http.Request) { last := LastIndex(r) data := Matkul{ID: last} if err := data.Delete(db); err != nil { http.Error(w, err.Error(), http.StatusInternalServerError) return } w.Write([]byte("true")) }
[ 0.16204610466957092, -0.28772488236427307, 0.8139207363128662, -0.052975695580244064, 0.031781747937202454, 0.014559813775122166, 0.2064158320426941, 0.12949565052986145, 0.26245105266571045, 0.6101343631744385, 0.1405794471502304, -1.1749927997589111, -0.48824095726013184, 0.1731020808219...
func HandlerMatkulUpdate(w http.ResponseWriter, r *http.Request) { last := LastIndex(r) body, err := ioutil.ReadAll(r.Body) if err != nil { http.Error(w, err.Error(), http.StatusInternalServerError) return } jsonMap := make(map[string]interface{}) err = json.Unmarshal(body, &jsonMap) if err != nil { htt...
[ -1.1326470375061035, -0.5026567578315735, 1.1047616004943848, -0.01766914874315262, -0.8353882431983948, 0.10157094150781631, -0.22516818344593048, -0.4578685462474823, -0.007700768299400806, 0.5479981303215027, -0.18361976742744446, -0.5407001972198486, 0.02085830271244049, -0.06546671688...
func (jlf *JSONLineFormatter) FormatLines(lines []*line.StatLine, headerKeys []string, keyNames map[string]string) string { // middle ground b/t the StatLines and the JSON string to be returned jsonFormat := map[string]interface{}{} // convert each StatLine to JSON for _, l := range lines { lineJson := make(map[...
[ -0.4853084981441498, -1.0990245342254639, 0.6468066573143005, -0.8639761805534363, -0.7636764645576477, -0.38675519824028015, -1.0894218683242798, -0.7677251100540161, -0.4292164742946625, -0.15021881461143494, 1.0011292695999146, 0.021080052480101585, 0.1796988695859909, 0.934227347373962...
func (Settings_Category) EnumDescriptor() ([]byte, []int) { return file_google_actions_sdk_v2_settings_proto_rawDescGZIP(), []int{0, 0} }
[ -0.9877107739448547, 0.6640291213989258, 0.36137697100639343, 0.11248432099819183, 0.5930482149124146, -1.0356369018554688, 0.1013297364115715, -0.9302552938461304, -0.4638908803462982, 0.42103302478790283, 0.11447476595640182, 0.2442745864391327, 0.5991629958152771, 1.249433994293213, 0...
func (*Settings) Descriptor() ([]byte, []int) { return file_google_actions_sdk_v2_settings_proto_rawDescGZIP(), []int{0} }
[ -1.095309853553772, 1.1638950109481812, 0.25226420164108276, -0.3543406128883362, 0.24132883548736572, -0.5471089482307434, 0.3014604151248932, -0.35788917541503906, -0.4473307728767395, -0.21173332631587982, -0.25689807534217834, 0.003102952614426613, 0.37901121377944946, 0.32418072223663...
func (a *ClinicalMetadataServiceApiService) GetCelltransplant(ctx _context.Context, celltransplantId string) (Ga4ghCelltransplant, *_nethttp.Response, error) { var ( localVarHttpMethod = _nethttp.MethodGet localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFile...
[ -0.38987603783607483, 0.02194708213210106, 0.6760640740394592, -0.8313319087028503, -0.4148631989955902, -0.3482850193977356, 0.1598830372095108, -0.7418450713157654, -0.24119028449058533, 0.014091684482991695, -0.2016991227865219, 0.7286975979804993, -0.7836332321166992, -0.10274793207645...
func (a *ClinicalMetadataServiceApiService) GetChemotherapy(ctx _context.Context, chemotherapyId string) (Ga4ghChemotherapy, *_nethttp.Response, error) { var ( localVarHttpMethod = _nethttp.MethodGet localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes ...
[ -0.7202720046043396, -0.34099912643432617, 0.9521837830543518, -0.7756588459014893, -0.03342359513044357, -0.03822919353842735, 0.1531122624874115, -0.37346768379211426, -0.6014105677604675, 0.5486825108528137, -0.38923677802085876, 0.8341380953788757, -0.7643343806266785, 0.65632814168930...
func (a *ClinicalMetadataServiceApiService) GetComplication(ctx _context.Context, complicationId string) (Ga4ghComplication, *_nethttp.Response, error) { var ( localVarHttpMethod = _nethttp.MethodGet localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes ...
[ -0.6787897348403931, -0.09805920720100403, 1.0913138389587402, -0.30382484197616577, -0.022805476561188698, -0.596023678779602, 0.6019102931022644, -0.18442797660827637, -0.1617404818534851, 0.5689002275466919, 0.12670597434043884, 0.83223956823349, -0.8051851391792297, 0.13998767733573914...
func (a *ClinicalMetadataServiceApiService) GetConsent(ctx _context.Context, consentId string) (Ga4ghConsent, *_nethttp.Response, error) { var ( localVarHttpMethod = _nethttp.MethodGet localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte loc...
[ -0.37514519691467285, -0.273925244808197, 1.0858229398727417, -0.3730410933494568, -0.13085690140724182, -0.31776511669158936, 0.13677434623241425, -0.8461394309997559, -0.4957239031791687, 0.7960330247879028, 0.29404717683792114, 0.8816906809806824, -0.6768639087677002, -0.090796746313571...
func (a *ClinicalMetadataServiceApiService) GetDiagnosis(ctx _context.Context, diagnosisId string) (Ga4ghDiagnosis, *_nethttp.Response, error) { var ( localVarHttpMethod = _nethttp.MethodGet localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte...
[ -0.913955569267273, -0.08141810446977615, 1.0475127696990967, -0.4588724374771118, -0.018194986507296562, -0.43388012051582336, 0.3757081627845764, -0.367784708738327, -0.2755492329597473, 0.5468127131462097, 0.4384273886680603, 0.4199657440185547, -0.2058006078004837, 0.33654436469078064,...
func (a *ClinicalMetadataServiceApiService) GetEnrollment(ctx _context.Context, enrollmentId string) (Ga4ghEnrollment, *_nethttp.Response, error) { var ( localVarHttpMethod = _nethttp.MethodGet localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []b...
[ -0.9842479825019836, 0.18448464572429657, 1.1018550395965576, -0.6122412085533142, -0.3493397533893585, -0.1424611508846283, 0.5795332789421082, -0.6572471857070923, -0.13537611067295074, 0.609559953212738, 0.2833089828491211, 1.1550755500793457, -0.41716820001602173, 0.5781323909759521, ...
func (a *ClinicalMetadataServiceApiService) GetImmunotherapy(ctx _context.Context, immunotherapyId string) (Ga4ghImmunotherapy, *_nethttp.Response, error) { var ( localVarHttpMethod = _nethttp.MethodGet localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileByt...
[ -1.2923680543899536, -0.12825319170951843, 0.8443965315818787, -1.0190430879592896, -0.4510171115398407, -0.5358596444129944, 0.2144761085510254, -1.0749425888061523, 0.06274985522031784, 0.706665575504303, -0.057309336960315704, 1.055810570716858, -1.3770240545272827, -0.37586069107055664...
func (a *ClinicalMetadataServiceApiService) GetLabtest(ctx _context.Context, labtestId string) (Ga4ghLabtest, *_nethttp.Response, error) { var ( localVarHttpMethod = _nethttp.MethodGet localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte loc...
[ -0.16869641840457916, -0.15259799361228943, 0.7567728161811829, -0.8905858993530273, -0.03601091355085373, 0.42242419719696045, -0.19540444016456604, -1.2490376234054565, -0.27399492263793945, -0.07640261203050613, 0.47750404477119446, 0.7426596283912659, -1.2058417797088623, -0.0615446791...
func (a *ClinicalMetadataServiceApiService) GetOutcome(ctx _context.Context, outcomeId string) (Ga4ghOutcome, *_nethttp.Response, error) { var ( localVarHttpMethod = _nethttp.MethodGet localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte loc...
[ -0.7356516122817993, -0.2719230353832245, 1.194309115409851, -0.09423128515481949, -0.2767127454280853, -0.3300032913684845, 0.5490661263465881, -0.4808383584022522, -0.4471307098865509, 0.5206789374351501, 0.2800210416316986, 0.5346669554710388, -0.5568567514419556, 0.2544446885585785, ...
func (a *ClinicalMetadataServiceApiService) GetPatient(ctx _context.Context, patientId string) (Ga4ghPatient, *_nethttp.Response, error) { var ( localVarHttpMethod = _nethttp.MethodGet localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte loc...
[ -0.6910765767097473, -0.07051444798707962, 1.0825493335723877, -0.6234903931617737, -0.37918582558631897, -0.09274579584598541, 0.06051981821656227, -0.619558572769165, -0.549224317073822, 0.16213245689868927, 0.4028793275356293, 0.882867693901062, -0.8130050301551819, 0.18289922177791595,...
func (a *ClinicalMetadataServiceApiService) GetRadiotherapy(ctx _context.Context, radiotherapyId string) (Ga4ghRadiotherapy, *_nethttp.Response, error) { var ( localVarHttpMethod = _nethttp.MethodGet localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes ...
[ -0.9790361523628235, -0.25004279613494873, 0.8000845909118652, -0.9800817370414734, 0.11372537910938263, -0.12813377380371094, 0.39741283655166626, -1.196414589881897, -0.2907709777355194, 0.46040016412734985, -0.18078671395778656, 0.8634666800498962, -0.7994369864463806, 0.068508058786392...
func (a *ClinicalMetadataServiceApiService) GetSample(ctx _context.Context, sampleId string) (Ga4ghSample, *_nethttp.Response, error) { var ( localVarHttpMethod = _nethttp.MethodGet localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte localV...
[ -0.5042486786842346, 0.018246307969093323, 1.0032159090042114, -0.08819941431283951, -0.23816707730293274, -0.7021889686584473, 0.2506940960884094, -0.8461657166481018, -0.13611119985580444, 0.2841302752494812, 0.26536062359809875, 1.1520503759384155, -0.9886620044708252, 0.340215295553207...
func (a *ClinicalMetadataServiceApiService) GetSlide(ctx _context.Context, slideId string) (Ga4ghSlide, *_nethttp.Response, error) { var ( localVarHttpMethod = _nethttp.MethodGet localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte localVarR...
[ -0.4796452522277832, -0.23081068694591522, 1.0397981405258179, -0.06074918434023857, 0.16498956084251404, -0.7632265686988831, 0.05496445670723915, -0.7384055256843567, -0.6981135606765747, 0.20047776401042938, 0.20222103595733643, 0.6879875659942627, -0.9604257941246033, 0.598465442657470...
func (a *ClinicalMetadataServiceApiService) GetStudy(ctx _context.Context, studyId string) (Ga4ghStudy, *_nethttp.Response, error) { var ( localVarHttpMethod = _nethttp.MethodGet localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte localVarR...
[ -0.6956486701965332, 0.00928487628698349, 1.0400376319885254, -0.2864736020565033, 0.09718899428844452, -0.4893883466720581, 0.008300239220261574, -0.7734249830245972, -0.1543300300836563, 0.0035133790224790573, 0.2204032689332962, 1.1623989343643188, -0.5775814652442932, 0.262361615896225...
func (a *ClinicalMetadataServiceApiService) GetSurgery(ctx _context.Context, surgeryId string) (Ga4ghSurgery, *_nethttp.Response, error) { var ( localVarHttpMethod = _nethttp.MethodGet localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte loc...
[ -0.662074089050293, -0.022043457254767418, 1.035459041595459, -0.21575091779232025, -0.08959443867206573, -0.7181084752082825, 0.43060222268104553, -0.7841522097587585, -0.3616243004798889, 0.08450709283351898, 0.10890068113803864, 0.9428783059120178, -0.6152966022491455, 0.233387440443038...
func (a *ClinicalMetadataServiceApiService) GetTreatment(ctx _context.Context, treatmentId string) (Ga4ghTreatment, *_nethttp.Response, error) { var ( localVarHttpMethod = _nethttp.MethodGet localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes []byte...
[ -0.8060195446014404, -0.12036851048469543, 0.9177016615867615, -1.1211462020874023, 0.03591952845454216, -0.5058832764625549, 0.4514355957508087, -0.9059210419654846, -0.1014380156993866, 0.5729030966758728, 0.20124435424804688, 0.990195095539093, -0.8261682391166687, 0.09804535657167435, ...
func (a *ClinicalMetadataServiceApiService) GetTumourboard(ctx _context.Context, tumourboardId string) (Ga4ghTumourboard, *_nethttp.Response, error) { var ( localVarHttpMethod = _nethttp.MethodGet localVarPostBody interface{} localVarFormFileName string localVarFileName string localVarFileBytes ...
[ -0.8181763291358948, 0.5725718140602112, 0.9412106871604919, -0.5632045865058899, -0.5760164260864258, -0.2648867964744568, 0.699524462223053, -0.710584282875061, -0.4949980676174164, 0.2452310472726822, 0.13982106745243073, 0.4557437300682068, -0.6589038372039795, 0.3422032296657562, 0....
func (a *ClinicalMetadataServiceApiService) SearchCelltransplants(ctx _context.Context, body Ga4ghSearchCelltransplantsRequest) (Ga4ghSearchCelltransplantsResponse, *_nethttp.Response, error) { var ( localVarHttpMethod = _nethttp.MethodPost localVarPostBody interface{} localVarFormFileName string localVa...
[ -0.3795458972454071, 0.20855501294136047, 0.7951695919036865, -0.5373735427856445, -0.4623103737831116, -0.23128929734230042, 0.2548772692680359, -0.7348398566246033, -0.44729042053222656, 0.18352742493152618, 0.05424301698803902, 0.4583151936531067, -0.8358981609344482, 0.0130172260105609...
func (a *ClinicalMetadataServiceApiService) SearchChemotherapies(ctx _context.Context, body Ga4ghSearchChemotherapiesRequest) (Ga4ghSearchChemotherapiesResponse, *_nethttp.Response, error) { var ( localVarHttpMethod = _nethttp.MethodPost localVarPostBody interface{} localVarFormFileName string localVarFi...
[ -0.4889744520187378, -0.29076191782951355, 0.726993978023529, -0.8451722860336304, -0.19611206650733948, 0.34184718132019043, -0.20385518670082092, -0.4269568622112274, -0.7084180116653442, 0.29650840163230896, -0.3245689868927002, 0.3294297456741333, -1.2876108884811401, 0.464157551527023...
func (a *ClinicalMetadataServiceApiService) SearchComplications(ctx _context.Context, body Ga4ghSearchComplicationsRequest) (Ga4ghSearchComplicationsResponse, *_nethttp.Response, error) { var ( localVarHttpMethod = _nethttp.MethodPost localVarPostBody interface{} localVarFormFileName string localVarFileN...
[ -0.7742359042167664, 0.12957729399204254, 1.0104511976242065, -0.7147720456123352, -0.3059191107749939, -0.18589960038661957, 0.3619695007801056, -0.6847739219665527, -0.37845754623413086, 0.14032092690467834, 0.0330669991672039, 0.29522570967674255, -1.0744962692260742, 0.0001529595465399...
func (a *ClinicalMetadataServiceApiService) SearchConsents(ctx _context.Context, body Ga4ghSearchConsentsRequest) (Ga4ghSearchConsentsResponse, *_nethttp.Response, error) { var ( localVarHttpMethod = _nethttp.MethodPost localVarPostBody interface{} localVarFormFileName string localVarFileName string ...
[ -0.7888022661209106, -0.2805658280849457, 1.0164941549301147, -0.804108202457428, -0.3984026312828064, -0.06616543233394623, 0.127360001206398, -0.9122754335403442, -0.7542890310287476, 0.5901796221733093, 0.6201978921890259, 0.3948279023170471, -1.2437812089920044, -0.0979808047413826, ...
func (a *ClinicalMetadataServiceApiService) SearchDiagnoses(ctx _context.Context, body Ga4ghSearchDiagnosesRequest) (Ga4ghSearchDiagnosesResponse, *_nethttp.Response, error) { var ( localVarHttpMethod = _nethttp.MethodPost localVarPostBody interface{} localVarFormFileName string localVarFileName stri...
[ -0.8899998664855957, 0.17708246409893036, 0.9985818862915039, -0.8510755896568298, -0.282647967338562, 0.020490232855081558, 0.38693052530288696, -0.6525917649269104, -0.41965118050575256, 0.04945053905248642, 0.3161134123802185, 0.27129146456718445, -0.9226740002632141, 0.0309221763163805...
func (a *ClinicalMetadataServiceApiService) SearchEnrollments(ctx _context.Context, body Ga4ghSearchEnrollmentsRequest) (Ga4ghSearchEnrollmentsResponse, *_nethttp.Response, error) { var ( localVarHttpMethod = _nethttp.MethodPost localVarPostBody interface{} localVarFormFileName string localVarFileName ...
[ -0.9915767908096313, 0.30529898405075073, 1.0140368938446045, -0.616983950138092, -0.7214993238449097, 0.26266607642173767, 0.4164559245109558, -0.8085747957229614, -0.38410401344299316, 0.4358283579349518, 0.2217278778553009, 0.6348908543586731, -0.9316417574882507, 0.443809449672699, 0...
func (a *ClinicalMetadataServiceApiService) SearchImmunotherapies(ctx _context.Context, body Ga4ghSearchImmunotherapiesRequest) (Ga4ghSearchImmunotherapiesResponse, *_nethttp.Response, error) { var ( localVarHttpMethod = _nethttp.MethodPost localVarPostBody interface{} localVarFormFileName string localVa...
[ -1.0601400136947632, -0.20738156139850616, 0.8221707940101624, -1.0680164098739624, -0.5583518147468567, 0.11188426613807678, 0.07384156435728073, -0.9196276664733887, -0.5176982879638672, 0.6448724865913391, -0.1542833000421524, 0.8619158864021301, -1.6322427988052368, -0.3438768088817596...
func (a *ClinicalMetadataServiceApiService) SearchLabtests(ctx _context.Context, body Ga4ghSearchLabtestsRequest) (Ga4ghSearchLabtestsResponse, *_nethttp.Response, error) { var ( localVarHttpMethod = _nethttp.MethodPost localVarPostBody interface{} localVarFormFileName string localVarFileName string ...
[ -0.42793044447898865, -0.4329727292060852, 0.8893121480941772, -0.8722527623176575, -0.3181857466697693, 0.6921409964561462, 0.01892082765698433, -1.192081332206726, -0.5939193964004517, -0.16526345908641815, 0.2621462047100067, 0.33249494433403015, -1.8060249090194702, -0.1337266564369201...
func (a *ClinicalMetadataServiceApiService) SearchOutcomes(ctx _context.Context, body Ga4ghSearchOutcomesRequest) (Ga4ghSearchOutcomesResponse, *_nethttp.Response, error) { var ( localVarHttpMethod = _nethttp.MethodPost localVarPostBody interface{} localVarFormFileName string localVarFileName string ...
[ -0.8113530278205872, -0.1339523047208786, 0.9638046026229858, -0.9297239184379578, -0.5084573030471802, -0.18818563222885132, 0.16035965085029602, -0.318595826625824, -0.5197973847389221, 0.08730515837669373, 0.34852519631385803, 0.0032663834281265736, -0.9188777208328247, 0.01499818731099...
func (a *ClinicalMetadataServiceApiService) SearchPatients(ctx _context.Context, body Ga4ghSearchPatientsRequest) (Ga4ghSearchPatientsResponse, *_nethttp.Response, error) { var ( localVarHttpMethod = _nethttp.MethodPost localVarPostBody interface{} localVarFormFileName string localVarFileName string ...
[ -1.081702470779419, -0.19523541629314423, 0.7702281475067139, -0.890917181968689, -0.586388111114502, 0.10398319363594055, -0.11616835743188858, -0.32324662804603577, -0.7923719882965088, 0.4648716151714325, 0.36736103892326355, 0.7499106526374817, -1.273643136024475, -0.1094890907406807, ...
func (a *ClinicalMetadataServiceApiService) SearchRadiotherapies(ctx _context.Context, body Ga4ghSearchRadiotherapiesRequest) (Ga4ghSearchRadiotherapiesResponse, *_nethttp.Response, error) { var ( localVarHttpMethod = _nethttp.MethodPost localVarPostBody interface{} localVarFormFileName string localVarFi...
[ -0.7699077129364014, -0.24965845048427582, 0.6436815857887268, -0.9920752644538879, -0.29041457176208496, 0.3128889799118042, 0.16066530346870422, -1.153713345527649, -0.595134437084198, 0.13310368359088898, 0.17115195095539093, 0.1705838441848755, -1.36847984790802, 0.13516074419021606, ...
func (a *ClinicalMetadataServiceApiService) SearchSamples(ctx _context.Context, body Ga4ghSearchSamplesRequest) (Ga4ghSearchSamplesResponse, *_nethttp.Response, error) { var ( localVarHttpMethod = _nethttp.MethodPost localVarPostBody interface{} localVarFormFileName string localVarFileName string l...
[ -0.7045153379440308, -0.1815389096736908, 0.9190031886100769, -0.5925905108451843, -0.3672533333301544, 0.1877010464668274, 0.19215980172157288, -0.7768694758415222, -0.5363512635231018, 0.1321999728679657, 0.46442750096321106, 0.5112212300300598, -1.2477909326553345, 0.13664910197257996, ...
func (a *ClinicalMetadataServiceApiService) SearchSlides(ctx _context.Context, body Ga4ghSearchSlidesRequest) (Ga4ghSearchSlidesResponse, *_nethttp.Response, error) { var ( localVarHttpMethod = _nethttp.MethodPost localVarPostBody interface{} localVarFormFileName string localVarFileName string loca...
[ -0.44994398951530457, -0.1552361696958542, 1.0019911527633667, -0.7668734192848206, -0.11672414839267731, 0.15013083815574646, 0.0766499787569046, -1.0459399223327637, -0.6056095361709595, 0.2335243821144104, 0.031680118292570114, 0.515196681022644, -1.2777419090270996, 0.20513038337230682...
func (a *ClinicalMetadataServiceApiService) SearchStudies(ctx _context.Context, body Ga4ghSearchStudiesRequest) (Ga4ghSearchStudiesResponse, *_nethttp.Response, error) { var ( localVarHttpMethod = _nethttp.MethodPost localVarPostBody interface{} localVarFormFileName string localVarFileName string l...
[ -1.1297543048858643, 0.25732699036598206, 0.8285585045814514, -0.8880161046981812, -0.5345353484153748, 0.04856298863887787, 0.2719162106513977, -0.782409131526947, -0.24787168204784393, 0.16858509182929993, 0.15856590867042542, 0.45614418387413025, -1.125150203704834, -0.03441962599754333...
func (a *ClinicalMetadataServiceApiService) SearchSurgeries(ctx _context.Context, body Ga4ghSearchSurgeriesRequest) (Ga4ghSearchSurgeriesResponse, *_nethttp.Response, error) { var ( localVarHttpMethod = _nethttp.MethodPost localVarPostBody interface{} localVarFormFileName string localVarFileName stri...
[ -0.6891459226608276, 0.1433265656232834, 0.8552465438842773, -1.1208816766738892, -0.2326398491859436, -0.002725906204432249, 0.3203987777233124, -0.9409012198448181, -0.7319002151489258, 0.0950474962592125, 0.41202598810195923, 0.36329570412635803, -1.01240074634552, 0.0661008283495903, ...
func (a *ClinicalMetadataServiceApiService) SearchTreatments(ctx _context.Context, body Ga4ghSearchTreatmentsRequest) (Ga4ghSearchTreatmentsResponse, *_nethttp.Response, error) { var ( localVarHttpMethod = _nethttp.MethodPost localVarPostBody interface{} localVarFormFileName string localVarFileName s...
[ -0.9019055366516113, 0.27478641271591187, 0.7903438210487366, -1.0029910802841187, -0.33159536123275757, -0.11984873563051224, 0.6459481716156006, -1.0840532779693604, -0.43219807744026184, 0.3095392882823944, 0.26871955394744873, 0.1715106964111328, -1.2128292322158813, -0.179634973406791...
func (a *ClinicalMetadataServiceApiService) SearchTumourboards(ctx _context.Context, body Ga4ghSearchTumourboardsRequest) (Ga4ghSearchTumourboardsResponse, *_nethttp.Response, error) { var ( localVarHttpMethod = _nethttp.MethodPost localVarPostBody interface{} localVarFormFileName string localVarFileName...
[ -0.8537003397941589, 0.4354500472545624, 0.9089213013648987, -0.7320249676704407, -0.6549679040908813, 0.09733901172876358, 0.725259006023407, -1.0066965818405151, -0.7897605299949646, 0.3149905502796173, 0.003747031558305025, 0.10055582225322723, -1.0211564302444458, 0.3050084114074707, ...
func NewManager(cfgManager config.Manager, metricsCl metrics.Client) Manager { return &manager{ targetClient: map[string]Client{}, cfgManager: cfgManager, metricCl: metricsCl, } }
[ 0.1336134672164917, -0.10806126892566681, 0.14676819741725922, -0.07348024845123291, -0.7591606378555298, 0.48868629336357117, -0.2626636326313019, -0.19480127096176147, -0.5356172323226929, -0.2753104269504547, 0.41933518648147583, 0.40777769684791565, -0.10379298031330109, 1.295586347579...
func RunCommandLine() error { // Default options return RunCommandLineWithOptions() }
[ -0.6374953985214233, -0.5476662516593933, 0.3860636055469513, 0.6965277791023254, 0.6615023016929626, 0.5826191902160645, 0.10113736242055893, -0.08619081228971481, -0.3321346640586853, -0.24379689991474152, -0.5327315926551819, -0.007066408637911081, -0.4850238561630249, 0.133758276700973...
func RunCommandLineWithOptions() error { // with is a set of paths that the user has specificed for naml // to run with var with cli.StringSlice // verbose is the logger verbosity var verbose bool = false // kubeconfig is the --kubeconfig value // which is used in our Client() code var kubeconfig string // ...
[ 0.5563839673995972, -1.3435050249099731, 0.9926642179489136, 0.5361508131027222, 0.20644883811473846, 0.829176664352417, -0.2718490660190582, -0.1721372902393341, -0.44744884967803955, 0.5260668992996216, -0.49491164088249207, 0.49034905433654785, 0.30297398567199707, 0.6025559306144714, ...
func AllInit(kubeConfigPath string, verbose bool, with []string) error { // [ Verbosity System ] if verbose { logger.BitwiseLevel = logger.LogEverything logger.Always("*** [ Verbose Mode ] ***") } else { logger.BitwiseLevel = logger.LogAlways | logger.LogCritical | logger.LogWarning | logger.LogDeprecated } ...
[ 0.5887380838394165, -0.8327239751815796, 0.7787283062934875, 0.7254745364189148, 0.0910632386803627, 0.31635695695877075, -0.4468192756175995, -0.15001876652240753, -0.33886033296585083, 0.42493826150894165, 0.05724354088306427, 0.8107956647872925, -0.6401686668395996, 1.2264769077301025, ...
func Install(app Deployable) error { // Only grab a client if we are running in this instance! client, err := Client() if err != nil { return err } // Install err = app.Install(client) if err != nil { return err } meta := app.Meta() if meta.Namespace == "" { meta.Namespace = "default" } fmt.Printf("I...
[ 0.13339176774024963, -0.03882116824388504, 0.5112677216529846, 0.5824044942855835, 0.6108840703964233, 0.947514533996582, 0.03546823561191559, -0.24459730088710785, -0.6692079305648804, 1.4236338138580322, -0.30949878692626953, 0.06791968643665314, 0.028665337711572647, 0.5169040560722351,...
func List() { fmt.Println("") for _, app := range Registry() { fmt.Printf("[%s]\n", app.Meta().Name) fmt.Printf(" Description : %s\n", app.Meta().Description) fmt.Printf(" Version : %s\n", app.Meta().ResourceVersion) app.Install(nil) for _, obj := range app.Objects() { _, kind := obj.GetObjectKind(...
[ 0.0995016098022461, -1.062626838684082, 0.8168820738792419, -0.33548450469970703, 0.784386396408081, 0.5628775358200073, 0.3951495885848999, 0.29545339941978455, -0.3493005633354187, 1.089456558227539, -0.6376088261604309, 1.3388571739196777, 0.33666637539863586, 1.0140777826309204, -0.5...
func Uninstall(app Deployable) error { client, err := Client() if err != nil { return err } // Uninstall err = app.Uninstall(client) if err != nil { return err } meta := app.Meta() if meta.Namespace == "" { meta.Namespace = "default" } fmt.Printf("Uninstalled %s\n", meta.Name) PrintObjects(app) retu...
[ 0.61747145652771, 0.3791687488555908, 0.4651997685432434, 0.4902653098106384, 0.44696006178855896, 0.5605051517486572, 0.6862949728965759, 0.3455328345298767, -0.2601753771305084, 1.1407630443572998, -0.03541294112801552, 0.24507416784763336, 0.2750033140182495, 0.03844645619392395, 0.65...
func DifficultyFromBits(bits string) (float64, error) { b, _ := hex.DecodeString(bits) ib := binary.BigEndian.Uint32(b) return targetToDifficulty(toCompactSize(ib)) }
[ -0.6690137386322021, 0.32849499583244324, 0.3807142674922943, -0.4882218539714813, -0.13069143891334534, 0.4332910180091858, -0.08856751024723053, -0.3923240602016449, 0.3760145902633667, -0.9509509801864624, -0.3811810612678528, 0.2570097744464874, -0.05738765001296997, 0.1923972964286804...
func GetLittleEndianBytes(v uint32, l uint32) []byte { // TODO: is v hex encoded? buf := make([]byte, l) binary.LittleEndian.PutUint32(buf, v) return buf }
[ 0.2926918864250183, 0.22218003869056702, 0.4683406352996826, -1.0944031476974487, 0.4337844252586365, 1.3300883769989014, -1.9549596309661865, 0.05824153125286102, 0.4553599953651428, -0.6736552715301514, -1.4801738262176514, 0.09903192520141602, -0.41068318486213684, 0.4086945950984955, ...
func VarInt(i uint64) []byte { b := make([]byte, 9) if i < 0xfd { b[0] = byte(i) return b[:1] } if i < 0x10000 { b[0] = 0xfd binary.LittleEndian.PutUint16(b[1:3], uint16(i)) return b[:3] } if i < 0x100000000 { b[0] = 0xfe binary.LittleEndian.PutUint32(b[1:5], uint32(i)) return b[:5] } b[0] = 0xf...
[ 0.21439194679260254, 0.740094780921936, 0.5505014657974243, -0.0266950074583292, -0.006097372621297836, -0.4557572901248932, -0.2343936264514923, -1.1319093704223633, 0.22223104536533356, -0.1996610313653946, -0.8745777010917664, 0.0735853910446167, -0.7081870436668396, 0.14708669483661652...
func DecodeVarInt(b []byte) (result uint64, size int) { switch b[0] { case 0xff: result = binary.LittleEndian.Uint64(b[1:9]) size = 9 case 0xfe: result = uint64(binary.LittleEndian.Uint32(b[1:5])) size = 5 case 0xfd: result = uint64(binary.LittleEndian.Uint16(b[1:3])) size = 3 default: result = ui...
[ -0.07243872433900833, -0.390127956867218, 0.69797283411026, -0.46383488178253174, -0.34198155999183655, -0.3996224105358124, 0.2014567255973816, -0.42997971177101135, 0.588623046875, -0.16235320270061493, -0.4502979815006256, -0.2984120845794678, -0.32014694809913635, 0.49217328429222107, ...
func EncodeParts(parts [][]byte) ([]byte, error) { b := make([]byte, 0) for i, part := range parts { l := int64(len(part)) if l <= 75 { b = append(b, byte(len(part))) b = append(b, part...) } else if l <= 0xFF { b = append(b, 0x4c) // OP_PUSHDATA1 b = append(b, byte(len(part))) b = append(b, p...
[ -0.0247921422123909, 1.1542551517486572, 0.9737750291824341, -0.4375340938568115, -0.6457352042198181, 0.42052629590034485, -0.49748653173446655, -1.2282906770706177, 0.3941669464111328, 0.41534867882728577, 0.030243346467614174, 0.0266403928399086, -1.0301685333251953, 0.10592382401227951...
func DecodeParts(b []byte) ([][]byte, error) { var r [][]byte for len(b) > 0 { // Handle OP codes switch b[0] { case OpPUSHDATA1: if len(b) < 2 { return r, errors.New("Not enough data") } l := uint64(b[1]) if len(b) < int(2+l) { return r, errors.New("Not enough data") } part := b[2 : 2...
[ -0.6387956142425537, 0.416098415851593, 1.0249861478805542, -0.5989292860031128, -0.43312424421310425, 0.023233838379383087, -0.4838486313819885, -0.9020757675170898, 0.3220127820968628, 0.6009098291397095, 0.22478677332401276, -0.4326958656311035, -1.206877589225769, 0.2737082839012146, ...
func RenderSummaryStats(w io.Writer, stats SummaryStats) error { var err error _, err = fmt.Fprintf(w, "Your total expenses: %.7f DASH\n\n", stats.TotalCost) if err != nil { return err } tw := tabwriter.NewWriter(w, 8, 8, 1, '\t', tabwriter.Debug|tabwriter.AlignRight) var ( requestStats []Stats networkStats...
[ 0.02221856638789177, 0.38623014092445374, 0.7694432139396667, -0.2170356810092926, 0.11052490770816803, 0.5102794766426086, 0.5074686408042908, -0.603759765625, 0.11591055244207382, -0.45478978753089905, 0.6063385605812073, -0.5073665380477905, 0.5191437005996704, 0.6071072220802307, 0.0...
func NewContext(scheduler api.SchedulerApi, configs *conf.SchedulerConf) *Context { //k8s client kc := client.NewKubeClient(configs.KubeConfig) return NewContextInternal(scheduler, configs, kc, false) }
[ -0.11211290210485458, -0.515487790107727, 0.41288232803344727, 1.0098292827606201, -0.8037180304527283, -0.12749752402305603, -0.8972136974334717, -0.31603938341140747, 0.5455163717269897, 0.8375595808029175, 0.36867865920066833, 0.05749142915010452, -0.2771458327770233, 0.1246135085821151...
func NewContextInternal(scheduler api.SchedulerApi, configs *conf.SchedulerConf, client client.KubeClient, testMode bool) *Context { // create the context note that order is important: // volumebinder needs the informers // the cache needs informers and volumebinder // nodecontroller needs the cache // predictor n...
[ 0.15140657126903534, -0.7641507387161255, 0.6763731837272644, 0.29572030901908875, -0.5325785875320435, 0.1805952936410904, -0.5033793449401855, 0.14498116075992584, -0.25424668192863464, 0.09169906377792358, 0.7893824577331543, 0.15518710017204285, -0.5135853886604309, 0.6171491146087646,...
func (ctx *Context) addPod(obj interface{}) { pod, err := utils.Convert2Pod(obj) if err != nil { log.Logger.Error("failed to add pod", zap.Error(err)) return } //pod处于等待调度的状态 if pod.Status.Phase == v1.PodPending { log.Logger.Debug("add pod", zap.String("namespace", pod.Namespace), zap.String("podNa...
[ -0.6755008697509766, -0.30152183771133423, 1.2508598566055298, 0.6853854656219482, -0.29481807351112366, 0.8706520795822144, 1.0820393562316895, -0.4008640646934509, 0.5818991661071777, 0.72691410779953, 0.0637931078672409, -0.4952682852745056, 0.08249528706073761, 0.2166510373353958, -0...
func (ctx *Context) getOrAddTask(a *Application, pod *v1.Pod) *Task { // using pod UID as taskId //如果已经存在app中,则直接返回它 if task, err := a.GetTask(string(pod.UID)); err == nil { return task } //不存在,则创建一个新的task newTask := createTaskFromPod(a, ctx.kubeClient, ctx.schedulerApi, pod) a.AddTask(newTask) return newTask...
[ -0.18243524432182312, 0.04268084838986397, 0.6804262399673462, 0.8187506794929504, 0.42275553941726685, 0.8747666478157043, -0.5318308472633362, -0.661339521408081, 0.760228157043457, -0.043588317930698395, 0.3360454738140106, 0.7089759111404419, 0.11247077584266663, 0.0025847807992249727,...
func (ctx *Context) validatePod(pod *v1.Pod) error { if pod.Spec.SchedulerName == "" || pod.Spec.SchedulerName != ctx.conf.SchedulerName { // only pod with specific scheduler name is valid to us return fmt.Errorf("only pod whose spec has explicitly "+ "specified schedulerName=%s is a valid scheduling-target, bu...
[ -0.8800464272499084, -0.086674265563488, 0.36309781670570374, 0.05111938714981079, -0.46748870611190796, 0.6088017821311951, 0.4526209533214569, -0.275064080953598, 0.7190015912055969, 0.28966444730758667, 0.8098700642585754, 0.29868799448013306, 0.6833190321922302, 0.22620201110839844, ...
func (ctx *Context) updatePod(obj, newObj interface{}) { log.Logger.Debug("handling UpdatePod") old, err := utils.Convert2Pod(obj) if err != nil { log.Logger.Error("failed to update pod", zap.Error(err)) return } pod, err := utils.Convert2Pod(newObj) if err != nil { log.Logger.Error("failed to update pod", ...
[ -0.8425048589706421, -1.4496641159057617, 0.8944451808929443, -0.6673984527587891, -0.7213342189788818, 0.2837052345275879, 0.09298937767744064, -0.12107282876968384, 0.3262304663658142, 1.4686980247497559, -0.2636910080909729, 0.1768164038658142, 0.2957485318183899, -0.5398620367050171, ...
func (ctx *Context) deletePod(obj interface{}) { // when a pod is deleted, we need to check its role. // for spark, if driver pod is deleted, then we consider the app is completed var pod *v1.Pod switch t := obj.(type) { case *v1.Pod: pod = t case cache.DeletedFinalStateUnknown: var err error pod, err = uti...
[ -0.07850901782512665, -0.3852100372314453, 0.7215403914451599, 0.3085936903953552, -0.916921079158783, 0.07349986582994461, 0.9420967698097229, 0.19250522553920746, 1.223456621170044, 0.7358406186103821, 0.3796468675136566, -0.14902448654174805, 0.33151963353157043, 0.3185379207134247, 0...
func (ctx *Context) filterPods(obj interface{}) bool { switch obj.(type) { case *v1.Pod: pod := obj.(*v1.Pod) return utils.IsSchedulablePod(pod) default: return false } }
[ -0.9258870482444763, 0.17926089465618134, 1.0158365964889526, 1.027266502380371, -0.9032667875289917, 0.44079500436782837, 0.07732498645782471, -0.5467595458030701, 0.30184435844421387, 0.7266696691513062, 0.727531909942627, -0.10998691618442535, -0.6349194049835205, -0.8578048944473267, ...
func (ctx *Context) filterConfigMaps(obj interface{}) bool { switch obj.(type) { case *v1.ConfigMap: cm := obj.(*v1.ConfigMap) return cm.Name == common.DefaultConfigMapName default: return false } }
[ -1.1073846817016602, -0.3683597445487976, 0.5045876502990723, 1.4996057748794556, -0.309134840965271, 0.008218050003051758, 0.5229095220565796, -0.5787990093231201, 0.4469591975212097, 0.8961161375045776, -0.42825958132743835, -0.4976309835910797, -1.418397068977356, 0.25534772872924805, ...
func (ctx *Context) addConfigMaps(obj interface{}) { log.Logger.Debug("configMap added") ctx.triggerReloadConfig() }
[ -1.1765495538711548, -0.4520677328109741, 0.5320466756820679, 1.168630599975586, 0.06041114032268524, 0.4478861391544342, -0.14009281992912292, -0.06635764241218567, 1.2646985054016113, -0.03678371012210846, -1.3738857507705688, -0.8838477730751038, -0.39142683148384094, 0.3414283394813537...
func (ctx *Context) updateConfigMaps(obj, newObj interface{}) { log.Logger.Debug("trigger scheduler to reload configuration") // When update event is received, it is not guaranteed the data mounted to the pod // is also updated. This is because the actual update in pod's volume is ensured // by kubelet, kubelet is ...
[ -0.9942657947540283, -1.464722752571106, 0.49743273854255676, 1.0142797231674194, -0.3924506604671478, -0.21740874648094177, 0.12738873064517975, -0.4843195080757141, 0.12755437195301056, 0.48227426409721375, -0.9397549629211426, -0.699647843837738, -0.3623562157154083, -0.1803870797157287...
func (ctx *Context) deleteConfigMaps(obj interface{}) { log.Logger.Debug("configMap deleted") }
[ -0.7297801375389099, -1.2707314491271973, 0.28207293152809143, 1.3334267139434814, 0.103178970515728, 0.40671947598457336, 0.8814494013786316, 0.12431400269269943, 1.0741832256317139, 0.2115456610918045, -1.058390736579895, -0.30461734533309937, -0.6224679350852966, 0.5897411108016968, 0...