text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func (t *DataProcessorTask) AddInputFile(file ...string) *DataProcessorTask {
return t.Add(InputFiles, file...)
} | [
-0.44737547636032104,
0.5715922117233276,
0.4520891010761261,
0.3563796877861023,
-0.14738261699676514,
1.4992272853851318,
0.45134276151657104,
1.023860216140747,
-1.169500470161438,
-0.17812372744083405,
-0.6006830334663391,
-0.8714948296546936,
-0.8321653008460999,
0.3123399615287781,
... |
func (t *DataProcessorTask) GetInputDirs() []string {
return t.GetAll(InputDirs)
} | [
-0.7281630039215088,
0.679208517074585,
0.309529572725296,
1.0133205652236938,
-0.6326851844787598,
0.02018290013074875,
0.009124482050538063,
0.48510977625846863,
0.3334125578403473,
-0.2886098027229309,
-0.4420693814754486,
1.0332496166229248,
-0.762710452079773,
0.4343958795070648,
-0... |
func (t *DataProcessorTask) HasInputDirs() bool {
return t.Has(InputDirs)
} | [
-0.4336549639701843,
0.7198427319526672,
0.3778451681137085,
-0.0415242500603199,
-0.332527756690979,
-0.36505216360092163,
0.48388901352882385,
0.7290149927139282,
0.08319702744483948,
-0.2303444743156433,
-0.8532994985580444,
-0.3241182565689087,
-0.366416871547699,
0.5924697518348694,
... |
func (t *DataProcessorTask) GetInputDir(defaultValue ...string) string {
return t.Get(InputDirs, defaultValue...)
} | [
-0.5227357149124146,
0.6980661153793335,
0.38537725806236267,
0.7142518758773804,
0.039995040744543076,
-0.04092144966125488,
0.29987773299217224,
0.26376765966415405,
-0.7231501340866089,
-0.860323965549469,
0.0824970081448555,
0.24371658265590668,
-0.29959556460380554,
0.9147382974624634... |
func (t *DataProcessorTask) SetInputDir(dir ...string) *DataProcessorTask {
return t.Set(InputDirs, dir...)
} | [
-1.162345051765442,
0.6747594475746155,
0.38861459493637085,
0.5504907369613647,
-0.7888826131820679,
0.5278717279434204,
0.8039524555206299,
0.43355998396873474,
-0.19091662764549255,
-0.3659754693508148,
-0.3632119596004486,
0.7406708598136902,
-0.1186981126666069,
1.200884222984314,
-... |
func (t *DataProcessorTask) AddInputDir(dir ...string) *DataProcessorTask {
return t.Add(InputDirs, dir...)
} | [
-1.3569320440292358,
0.7860162258148193,
0.5071725249290466,
0.3760429322719574,
-0.8326135873794556,
0.6185842156410217,
0.30890676379203796,
0.5652662515640259,
0.27826258540153503,
-0.6878945827484131,
-0.09645344316959381,
0.17112497985363007,
-0.4684212803840637,
1.0383172035217285,
... |
func (t *DataProcessorTask) GetOutputFiles() []string {
return t.GetAll(OutputFiles)
} | [
-0.38995930552482605,
0.3045800030231476,
0.3554880619049072,
0.8701882362365723,
-0.1598808914422989,
-0.09529559314250946,
-0.18781377375125885,
0.24738597869873047,
-0.8370586037635803,
0.9323245882987976,
-0.2670265734195709,
-0.17904160916805267,
-0.5992343425750732,
-0.35266450047492... |
func (t *DataProcessorTask) HasOutputFiles() bool {
return t.Has(OutputFiles)
} | [
-0.35786837339401245,
0.5179831981658936,
0.3761677145957947,
0.11202603578567505,
0.003031546249985695,
-0.44078928232192993,
0.3523045778274536,
0.5574260354042053,
-1.3056304454803467,
0.6036757230758667,
-0.4556657671928406,
-1.409275770187378,
0.013556711375713348,
0.01209162175655365... |
func (t *DataProcessorTask) GetOutputFile(defaultValue ...string) string {
return t.Get(OutputFiles, defaultValue...)
} | [
-0.133086159825325,
0.5821563601493835,
0.34841683506965637,
0.6483409404754639,
0.8053500056266785,
0.18584883213043213,
0.4982948303222656,
-0.019439727067947388,
-2.0058553218841553,
0.2957860827445984,
0.23933760821819305,
-0.9809389710426331,
-0.24221809208393097,
-0.11917518079280853... |
func (t *DataProcessorTask) SetOutputFile(file ...string) *DataProcessorTask {
return t.Set(OutputFiles, file...)
} | [
-0.6151586771011353,
0.14770466089248657,
0.34129536151885986,
0.48052823543548584,
-0.05138041079044342,
0.4823834002017975,
0.8808814287185669,
0.5262321829795837,
-1.862646222114563,
0.45271438360214233,
-0.36312663555145264,
-0.8545655608177185,
0.15422441065311432,
0.21908296644687653... |
func (t *DataProcessorTask) AddOutputFile(file ...string) *DataProcessorTask {
return t.Add(OutputFiles, file...)
} | [
-0.725763201713562,
0.49463677406311035,
0.48478347063064575,
0.489353746175766,
-0.18064603209495544,
0.7427356839179993,
0.4145640730857849,
0.5619174838066101,
-1.4904953241348267,
0.05187619850039482,
-0.10782983899116516,
-1.2523634433746338,
-0.01367541030049324,
0.2232801914215088,
... |
func (t *DataProcessorTask) GetOutputDirs() []string {
return t.GetAll(OutputDirs)
} | [
-0.941882312297821,
0.4577554762363434,
0.29194051027297974,
1.0853053331375122,
-0.2542150318622589,
-0.5374375581741333,
0.04232437163591385,
0.2513704299926758,
-0.13400200009346008,
0.1986301839351654,
-0.048869069665670395,
0.5459244847297668,
-0.019477970898151398,
0.2168650925159454... |
func (t *DataProcessorTask) HasOutputDirs() bool {
return t.Has(OutputDirs)
} | [
-0.7973332405090332,
0.6788661479949951,
0.32822802662849426,
0.0922488123178482,
-0.22246283292770386,
-0.851922333240509,
0.43335211277008057,
0.3793724775314331,
-0.18209587037563324,
0.13042493164539337,
-0.2613460123538971,
-0.718208909034729,
0.5087895393371582,
0.2526748478412628,
... |
func (t *DataProcessorTask) GetOutputDir(defaultValue ...string) string {
return t.Get(OutputDirs, defaultValue...)
} | [
-0.759518027305603,
0.4953818619251251,
0.3295411169528961,
0.7948186993598938,
0.34532400965690613,
-0.46763917803764343,
0.34109315276145935,
-0.12880553305149078,
-1.0042645931243896,
-0.6347424983978271,
0.4079434871673584,
-0.21844926476478577,
0.30490097403526306,
0.7556599974632263,... |
func (t *DataProcessorTask) SetOutputDir(dir ...string) *DataProcessorTask {
return t.Set(OutputDirs, dir...)
} | [
-1.4290238618850708,
0.49724137783050537,
0.348476767539978,
0.6010076999664307,
-0.616010844707489,
-0.038416095077991486,
0.8365564346313477,
0.11120422184467316,
-0.3472244441509247,
-0.1777859479188919,
0.10377035290002823,
0.05948353186249733,
0.5863359570503235,
0.9774013161659241,
... |
func (t *DataProcessorTask) AddOutputDir(dir ...string) *DataProcessorTask {
return t.Add(OutputDirs, dir...)
} | [
-1.5296648740768433,
0.7181547284126282,
0.46538013219833374,
0.5051958560943604,
-0.8193076848983765,
-0.061055149883031845,
0.378632515668869,
0.1310790479183197,
0.10904968529939651,
-0.6040583252906799,
0.34274303913116455,
-0.46997231245040894,
0.3571248948574066,
0.8176501393318176,
... |
func (t *DataProcessorTask) GetInputTables() []string {
return t.GetAll(InputTables)
} | [
-0.499094694852829,
0.5370590686798096,
0.5339603424072266,
1.0041277408599854,
-1.2004594802856445,
0.720120370388031,
0.16950571537017822,
-0.400414377450943,
-0.41806912422180176,
0.11167166382074356,
-1.1208643913269043,
0.7412768006324768,
-0.7805927395820618,
0.34412312507629395,
-... |
func (t *DataProcessorTask) HasInputTables() bool {
return t.Has(InputTables)
} | [
-0.2938055098056793,
0.6899172067642212,
0.5437135100364685,
0.13491833209991455,
-0.8298944234848022,
0.18023939430713654,
0.44745704531669617,
0.020000549033284187,
-0.8381512761116028,
-0.24069947004318237,
-1.408216953277588,
-0.46334150433540344,
-0.47304895520210266,
0.70495963096618... |
func (t *DataProcessorTask) GetInputTable(defaultValue ...string) string {
return t.Get(InputTables, defaultValue...)
} | [
-0.2010440081357956,
0.6116777658462524,
0.4315696358680725,
0.7747407555580139,
0.016023635864257812,
0.04887697473168373,
0.4961942434310913,
-0.3971809446811676,
-1.3658721446990967,
0.07276729494333267,
-0.6642969250679016,
-0.006650074385106564,
-0.3704177737236023,
-0.001703129615634... |
func (t *DataProcessorTask) SetInputTable(table ...string) *DataProcessorTask {
return t.Set(InputTables, table...)
} | [
-0.5543331503868103,
0.5234777927398682,
0.5257641673088074,
0.88468998670578,
-0.858255922794342,
0.521775484085083,
0.9533520936965942,
-0.13640770316123962,
-0.8762872219085693,
0.2600425183773041,
-1.1713125705718994,
0.5063042640686035,
-0.12650403380393982,
0.5562633872032166,
-1.6... |
func (t *DataProcessorTask) AddInputTable(table ...string) *DataProcessorTask {
return t.Add(InputTables, table...)
} | [
-0.7061762809753418,
0.6374797224998474,
0.6324532628059387,
0.8349772095680237,
-1.0167889595031738,
0.614358127117157,
0.533008337020874,
0.16425728797912598,
-0.46193036437034607,
-0.16850672662258148,
-0.8794317245483398,
0.07891877740621567,
-0.4584733843803406,
0.5952309966087341,
... |
func (t *DataProcessorTask) GetOutputTables() []string {
return t.GetAll(OutputTables)
} | [
-0.7034773230552673,
0.4457513391971588,
0.6270137429237366,
0.8814684152603149,
-1.018420934677124,
0.1640898436307907,
0.27035823464393616,
-0.5141260623931885,
-0.8676407933235168,
0.4766014814376831,
-0.576675295829773,
0.47661730647087097,
-0.208927720785141,
0.2730048894882202,
-0.... |
func (t *DataProcessorTask) HasOutputTables() bool {
return t.Has(OutputTables)
} | [
-0.5950461030006409,
0.7916706800460815,
0.6070094704627991,
0.21107377111911774,
-0.7879902124404907,
-0.1708938479423523,
0.4817520081996918,
-0.26149308681488037,
-1.1568882465362549,
0.07916614413261414,
-0.6483633518218994,
-0.5424401164054871,
0.28610244393348694,
0.49879026412963867... |
func (t *DataProcessorTask) GetOutputTable(defaultValue ...string) string {
return t.Get(OutputTables, defaultValue...)
} | [
-0.2208324670791626,
0.5568001866340637,
0.46100908517837524,
0.7953607439994812,
0.08405663073062897,
-0.2845788300037384,
0.6455915570259094,
-0.6907560229301453,
-1.6786657571792603,
0.11792229115962982,
-0.156284362077713,
-0.19507014751434326,
0.0013977723428979516,
0.0429030060768127... |
func (t *DataProcessorTask) SetOutputTable(table ...string) *DataProcessorTask {
return t.Set(OutputTables, table...)
} | [
-0.5692639946937561,
0.44445860385894775,
0.5342057943344116,
0.784242570400238,
-0.75272536277771,
0.035059064626693726,
0.9816322326660156,
-0.33883699774742126,
-1.191914677619934,
0.3893784284591675,
-0.6027305722236633,
0.12122639268636703,
0.3900984227657318,
0.5396289825439453,
-1... |
func (t *DataProcessorTask) AddOutputTable(table ...string) *DataProcessorTask {
return t.Add(OutputTables, table...)
} | [
-0.6972346305847168,
0.6253019571304321,
0.6386756896972656,
0.8137708306312561,
-0.966015100479126,
0.07952151447534561,
0.5631735920906067,
-0.18755365908145905,
-0.8620819449424744,
-0.05138294771313667,
-0.3194681704044342,
-0.16400718688964844,
0.20266689360141754,
0.5927246809005737,... |
func main() {
router := gin.Default()
// 给表单限制上传大小 (默认 32 MiB)
// router.MaxMultipartMemory = 8 << 20 // 8 MiB
router.POST("/upload", func(c *gin.Context) {
// 多文件
form, _ := c.MultipartForm()
files := form.File["upload[]"]
fileName := ""
for _, file := range files {
log.Println(file.Filename)
//... | [
-0.5488532185554504,
0.23815256357192993,
1.289161205291748,
1.0203070640563965,
0.6811004877090454,
0.26522237062454224,
0.6639861464500427,
0.3712029755115509,
-1.1039810180664062,
0.7887351512908936,
-0.6752194166183472,
0.16257667541503906,
-0.48520800471305847,
0.711778998374939,
-0... |
func (r *UserRepository) CreateUser(u *model.User) (*model.User, error) {
var sU model.User
//testTimeStamp := time.Unix(time.Now().Unix(), 0).Format(time.RFC3339)
//fmt.Println("time now ____", time.Now().Unix())
birthInt64, _ := strconv.ParseInt(u.Birthday, 10, 64)
creationDInt64, _ := strconv.ParseInt(u.Creati... | [
-0.6313676238059998,
0.3523673415184021,
0.9878107309341431,
0.9203246235847473,
-0.2174789160490036,
0.6510536670684814,
0.8173384666442871,
-0.07797593623399734,
0.14168111979961395,
-0.7666173577308655,
-0.7726845741271973,
-0.1975668966770172,
-0.6089680790901184,
0.24644064903259277,
... |
func (r *UserRepository) CreateChat(idChat string, idUser string, typeChat string) (*model.Chat, error) {
var c model.Chat
if err := r.store.db.QueryRow(
"INSERT INTO chats (id_chat, id_user, type_chat) VALUES ($1, $2, $3) RETURNING id_chat, id_user, type_chat",
idChat,
idUser,
typeChat,
).Scan(
&c.IdChat,... | [
-0.10408042371273041,
0.16878877580165863,
0.5424320697784424,
0.6954099535942078,
0.033737242221832275,
0.9400132894515991,
-0.38560450077056885,
-0.9776191711425781,
-0.7872864603996277,
-0.23425066471099854,
0.6148744225502014,
-0.8273758888244629,
-1.0526602268218994,
-0.38059815764427... |
func (r *UserRepository) CreateUserChat(idChat string, idUser string) (*model.UserChat, error) {
var c model.UserChat
if err := r.store.db.QueryRow(
"INSERT INTO users_chats (id_chat, id_user) VALUES ($1, $2) RETURNING id_chat, id_user",
idChat,
idUser,
).Scan(
&c.IdChat,
&c.IdUser,
); err != nil {
retu... | [
-0.10645502060651779,
-0.12223289906978607,
0.4916418492794037,
0.42658957839012146,
-0.7606964707374573,
0.5831224918365479,
0.015473078936338425,
-0.9952439069747925,
-0.2882803678512573,
-0.3803313672542572,
-0.32478219270706177,
-0.4654049575328827,
-0.8379685878753662,
-0.065386727452... |
func NewDataSource(path string) (job.Repository, error) {
db, err := leveldb.OpenFile(path, nil)
if err != nil {
return nil, errors.WithStack(err)
}
return &dataSource{db}, nil
} | [
0.06710531562566757,
0.437380313873291,
0.03100847639143467,
-0.9408626556396484,
-0.6777744293212891,
-0.6756434440612793,
-0.5459197759628296,
0.9527744650840759,
-0.6239431500434875,
-0.1061168685555458,
-1.304528832435608,
0.05938586965203285,
-0.39431190490722656,
0.5664251446723938,
... |
func (d *dataSource) FindBy(id job.ID) (*job.Job, error) {
data, err := d.db.Get(id.ToSlice(), nil)
if err == leveldb.ErrNotFound {
return nil, job.ErrNotFound
} else if err != nil {
return nil, errors.WithStack(err)
}
job := &job.Job{}
if err := json.NewDecoder(bytes.NewReader(data)).Decode(job); err != nil... | [
0.05295594781637192,
0.30807965993881226,
0.3039811849594116,
-0.8373844623565674,
-0.2886980473995209,
-0.6980485916137695,
-0.18122060596942902,
-0.11172690987586975,
-0.6961540579795837,
0.1163192167878151,
-0.8548007011413574,
-0.18526238203048706,
-1.1359421014785767,
0.48364573717117... |
func (d *dataSource) Save(job job.Job) error {
data, err := job.ToBytes()
if err != nil {
return errors.WithStack(err)
}
if err := d.db.Put(job.ID.ToSlice(), data, nil); err != nil {
return errors.WithStack(err)
}
return nil
} | [
-0.3063589632511139,
1.0873115062713623,
0.23321211338043213,
-1.1718025207519531,
0.07530366629362106,
-0.7744511365890503,
-0.38181421160697937,
-0.10033167898654938,
-0.8469985723495483,
0.5432905554771423,
-2.325397491455078,
-0.0829344093799591,
-0.9067742824554443,
0.1898289620876312... |
func createMinimatchForTest(t *testing.T, evalTc *rpcTesting.TestContext) *rpcTesting.TestContext {
var closer func()
cfg := viper.New()
// TODO: Use insecure for now since minimatch and mmf only works with the same secure mode
// Server a minimatch for testing using random port at tc.grpcAddress & tc.proxyAddress... | [
0.7880176305770874,
-0.15764577686786652,
0.7320389747619629,
-0.6672208309173584,
0.6013686656951904,
-0.3173926770687103,
0.48633041977882385,
0.011766650713980198,
0.2773876190185547,
-0.7286792397499084,
-0.2785298228263855,
-0.3322991132736206,
-1.0326107740402222,
-0.0950870662927627... |
func createMatchFunctionForTest(t *testing.T, c *rpcTesting.TestContext) *rpcTesting.TestContext {
// TODO: Use insecure for now since minimatch and mmf only works with the same secure mode
tc := rpcTesting.MustServeInsecure(t, func(p *rpc.ServerParams) {
cfg := viper.New()
// The below configuration is used by ... | [
0.7514603734016418,
0.12417643517255783,
0.6048011779785156,
-0.3790380358695984,
0.5212733149528503,
0.001251729903742671,
0.47383826971054077,
-0.5147463083267212,
0.18791760504245758,
-0.7523967027664185,
-0.08761142939329147,
-0.11101911216974258,
-1.2959531545639038,
-0.54280370473861... |
func createEvaluatorForTest(t *testing.T) *rpcTesting.TestContext {
tc := rpcTesting.MustServeInsecure(t, func(p *rpc.ServerParams) {
cfg := viper.New()
assert.Nil(t, evalHarness.BindService(p, cfg, simple.Evaluate))
})
return tc
} | [
0.03560393676161766,
0.11650741845369339,
0.3769911229610443,
-0.45797646045684814,
0.6302095651626587,
0.5731045603752136,
-0.7675567865371704,
-0.4397381544113159,
0.08050775527954102,
-0.817349374294281,
-0.3031061291694641,
0.048463109880685806,
-1.137214183807373,
0.8480286002159119,
... |
func AddArmadaChartGroupController(mgr manager.Manager) error {
reconcilePeriod, _ := time.ParseDuration("300ms")
r := &ChartGroupReconciler{
BaseReconciler: BaseReconciler{
client: mgr.GetClient(),
scheme: mgr.GetScheme(),
recorder: mgr.GetEventRecorderFor("acg-recorder"),
rec... | [
0.6544848680496216,
-0.05024266988039017,
0.7469789385795593,
-0.7004128098487854,
0.06243329122662544,
-0.4125075340270996,
0.7154715657234192,
-0.5647188425064087,
0.0865594670176506,
-0.40857043862342834,
0.6665371060371399,
0.6545794010162354,
0.2351188361644745,
-0.020056813955307007,... |
func (r *ChartGroupReconciler) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error) {
reclog := acglog.WithValues("namespace", request.Namespace, "acg", request.Name)
reclog.Info("Reconciling")
instance := &av1.ArmadaChartGroup{}
instance.SetNamespace(request.Namespace)
instance.Set... | [
-0.43323779106140137,
0.08037079125642776,
0.720284640789032,
-0.6270425319671631,
0.3944084346294403,
-0.905525267124176,
-0.24578344821929932,
-0.40774354338645935,
-0.13741576671600342,
-0.12823911011219025,
0.5187811255455017,
0.34629011154174805,
0.17347589135169983,
0.029035879299044... |
func (r ChartGroupReconciler) logAndRecordFailure(instance *av1.ArmadaChartGroup, hrc *av1.HelmResourceCondition, err error) {
reclog := acglog.WithValues("namespace", instance.Namespace, "acg", instance.Name)
reclog.Error(err, fmt.Sprintf("%s. ErrorCondition", hrc.Type.String()))
r.recorder.Event(instance, corev1.E... | [
0.8047431707382202,
0.42712271213531494,
0.4350830614566803,
-2.033897638320923,
0.15824417769908905,
-0.05848627910017967,
-0.12933385372161865,
-0.4753941595554352,
-0.6337498426437378,
0.04848768562078476,
-0.02414887584745884,
0.9728788733482361,
-0.11576077342033386,
0.204991966485977... |
func (r ChartGroupReconciler) logAndRecordSuccess(instance *av1.ArmadaChartGroup, hrc *av1.HelmResourceCondition) {
reclog := acglog.WithValues("namespace", instance.Namespace, "acg", instance.Name)
reclog.Info(fmt.Sprintf("%s. SuccessCondition", hrc.Type.String()))
r.recorder.Event(instance, corev1.EventTypeNormal,... | [
1.0173038244247437,
0.22842490673065186,
0.6095612645149231,
-1.8622020483016968,
-0.10549135506153107,
0.381841778755188,
-0.02216014824807644,
0.0513543076813221,
-0.514863133430481,
0.40636250376701355,
-0.45402947068214417,
0.9395208954811096,
0.45121514797210693,
0.051741600036621094,... |
func (r ChartGroupReconciler) updateResource(o *av1.ArmadaChartGroup) error {
return r.client.Update(context.TODO(), o)
} | [
-0.8103605508804321,
-0.2178715616464615,
0.0687704011797905,
-0.4898718595504761,
-0.2924613058567047,
-0.28984957933425903,
0.9631156325340271,
-0.33736762404441833,
-0.20492111146450043,
0.483078271150589,
0.33715590834617615,
-0.033293649554252625,
-0.7919831275939941,
-0.4235467910766... |
func (r ChartGroupReconciler) updateResourceStatus(instance *av1.ArmadaChartGroup) error {
reclog := acglog.WithValues("namespace", instance.Namespace, "acg", instance.Name)
helper := av1.HelmResourceConditionListHelper{Items: instance.Status.Conditions}
instance.Status.Conditions = helper.InitIfEmpty()
// JEB: B... | [
-0.24669429659843445,
-0.8173968195915222,
0.28618472814559937,
-0.9720767140388489,
-0.6603994369506836,
0.07816662639379501,
0.726123571395874,
0.25621843338012695,
-0.1498774290084839,
0.7458914518356323,
-0.17690487205982208,
0.2773307263851166,
-0.32822200655937195,
0.6174618601799011... |
func (r ChartGroupReconciler) ensureSynced(mgr armadaif.ArmadaChartGroupManager, instance *av1.ArmadaChartGroup) error {
if err := mgr.Sync(context.TODO()); err != nil {
hrc := av1.HelmResourceCondition{
Type: av1.ConditionIrreconcilable,
Status: av1.ConditionStatusTrue,
Reason: av1.ReasonReconcileErro... | [
0.9827772974967957,
0.3068264424800873,
0.4648492932319641,
-0.5991041660308838,
0.8197608590126038,
-0.3885933458805084,
0.3558867275714874,
-0.4425511062145233,
-0.06065724790096283,
-0.03323855251073837,
-0.2505098879337311,
0.6031454801559448,
0.37061426043510437,
0.06761898845434189,
... |
func (r ChartGroupReconciler) updateFinalizers(instance *av1.ArmadaChartGroup) (bool, error) {
pendingFinalizers := instance.GetFinalizers()
if !instance.IsDeleted() && !r.contains(pendingFinalizers, finalizerArmadaChartGroup) {
finalizers := append(pendingFinalizers, finalizerArmadaChartGroup)
instance.SetFinali... | [
-0.8530915379524231,
-0.7650924921035767,
0.4797111749649048,
-0.6990647912025452,
-0.27381080389022827,
-0.2019493281841278,
0.5647286176681519,
-0.24343979358673096,
0.15734179317951202,
0.056480832397937775,
-0.14440444111824036,
-0.48740488290786743,
-0.858709454536438,
0.3322733640670... |
func (r ChartGroupReconciler) watchArmadaCharts(instance *av1.ArmadaChartGroup, toWatchList *av1.ArmadaCharts) error {
reclog := acglog.WithValues("namespace", instance.Namespace, "acg", instance.Name)
errs := make([]error, 0)
for _, toWatch := range (*toWatchList).List.Items {
found := toWatch.FromArmadaChart()
... | [
0.14121171832084656,
-0.7558315992355347,
0.7902703285217285,
-0.7464981079101562,
0.05149165540933609,
-0.18397800624370575,
0.9766438007354736,
-0.8587865829467773,
-0.06642206758260727,
0.002694370923563838,
0.39349353313446045,
0.9837055206298828,
-0.02831440046429634,
0.01039401348680... |
func (r ChartGroupReconciler) deleteArmadaChartGroup(mgr armadaif.ArmadaChartGroupManager, instance *av1.ArmadaChartGroup) (bool, error) {
reclog := acglog.WithValues("namespace", instance.Namespace, "acg", instance.Name)
reclog.Info("Deleting")
pendingFinalizers := instance.GetFinalizers()
if !r.contains(pendingF... | [
0.10335805267095566,
-0.3294579088687897,
0.6014888882637024,
-1.0746766328811646,
-0.3512228727340698,
-0.03727055341005325,
0.6665022969245911,
-0.09499631822109222,
0.0802353098988533,
-0.028804419562220573,
0.16405296325683594,
-0.4517781734466553,
-0.1687524914741516,
0.67409473657608... |
func (r ChartGroupReconciler) installArmadaChartGroup(mgr armadaif.ArmadaChartGroupManager, instance *av1.ArmadaChartGroup) (bool, error) {
reclog := acglog.WithValues("namespace", instance.Namespace, "acg", instance.Name)
reclog.Info("Updating")
// The concept of installing a chartgroup is kind of fuzzy since
// ... | [
0.19661611318588257,
-0.521809458732605,
0.7341448068618774,
-1.2801287174224854,
-0.0961204469203949,
0.07326825708150864,
0.4606184959411621,
-0.32320666313171387,
-0.36648374795913696,
0.3611868917942047,
0.04486680403351784,
-0.07929349690675735,
-0.24557240307331085,
0.345708787441253... |
func (r ChartGroupReconciler) updateArmadaChartGroup(mgr armadaif.ArmadaChartGroupManager, instance *av1.ArmadaChartGroup) (bool, error) {
reclog := acglog.WithValues("namespace", instance.Namespace, "acg", instance.Name)
reclog.Info("Updating")
_, updatedResource, err := mgr.UpdateResource(context.TODO())
// TOD... | [
-0.35612162947654724,
-0.6741729974746704,
0.7120720744132996,
-1.0548909902572632,
-0.5496736168861389,
0.2047281265258789,
0.4002307951450348,
-0.3116264045238495,
-0.19354815781116486,
0.266658753156662,
0.11405138671398163,
0.37496569752693176,
-0.00638694828376174,
0.4078221321105957,... |
func (r ChartGroupReconciler) reconcileArmadaChartGroup(mgr armadaif.ArmadaChartGroupManager, instance *av1.ArmadaChartGroup) (bool, error) {
reclog := acglog.WithValues("namespace", instance.Namespace, "acg", instance.Name)
reclog.Info("Reconciling ArmadaChartGroup and ArmadaChartList")
reconciledResource, err := ... | [
-0.2091391384601593,
-0.531143844127655,
0.801380455493927,
-0.9321796894073486,
-0.33159396052360535,
-0.2513801157474518,
0.5023874044418335,
-0.21423876285552979,
-0.4402621388435364,
0.09874530136585236,
-0.18794171512126923,
0.09337181597948074,
0.24086858332157135,
0.4588916599750519... |
func (b *Box) GetFullName() string {
return b.CartonName + "." + b.DomainName
} | [
0.7810662984848022,
-0.6405718326568604,
0.7730148434638977,
0.421474814414978,
-0.8612965941429138,
0.14513887465000153,
-1.0136781930923462,
-0.346058189868927,
0.4807809889316559,
-0.4127572476863861,
-0.807933509349823,
0.6774035692214966,
0.7679277062416077,
0.12707063555717468,
1.7... |
func (b *Box) GetTosca() string {
return b.Tosca
} | [
-0.30756422877311707,
0.25445443391799927,
0.5769802927970886,
0.5377658009529114,
-0.30433598160743713,
-0.5608810782432556,
0.16290751099586487,
-0.7956591844558716,
0.2044171839952469,
0.43827563524246216,
-0.21019907295703888,
0.2549339830875397,
0.6771356463432312,
-0.2036864310503006... |
func (b *Box) GetPublicIp() string {
return b.PublicIp
} | [
0.8346894383430481,
-0.1989118903875351,
0.4332868456840515,
1.0701457262039185,
-0.5886058807373047,
0.37115731835365295,
0.40622401237487793,
-0.0298480074852705,
-0.24412216246128082,
0.0400981605052948,
-0.19477218389511108,
-0.2954554259777069,
-0.13853737711906433,
-0.240892544388771... |
func (b *Box) Available() bool {
return b.Status == StatusDeploying ||
b.Status == StatusCreating ||
b.Status == StatusError
} | [
-1.7087695598602295,
-0.22780868411064148,
0.32383325695991516,
0.7691115736961365,
-0.23757320642471313,
0.8928177356719971,
-0.42688897252082825,
1.0819965600967407,
-0.06199340894818306,
0.4526507258415222,
-0.11001642048358917,
0.6848777532577515,
-0.31602564454078674,
1.15038895606994... |
func (box *Box) Log(message, source, unit string) error {
messages := strings.Split(message, "\n")
logs := make([]interface{}, 0, len(messages))
for _, msg := range messages {
if msg != "" {
bl := Boxlog{
Timestamp: time.Now().In(time.UTC),
Message: msg,
Source: source,
Name: box.Name,... | [
0.06423830986022949,
0.4993826448917389,
0.4615245759487152,
0.043493546545505524,
-0.08459756523370743,
-0.4525811970233917,
-0.09217670559883118,
0.045609377324581146,
-0.38061463832855225,
-0.578121542930603,
-1.0537999868392944,
-0.08211903274059296,
0.017771147191524506,
0.92261922359... |
func (*HealthCheckEvent) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _HealthCheckEvent_OneofMarshaler, _HealthCheckEvent_OneofUnmarshaler, _HealthCheckEvent_OneofSizer, ... | [
-0.15100722014904022,
0.754536509513855,
0.7498112320899963,
-0.24637371301651,
1.009383201599121,
-0.24159030616283417,
0.7241388559341431,
-0.5914683938026428,
0.09100596606731415,
-0.8813373446464539,
0.06949366629123688,
-0.1321975737810135,
0.18709786236286163,
0.9129765629768372,
0... |
func (c *Inventory) TypesToPurge() []schema.GroupVersionKind {
currentObjects := c.inventoryData.ObjectsToDelete
groupVersionKindDict := make(map[schema.GroupVersionKind]struct{})
for _, currentObject := range currentObjects {
gvk := currentObject.GetObjectKind().GroupVersionKind()
if gvk.Kind == CustomResourc... | [
-1.0057519674301147,
-0.6885515451431274,
0.3760145604610443,
-0.48221156001091003,
0.6539266109466553,
-0.36335256695747375,
0.3852141797542572,
-0.6945134401321411,
0.19893987476825714,
1.678146481513977,
-0.06705877184867859,
0.9844000339508057,
-0.6210100054740906,
0.08244547247886658,... |
func (c *Inventory) PrepareDesiredObjects(ns, componentName string, parent reconciler.ResourceOwner, resourceBuilders []reconciler.ResourceBuilder) (*core.ConfigMap, error) {
var err error
var desiredObjects []runtime.Object
var objectsInventory core.ConfigMap
objectsInventoryName := fmt.Sprintf("%s-%s-%s-object-in... | [
-0.9438352584838867,
-0.9006528854370117,
0.6563911437988281,
-0.03281088173389435,
0.745877742767334,
-0.06714563071727753,
-0.04396994411945343,
-0.6158179640769958,
0.1196080893278122,
0.08314831554889679,
-0.7315669655799866,
0.12783029675483704,
0.13435931503772736,
0.4848949015140533... |
func (c *Inventory) PrepareDeletableObjects() error {
var deleteObjects []runtime.Object
currentObjects := c.inventoryData.CurrentObjects
for _, currentObject := range currentObjects {
metaobj, err := meta.Accessor(currentObject)
if err != nil {
return errors.WrapIfWithDetails(err,
"could not access obje... | [
0.04578061401844025,
-1.331571340560913,
0.7034435868263245,
-0.13066452741622925,
0.006414748728275299,
-0.3211553394794464,
0.26722097396850586,
-0.534771740436554,
0.2070370316505432,
1.1026028394699097,
0.14915864169597626,
0.9238991737365723,
0.28065940737724304,
0.42198872566223145,
... |
func (c *Inventory) sanitizeDesiredObjects(desiredObjects []runtime.Object) error {
for i := range desiredObjects {
objMeta, err := meta.Accessor(desiredObjects[i])
if err != nil {
return errors.WrapIfWithDetails(err, "couldn't get meta data access for object", "gvk", desiredObjects[i].GetObjectKind().GroupVers... | [
-0.6447852849960327,
-0.896681010723114,
0.70394366979599,
0.12372983992099762,
0.5035524368286133,
-0.2543570101261139,
0.5377290844917297,
-0.8656345009803772,
0.12153761088848114,
0.9118639230728149,
-0.06320053339004517,
0.8362593054771423,
-0.6502214670181274,
0.4799191951751709,
0.... |
func (c *Inventory) IsClusterScoped(obj runtime.Object) (bool, error) {
gv, k := obj.GetObjectKind().GroupVersionKind().ToAPIVersionAndKind()
gvk := strings.Join([]string{gv, k}, "/")
if c.clusterScopedAPIResources != nil {
_, ok := c.clusterScopedAPIResources[gvk]
return ok, nil
}
actualGK := obj.GetObjectK... | [
-0.8438663482666016,
-0.6654461026191711,
0.8976954817771912,
-0.02884276583790779,
0.14519880712032318,
-0.2859277129173279,
0.5005990862846375,
-0.6902739405632019,
0.7651216983795166,
1.2061209678649902,
-0.46505510807037354,
0.7645002007484436,
-0.2656879127025604,
0.5356805920600891,
... |
func (c *Inventory) ensureNamespace(namespace string, objects []runtime.Object) error {
for i := range objects {
objMeta, err := meta.Accessor(objects[i])
if err != nil {
return errors.WrapIfWithDetails(err, "couldn't get meta data access for object", "gvk", objects[i].GetObjectKind().GroupVersionKind().String(... | [
-0.5871674418449402,
-0.6744365096092224,
0.7359808087348938,
0.16933764517307281,
0.9839180707931519,
0.03027881681919098,
0.19184958934783936,
-1.1731492280960083,
0.8741092681884766,
0.8919054865837097,
-0.029009800404310226,
0.3069060146808624,
-0.18526656925678253,
0.9424867033958435,... |
func (w *Wallet) Deposit(amount Bitcoin) {
w.balance += amount
} | [
0.6697548031806946,
-0.11819156259298325,
0.5021787285804749,
-0.8103899955749512,
0.3349114954471588,
0.9617217779159546,
-0.09288959205150604,
-1.2039759159088135,
0.010177415795624256,
-0.30287855863571167,
-0.17909415066242218,
-0.5045299530029297,
-0.39537063241004944,
1.3432775735855... |
func (w *Wallet) Withdraw(amount Bitcoin) error {
if amount > w.balance {
return errors.New("cannot withdraw, insufficient funds")
}
w.balance -= amount
return nil
} | [
0.3053978383541107,
0.4986063241958618,
0.44309380650520325,
-0.5715513825416565,
0.21295425295829773,
0.17236372828483582,
0.06464163959026337,
-0.8301616907119751,
0.6772149801254272,
-0.7946822643280029,
0.3533897399902344,
-0.5318765640258789,
-0.7395056486129761,
0.5082587003707886,
... |
func (w *Wallet) Balance() Bitcoin {
return w.balance
} | [
0.6853893995285034,
-0.5821161270141602,
0.2542983591556549,
-0.18594013154506683,
0.9256489276885986,
-0.09288293868303299,
-0.6139748096466064,
-1.3162448406219482,
0.7376901507377625,
-0.04634128138422966,
0.7181334495544434,
0.2831973433494568,
-1.2268069982528687,
0.831916332244873,
... |
func cmpEq(a []uint8, b []uint8, idx int) int { // THIS
if a[idx] < b[idx] {
return -1
} else if a[idx] > b[idx] {
return 1
} else if a[idx] != 0 {
return 0
}
return 0
} | [
-0.8959747552871704,
-1.0029032230377197,
0.7143778204917908,
-0.15181104838848114,
-0.03113848902285099,
-0.3905288577079773,
-0.8530745506286621,
-0.016237884759902954,
0.38873225450515747,
0.8735193610191345,
-0.004255224950611591,
0.19610214233398438,
-0.13491319119930267,
0.1401539295... |
func sortSystem(a [][]uint8, constant_terms [][]uint8) { // THIS
n_eq := len(a)
// simple selection sort, because there should not be that much equations
for i := 0; i < n_eq; i++ {
max := i
for j := i + 1; j < n_eq; j++ {
if cmpEq(a[max], a[j], i) < 0 {
max = j
}
}
a[i], a[max] = a[max], a[i]
co... | [
-0.09970463067293167,
-0.6985469460487366,
0.6550474166870117,
-0.3203449845314026,
0.2494087964296341,
-0.15820801258087158,
0.45731520652770996,
-0.27300044894218445,
0.554320752620697,
0.6093548536300659,
0.6879702806472778,
0.3921471834182739,
0.31507593393325806,
0.321953147649765,
... |
func gaussEliminationGF256(system [][]uint8, constantTerms [][]uint8) (unknowns [][]uint8, solvedEquations []bool, err error) {
if len(system) == 0 {
return nil, nil, nil
}
unknowns = make([][]uint8, len(system[0]))
nEq := len(system)
nUnknowns := len(unknowns)
solvedEquations = make([]bool, nEq)
sortSystem(sy... | [
-0.47999632358551025,
-0.19977138936519623,
0.7816445231437683,
-0.7062544822692871,
-0.13574112951755524,
-1.1361933946609497,
0.18693888187408447,
-0.1954399049282074,
0.3308373689651489,
0.6298922896385193,
-0.4576815962791443,
0.4476952850818634,
-0.5290616154670715,
0.2434013336896896... |
func NewCharacter(name string) *Character {
c := Character{
Name: name,
Role: "Player Character",
Statistics: map[string]*Statistic{},
Abilities: map[string]*Ability{},
PowerRunes: map[string]*Ability{},
ElementalRunes: map[string]*Ability{},
ConditionRunes: map[string]*A... | [
-0.670701265335083,
-1.3755768537521362,
0.8227867484092712,
-0.5032957792282104,
-0.7793169617652893,
0.5103628635406494,
0.3693045973777771,
-0.16202685236930847,
0.3931088447570801,
-0.262359082698822,
-0.3698420822620392,
0.2550862431526184,
0.49017372727394104,
0.4154024124145508,
0... |
func getCSVHeadersIndexMap() map[string]int {
// csvHeadersIndex holds the map of headers with its index
csvHeadersIndex := map[string]int{
"Unit": -1,
"FloorPlan": -1,
"UnitDesignation": -1,
"SQFT": -1,
"UnitLeaseStatus": -1,
"Name": -1,
"PhoneNumber": -1,
... | [
-0.515641987323761,
-1.3708093166351318,
0.3125651776790619,
-0.22045882046222687,
-0.5440189838409424,
0.4355582296848297,
0.19805453717708588,
0.08187608420848846,
0.16024598479270935,
-0.4589642584323883,
-0.33747735619544983,
0.11299017071723938,
-0.5669121742248535,
-0.501199066638946... |
func loadOneSiteCSVRow(csvHeadersIndex map[string]int, data []string) (bool, CSVRow) {
csvRow := reflect.New(reflect.TypeOf(CSVRow{}))
rowLoaded := false
for header, index := range csvHeadersIndex {
value := strings.TrimSpace(data[index])
csvRow.Elem().FieldByName(header).Set(reflect.ValueOf(value))
}
// if ... | [
-1.2083790302276611,
0.3385905921459198,
0.6932411789894104,
-0.15668755769729614,
-0.14252232015132904,
-0.03345593065023422,
-0.17164073884487152,
-0.8656819462776184,
0.9136891961097717,
-0.08036186546087265,
-0.11795676499605179,
-0.6072618961334229,
-0.663608193397522,
0.3695814311504... |
func NewEmailRoutingCatchAll(ctx *pulumi.Context,
name string, args *EmailRoutingCatchAllArgs, opts ...pulumi.ResourceOption) (*EmailRoutingCatchAll, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.Actions == nil {
return nil, errors.New("invalid value for r... | [
0.28977152705192566,
0.7547856569290161,
0.9005252718925476,
-0.7023793458938599,
-0.5780232548713684,
0.7818803191184998,
-0.06837785989046097,
0.18390384316444397,
-0.41376662254333496,
0.5917844772338867,
-0.33086565136909485,
0.29810428619384766,
0.655561089515686,
0.22395294904708862,... |
func GetEmailRoutingCatchAll(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *EmailRoutingCatchAllState, opts ...pulumi.ResourceOption) (*EmailRoutingCatchAll, error) {
var resource EmailRoutingCatchAll
err := ctx.ReadResource("cloudflare:index/emailRoutingCatchAll:EmailRoutingCatchAll", name, id, state, ... | [
0.35664430260658264,
0.6408552527427673,
0.7299463152885437,
-0.8015094995498657,
-0.3693694472312927,
0.04391353949904442,
-0.49141576886177063,
-0.2615945637226105,
0.2947908043861389,
0.4862067699432373,
0.3907143771648407,
1.2309662103652954,
1.0899744033813477,
-0.92542964220047,
-0... |
func (o EmailRoutingCatchAllOutput) Matchers() EmailRoutingCatchAllMatcherArrayOutput {
return o.ApplyT(func(v *EmailRoutingCatchAll) EmailRoutingCatchAllMatcherArrayOutput { return v.Matchers }).(EmailRoutingCatchAllMatcherArrayOutput)
} | [
-0.21043270826339722,
-0.7522810697555542,
0.532311201095581,
0.02232578955590725,
0.6649683117866516,
0.4904932975769043,
-0.18512652814388275,
0.6772568225860596,
0.41149961948394775,
-0.12806983292102814,
-0.5690829157829285,
0.24082127213478088,
1.1093885898590088,
-0.2379888892173767,... |
func (o EmailRoutingCatchAllOutput) ZoneId() pulumi.StringOutput {
return o.ApplyT(func(v *EmailRoutingCatchAll) pulumi.StringOutput { return v.ZoneId }).(pulumi.StringOutput)
} | [
1.0280725955963135,
-0.12778255343437195,
0.4214708209037781,
0.007895683869719505,
0.2378951460123062,
1.1611144542694092,
0.29231494665145874,
0.7049285173416138,
1.2154899835586548,
0.2208380550146103,
0.13250558078289032,
1.1578882932662964,
0.7654249668121338,
-0.8354450464248657,
-... |
func New(
log logger.Logger,
config *config.Config,
jwtService jwt.Service,
accountUsecase account.AccountUsecase,
refreshTokenUsecase refreshtoken.RefreshTokenUsecase,
userUsecase user.UserUsecase,
) Service {
s := &server{
log: log,
config: config,
jwtService: jwtSer... | [
-0.4249119460582733,
-0.4520145654678345,
0.5189120769500732,
-0.1542760729789734,
-0.22154836356639862,
-0.14438071846961975,
0.30099573731422424,
-0.6410713195800781,
0.6575754880905151,
0.18876031041145325,
0.2963024079799652,
1.5595871210098267,
0.19600306451320648,
0.9704623818397522,... |
func NewSchedulerOperationCancelHandler(a *App) *SchedulerOperationCancelHandler {
m := &SchedulerOperationCancelHandler{App: a}
return m
} | [
-0.1866426020860672,
-0.44177383184432983,
0.03339531272649765,
1.2448012828826904,
-1.0882481336593628,
-0.10369972139596939,
0.2984473705291748,
0.9167613983154297,
0.20591190457344055,
0.6195484399795532,
1.01240074634552,
-1.1977310180664062,
-0.2684696316719055,
-0.8499736785888672,
... |
func NewSchedulerOperationCancelCurrentHandler(
a *App,
) *SchedulerOperationCancelCurrentHandler {
m := &SchedulerOperationCancelCurrentHandler{App: a}
return m
} | [
-0.16722355782985687,
-1.1823468208312988,
0.03915039822459221,
0.9765417575836182,
-1.2146936655044556,
0.07072928547859192,
0.5319964289665222,
0.8954798579216003,
0.03307454288005829,
0.38789644837379456,
1.1955009698867798,
-1.0978540182113647,
-0.10433946549892426,
-0.4333308339118957... |
func NewWorkflowListResponse(items []Workflow, nextPageToken string) *WorkflowListResponse {
this := WorkflowListResponse{}
this.Items = items
this.NextPageToken = nextPageToken
return &this
} | [
-0.5006566047668457,
-1.361974835395813,
-0.10956349968910217,
0.07766497880220413,
0.3027729392051697,
-1.2979466915130615,
-0.039921049028635025,
0.30820250511169434,
1.738616704940796,
0.31728941202163696,
-1.5570344924926758,
-0.8699778318405151,
-0.8909543752670288,
0.2136706560850143... |
func NewWorkflowListResponseWithDefaults() *WorkflowListResponse {
this := WorkflowListResponse{}
return &this
} | [
-0.33037319779396057,
-0.4712066650390625,
-0.32083189487457275,
0.3434101939201355,
0.9098497033119202,
-1.4894092082977295,
-0.09938473999500275,
0.06352675706148148,
1.238906979560852,
0.05627972260117531,
-1.7157338857650757,
-2.0612952709198,
-1.1868298053741455,
0.4323113262653351,
... |
func (o *WorkflowListResponse) GetItems() []Workflow {
if o == nil {
var ret []Workflow
return ret
}
return o.Items
} | [
-0.07146477699279785,
0.09851791709661484,
-0.334118127822876,
0.4913160800933838,
0.9753623604774475,
-0.39212071895599365,
0.7047498226165771,
-0.46649670600891113,
1.2757391929626465,
-0.925696611404419,
0.4020099341869354,
-0.33817142248153687,
-0.5540516376495361,
0.3100345730781555,
... |
func (o *WorkflowListResponse) GetItemsOk() (*[]Workflow, bool) {
if o == nil {
return nil, false
}
return &o.Items, true
} | [
-0.2915728688240051,
0.10126005113124847,
0.1494581252336502,
0.31363701820373535,
0.5239301919937134,
-0.31730917096138,
0.5028476715087891,
-0.5606818795204163,
-0.4209032356739044,
0.5031859874725342,
-1.1363173723220825,
-0.8748001456260681,
0.2764778435230255,
-0.03428450599312782,
... |
func (o *WorkflowListResponse) SetItems(v []Workflow) {
o.Items = v
} | [
-1.0185679197311401,
-0.5032830238342285,
-0.31400200724601746,
0.07606051117181778,
0.3903312683105469,
-0.1514255851507187,
0.0570291243493557,
-0.35351893305778503,
0.7131176590919495,
-0.3505919277667999,
-0.5608270764350891,
-0.5869867205619812,
-0.3706539273262024,
0.564659833908081,... |
func (o *WorkflowListResponse) GetNextPageToken() string {
if o == nil {
var ret string
return ret
}
return o.NextPageToken
} | [
-0.23084773123264313,
-0.6652795076370239,
-0.12125292420387268,
0.5980060696601868,
-0.5446682572364807,
0.7463282346725464,
-0.24210819602012634,
0.41247305274009705,
0.4178279936313629,
-0.591357946395874,
-0.2997072637081146,
-0.28955110907554626,
-0.6044617891311646,
0.497139960527420... |
func (o *WorkflowListResponse) GetNextPageTokenOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.NextPageToken, true
} | [
-0.3598247766494751,
0.6531233191490173,
0.280839741230011,
0.9128038287162781,
-0.6900031566619873,
-0.16831596195697784,
-0.20134682953357697,
0.44917306303977966,
-0.013765193521976471,
0.16864298284053802,
-1.03233003616333,
-1.1744415760040283,
0.3541349768638611,
0.6275020837783813,
... |
func (o *WorkflowListResponse) SetNextPageToken(v string) {
o.NextPageToken = v
} | [
-0.5918008089065552,
-0.9160587787628174,
-0.2632744014263153,
-0.07354521751403809,
-1.0632288455963135,
-0.24609486758708954,
-0.32790467143058777,
0.2753446698188782,
0.38467133045196533,
0.09139349311590195,
-0.8956318497657776,
-0.05000704154372215,
-0.35916388034820557,
0.65687835216... |
func (i *Inicnf) MustDataDirCheckVersion(version int) (string, bool) {
dir := i.Section("").Key("data_dir").MustString("~/.hacash_mainnet")
if strings.HasPrefix(dir, "~/") {
dir = os.Getenv("HOME") + string([]byte(dir)[1:])
}
dir = AbsDir(dir)
dir = filepath.Join(dir, fmt.Sprintf("v%d", version))
// Check for p... | [
-0.9966132044792175,
-0.4959661662578583,
0.9394935965538025,
-0.45520636439323425,
-0.14611123502254486,
1.052044153213501,
0.07058848440647125,
0.7933647036552429,
-0.29695358872413635,
0.4195975661277771,
-0.29406142234802246,
-0.3626841604709625,
-0.13057951629161835,
0.991752803325653... |
func (d *Droplets) AddDroplet(droplet string, id int) {
d.Lock()
defer d.Unlock()
d.droplets[droplet] = id
} | [
-0.49800094962120056,
0.43081244826316833,
0.21714705228805542,
-0.6197887063026428,
-0.2870805859565735,
1.3126288652420044,
-0.9534388780593872,
-0.47657299041748047,
0.19790267944335938,
-1.214376449584961,
-0.37017273902893066,
-0.5780847668647766,
-0.31110841035842896,
-0.343159228563... |
func (d *Droplets) GetID(droplet string) int {
d.RLock()
defer d.RUnlock()
return d.droplets[droplet]
} | [
-0.39959457516670227,
0.3209652900695801,
0.35995206236839294,
-0.15550678968429565,
-0.217631995677948,
0.7948138117790222,
0.6282415390014648,
-0.6738781332969666,
0.44061124324798584,
-0.4200810194015503,
-0.6813757419586182,
-0.5118113160133362,
-1.1739166975021362,
-0.3044509291648865... |
func (y *YogClient) CreateStack(request CreateStackRequest) (CreateStackResponse, YogError) {
csi, err := parseTemplate(request.TemplateBody)
if err != nil {
ye := YogError{
Code: FailedToParseYaml,
Message: "error while parsing template",
Error: err,
DropletErrors: []DropletError... | [
-0.7311479449272156,
0.025610798969864845,
0.8958603143692017,
0.6045282483100891,
0.16753672063350677,
-0.5969306826591492,
1.0097676515579224,
-0.5154533982276917,
0.6878966689109802,
-0.3215450048446655,
-0.06583668291568756,
-0.36157041788101196,
-0.17748677730560303,
0.964291274547576... |
func (y *YogClient) DeleteStack(request DeleteStackRequest) (DeleteStackResponse, YogError) {
ret := DeleteStackResponse{}
return ret, YogError{}
} | [
-0.5217990875244141,
0.36875492334365845,
0.7306933403015137,
0.8902999758720398,
-0.04055390506982803,
-0.8429514765739441,
1.3161046504974365,
-0.23635444045066833,
0.3672420084476471,
-1.076723337173462,
-0.4812937080860138,
0.7778294086456299,
-0.8151972889900208,
0.7481235861778259,
... |
func (y *YogClient) DescribeStack(request DescribeStackRequest) (DescribeStackResponse, YogError) {
return DescribeStackResponse{}, YogError{}
} | [
-0.810869574546814,
0.6428931951522827,
0.5513632893562317,
0.15211385488510132,
0.12407832592725754,
-1.0057034492492676,
0.7741883397102356,
-0.48152846097946167,
-0.41858693957328796,
-0.8310154676437378,
-0.29127928614616394,
1.4267672300338745,
-0.7910006642341614,
1.061222791671753,
... |
func (y *YogClient) launchAllDroplets(droplets []Resource) []DropletError {
dropletErrors := make([]DropletError, 0)
sem := make(chan int, 4)
var wg sync.WaitGroup
var wl *sync.Mutex
for _, v := range droplets {
if d, ok := v.(*Droplet); ok {
wg.Add(1)
go func(d *Droplet, wl *sync.Mutex) {
defer wg.Don... | [
-0.29610493779182434,
0.03265450894832611,
0.876681923866272,
0.4650615155696869,
-0.6301090717315674,
-0.14981116354465485,
0.48696377873420715,
-0.8997076153755188,
0.7977035045623779,
-0.4639569818973541,
-0.11507975310087204,
-0.49892744421958923,
-0.1544588804244995,
1.249639153480529... |
func (y *YogClient) launchDroplet(droplet *Droplet) error {
err := droplet.build(y)
if err != nil {
return err
}
droplets.AddDroplet(droplet.Request.Name, droplet.Droplet.ID)
return nil
} | [
0.24427615106105804,
0.30811870098114014,
0.5853641629219055,
-0.21729685366153717,
-0.008648143149912357,
0.8481531739234924,
0.24140459299087524,
-0.6168399453163147,
1.0772759914398193,
-1.2788574695587158,
-0.4648909568786621,
-0.0818323940038681,
0.04697500914335251,
0.536444306373596... |
func (y *YogClient) setupDropletIDsForResources(resources []Resource) error {
for _, v := range resources {
switch i := v.(type) {
case *FloatingIP:
i.setDropletID(droplets.GetID(i.DropletName))
case *LoadBalancer:
var ids []int
for _, v := range i.DropletNames {
ids = append(ids, droplets.GetID(v))... | [
-0.41809016466140747,
-0.590676486492157,
0.7833674550056458,
-1.1659706830978394,
-0.125615194439888,
0.32261228561401367,
0.22416239976882935,
-0.8574035167694092,
-0.20662453770637512,
-0.02265453338623047,
0.04855130612850189,
-0.17307139933109283,
-0.08104138821363449,
0.5921260714530... |
func ToType(typ types.Type, ctx GoTypeFinder) (reflect.Type, error) {
switch t := typ.(type) {
case *types.Basic:
if kind := t.Kind(); kind >= types.Bool && kind <= types.UnsafePointer {
return basicTypes[kind], nil
}
return nil, ErrUntyped
case *types.Pointer:
elem, err := ToType(t.Elem(), ctx)
if err ... | [
-0.4130170941352844,
-0.23595958948135376,
1.0156060457229614,
0.36409151554107666,
0.19409073889255524,
-0.3731718063354492,
0.14527109265327454,
-1.1492563486099243,
0.9482433199882507,
0.3304392695426941,
-0.14563646912574768,
0.5420671701431274,
-0.15880830585956573,
0.4342950880527496... |
func toStructType(t *types.Struct, ctx GoTypeFinder) (typ reflect.Type, err error) {
n := t.NumFields()
flds := make([]reflect.StructField, n)
for i := 0; i < n; i++ {
v := t.Field(i)
if flds[i], err = toStructField(v, t.Tag(i), ctx); err != nil {
return
}
}
return reflect.StructOf(flds), nil
} | [
-0.2529999017715454,
0.8786596059799194,
0.5283634662628174,
-0.6499026417732239,
0.7332190871238708,
-0.2644723951816559,
0.9898650646209717,
-0.7006583213806152,
0.5737948417663574,
0.48491448163986206,
-1.1985957622528076,
-0.16555409133434296,
-0.13662943243980408,
-0.13291281461715698... |
func (f *FundDistribution) MapFundDistributionToAssetDividend(ctx context.Context, log logger.ContextLog) *AssetDividend {
assetDividend := &AssetDividend{
Ticker: f.Ticker,
Dividends: make(map[int64]*DividendDetails),
}
for _, distribution := range f.DistributionHistories {
if strings.EqualFold(distributi... | [
0.006022257264703512,
-0.32938969135284424,
0.6088194251060486,
-0.5653220415115356,
0.05062966048717499,
0.03468881919980049,
0.0680481493473053,
-0.35356369614601135,
-0.04578453302383423,
-0.08531926572322845,
0.32591789960861206,
0.3112879693508148,
0.805494487285614,
0.423688948154449... |
func RegisterNewFile(filename string) error {
gpgFilename := fmt.Sprintf("%s.gpg", filename)
//Check if this file is already registered. If it is, don't register
//it again.
currentFiles, err := ListFiles()
if err != nil {
return err
}
//Check if this file is already in the list of blackbox files. We... | [
-0.3330090045928955,
0.15375004708766937,
0.8440120220184326,
0.14972415566444397,
1.0132033824920654,
0.2664008140563965,
0.2637559473514557,
0.022642752155661583,
-0.9638601541519165,
0.42196977138519287,
-0.3700910210609436,
-0.24756646156311035,
-0.5781090259552002,
0.972802460193634,
... |
func (m *Message) send() *http.Response {
var client = &http.Client{
Timeout: time.Second * 10,
}
req, err := http.NewRequest(m.method, m.url, bytes.NewReader(m.body))
if err != nil {
log.Printf("%v\n", err)
}
req.Header = m.headers
// Prvent remote server from keeping connection alive
req.Close = true
r... | [
-0.31056031584739685,
-0.5097902417182922,
0.6878925561904907,
-0.44132840633392334,
0.5556538105010986,
0.1444271057844162,
-0.7497369647026062,
-1.0305808782577515,
-0.7686410546302795,
0.07319732755422592,
0.3630169630050659,
0.3948095440864563,
-1.974169135093689,
0.48752084374427795,
... |
func (d Desync) ServeHTTP(w http.ResponseWriter, r *http.Request) {
// nothing to send so return default response: 200 OK
if r.URL.String() == "/" {
return
}
b, err := ioutil.ReadAll(r.Body)
if err != nil {
log.Printf("%v\n", err)
}
defer r.Body.Close()
m := &Message{r.URL.String()[1:], r.Method, r.Heade... | [
-0.02360464073717594,
0.7192052602767944,
0.577517032623291,
-0.6951282620429993,
0.4575657248497009,
-0.15319494903087616,
-0.13394060730934143,
-0.9022348523139954,
-0.8013537526130676,
0.20527580380439758,
0.5441970825195312,
0.08375947922468185,
-0.4817788302898407,
0.6868317723274231,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.