text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func (v *Virt) ImageBuildCachePrune(ctx context.Context, all bool) (reclaimed uint64, err error) {
log.Warnf(ctx, "does not implement")
return
} | [
-0.8563529253005981,
0.18225179612636566,
0.4985196888446808,
0.8265444040298462,
-0.20328710973262787,
-0.6757680177688599,
0.3681076169013977,
0.1553138941526413,
1.0217396020889282,
-0.26404431462287903,
-0.5303202271461487,
0.1869252473115921,
-1.1658720970153809,
0.16624805331230164,
... |
func (v *Virt) ImageLocalDigests(ctx context.Context, image string) (digests []string, err error) {
return
} | [
-0.24321144819259644,
-1.1376539468765259,
0.269780695438385,
-0.5112029910087585,
-0.30946359038352966,
-0.511603832244873,
-0.20644214749336243,
-0.18397940695285797,
0.7496441602706909,
0.8667771220207214,
0.09157460927963257,
0.22032850980758667,
-0.610834002494812,
0.604063868522644,
... |
func (v *Virt) ImageRemoteDigest(ctx context.Context, image string) (digest string, err error) {
return
} | [
-0.7022475004196167,
-0.9149606823921204,
0.3217170536518097,
-1.1788139343261719,
-0.7822326421737671,
0.6707932949066162,
-0.9365578889846802,
-0.5414345860481262,
0.329391747713089,
0.22640351951122284,
-0.5671754479408264,
0.258874773979187,
-1.7927374839782715,
-0.03119651786983013,
... |
func WithQueueSize(size int) OptionFunc {
return func(cfg *config) {
cfg.queueSize = size
}
} | [
0.5211085081100464,
0.046601347625255585,
0.5160781145095825,
-0.6193578839302063,
-0.4748704135417938,
-0.5703487396240234,
0.29425477981567383,
-0.4324702322483063,
0.8669747114181519,
-0.0639730840921402,
-0.9211925864219666,
-0.2349444478750229,
0.7905683517456055,
0.6417291760444641,
... |
func WithWorkerSize(size int) OptionFunc {
return func(cfg *config) {
cfg.workerSize = size
}
} | [
0.36276453733444214,
-0.06877485662698746,
0.4226280152797699,
-0.2967033386230469,
-1.177941918373108,
0.09403462707996368,
0.6588874459266663,
-0.10236470401287079,
0.6989197731018066,
-0.04666387662291527,
-1.2934387922286987,
-0.19293977320194244,
0.12059399485588074,
0.391279101371765... |
func WithWorkerStack(stack int) OptionFunc {
return func(cfg *config) {
cfg.workerStack = stack
}
} | [
0.338476300239563,
0.5128348469734192,
0.3106355369091034,
0.3391323983669281,
-0.9217996597290039,
-0.6029819846153259,
0.5994450449943542,
-0.8143557906150818,
0.12979917228221893,
0.21437472105026245,
-0.9925206303596497,
-0.13192428648471832,
0.3591478168964386,
0.6075150370597839,
-... |
func WithWorkerWaitDuration(duration time.Duration) OptionFunc {
return func(cfg *config) {
cfg.workerWaitDuration = duration
}
} | [
-0.13022716343402863,
-0.5561554431915283,
0.3557531237602234,
0.26713159680366516,
-0.8028426170349121,
0.9930583238601685,
0.04304574057459831,
-0.19851209223270416,
0.3049094080924988,
0.3272643983364105,
-0.9783294796943665,
-0.19278085231781006,
0.9836866855621338,
0.6854516863822937,... |
func WithDispatcherLoopWaitDuration(duration time.Duration) OptionFunc {
return func(cfg *config) {
cfg.dispatcherLoopWaitDuration = duration
}
} | [
-0.09863156825304031,
-0.19906388223171234,
0.29353269934654236,
0.0019839501474052668,
-1.091323971748352,
1.2581197023391724,
-0.019315771758556366,
0.0850139781832695,
-0.15396083891391754,
0.21005095541477203,
-0.27821245789527893,
-0.8670504689216614,
1.2566412687301636,
0.66432636976... |
func WithMaxRetry(retry int) OptionFunc {
return func(cfg *config) {
cfg.maxRetry = retry
}
} | [
0.4271945059299469,
-0.21633921563625336,
0.27226775884628296,
0.42202290892601013,
-0.3486027121543884,
-0.3567225933074951,
-0.702392041683197,
0.16968511044979095,
1.1863412857055664,
0.15263010561466217,
-0.6369417905807495,
-0.18091551959514618,
0.6391023993492126,
-0.2870487570762634... |
func PublishEvent(event events.Event, topic string) error {
log.WithField("event", event).Info("attempting to publish event")
p, err := kafka.NewProducer(&kafka.ConfigMap{
"bootstrap.servers": config.BrokerAddress(),
"socket.timeout.ms": 30000,
"delivery.timeout.ms": 30000})
if err != nil {
return err
... | [
0.5623357892036438,
-0.30764636397361755,
0.7440695762634277,
0.0881253331899643,
-0.22796118259429932,
0.03229567036032677,
-0.14290496706962585,
0.14814500510692596,
-0.0894685760140419,
0.32353854179382324,
0.07997725158929825,
0.09055241197347641,
-0.24440020322799683,
0.47072657942771... |
func (i Index) Set(sourceID string, id int, table string, record *Record) {
info := RecordInfo{
ID: id,
Table: table,
Record: record,
}
sourceID = strings.ToLower(sourceID)
sourceID = strings.TrimSpace(sourceID)
i[sourceID] = info
} | [
-0.6740611791610718,
-0.07033121585845947,
0.08798107504844666,
-1.0995618104934692,
-0.4022497236728668,
0.09232819825410843,
-0.2512761652469635,
0.06068750470876694,
-0.7029532790184021,
0.2743413746356964,
-0.942095160484314,
0.8627842664718628,
0.08206521719694138,
-0.2474258840084076... |
func (i Index) Get(sourceID string) (RecordInfo, bool) {
sourceID = strings.ToLower(sourceID)
sourceID = strings.TrimSpace(sourceID)
info, ok := i[sourceID]
return info, ok
} | [
-0.9049811959266663,
0.16848234832286835,
0.3528081476688385,
-1.4647599458694458,
-0.14261668920516968,
-0.4470522701740265,
-0.3934894800186157,
-0.2493133842945099,
-0.28473547101020813,
0.7373583316802979,
-1.0900299549102783,
0.6192589402198792,
-0.5045207142829895,
-0.663858294486999... |
func wsAdminConnector(manager *Managers, w http.ResponseWriter, r *http.Request) {
ws, err := adminUpgrader.Upgrade(w, r, nil)
if err != nil {
logger.Info("Error setting up new socket connection")
return
}
// We don't remake the admin connection just because the browser got lost
if manager.am == nil {
logg... | [
-0.7378385066986084,
-0.7329543232917786,
0.6992301940917969,
-0.4327112138271332,
-0.3497655391693115,
-0.3286694884300232,
-0.43750113248825073,
-0.7574453353881836,
0.7507832646369934,
0.06258277595043182,
0.7341830730438232,
0.9716118574142456,
-0.32244932651519775,
1.3075989484786987,... |
func wsViewConnector(manager *Managers, w http.ResponseWriter, r *http.Request) {
ws, err := viewUpgrader.Upgrade(w, r, nil)
if err != nil {
logger.Info("Error setting up new socket connection")
return
}
// We don't remake the admin connection just because the browser got lost
if manager.vc == nil {
logger.... | [
-0.6783004999160767,
-0.23997287452220917,
0.7693394422531128,
0.10600174963474274,
-0.7720912098884583,
-0.9273527264595032,
-0.352450966835022,
-0.38197609782218933,
0.4341334104537964,
0.05200051888823509,
1.0418392419815063,
0.7502982020378113,
-0.30406898260116577,
1.0848987102508545,... |
func (c *Client) ListSimulations(quiet bool) error {
sims, err := c.retrieveSimulations()
if err != nil {
return err
}
if quiet {
for _, sim := range sims {
fmt.Println(sim.Id)
}
return nil
}
tw := table.NewWriter()
tw.AppendHeader(table.Row{"Title", "ID", "State"})
for _, sim := range sims {
t... | [
0.17048709094524384,
1.2700729370117188,
0.5593863725662231,
-0.06198178231716156,
0.2133679986000061,
-0.6258285641670227,
-0.2324318289756775,
-0.8772093653678894,
0.19668197631835938,
-0.030633052811026573,
-0.17084500193595886,
0.02903622016310692,
-0.08948224037885666,
0.5013116598129... |
func (c *Client) GetSimulation(input string, quiet bool) error {
sims, err := c.retrieveSimulations()
if err != nil {
return err
}
id, err := c.getResourceID(input, simGeneralizer(sims))
if err != nil {
return err
}
sim, err := c.retrieveSimulation(id)
if err != nil {
return err
}
if quiet {
fmt.P... | [
-0.012957115657627583,
0.9711849093437195,
0.4518287181854248,
-0.20226019620895386,
0.01471757236868143,
-1.0239896774291992,
-0.04378289729356766,
-0.7474885582923889,
-0.00805619079619646,
0.3246857523918152,
-0.4537378251552582,
0.7735515236854553,
-0.2356083244085312,
-0.0144708082079... |
func (a AlertPropertiesDetails) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
populate(objectMap, "amount", a.Amount)
populate(objectMap, "companyName", a.CompanyName)
populate(objectMap, "contactEmails", a.ContactEmails)
populate(objectMap, "contactGroups", a.ContactGroups)
populate(o... | [
0.7195677161216736,
-1.2817583084106445,
0.6439066529273987,
-1.0516589879989624,
-0.594280481338501,
-0.19775564968585968,
0.40097326040267944,
-1.0313645601272583,
0.27026116847991943,
0.11063377559185028,
0.16879017651081085,
0.8855483531951904,
0.6585066914558411,
0.21081675589084625,
... |
func (a AlertsResult) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
populate(objectMap, "nextLink", a.NextLink)
populate(objectMap, "value", a.Value)
return json.Marshal(objectMap)
} | [
-0.0009044453618116677,
-0.602827250957489,
0.22020013630390167,
-0.4191266596317291,
-0.8079940676689148,
-0.5667406916618347,
0.843265950679779,
-0.09556320309638977,
0.6097539067268372,
-0.13903865218162537,
-0.1585170477628708,
1.46706223487854,
-0.19190795719623566,
0.197677880525589,... |
func (c CommonExportProperties) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
populate(objectMap, "definition", c.Definition)
populate(objectMap, "deliveryInfo", c.DeliveryInfo)
populate(objectMap, "format", c.Format)
populateTimeRFC3339(objectMap, "nextRunTimeEstimate", c.NextRunTimeEs... | [
-0.3286453187465668,
-0.35703763365745544,
0.6427228450775146,
-0.18546634912490845,
-0.1286534070968628,
-0.14000333845615387,
0.83327317237854,
0.21184805035591125,
-0.04360668733716011,
0.4958759546279907,
-0.28113001585006714,
0.3471112847328186,
-0.7586021423339844,
0.6039978861808777... |
func (c *CommonExportProperties) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
return err
}
for key, val := range rawMsg {
var err error
switch key {
case "definition":
err = unpopulate(val, &c.Definition)
delete(rawMsg, ... | [
-0.3784593641757965,
0.14430302381515503,
0.8276159763336182,
-0.6493654847145081,
-0.4751410186290741,
-0.11914893984794617,
0.6303194761276245,
-0.12198527902364731,
-0.36430224776268005,
0.5893290042877197,
0.11203896999359131,
-0.19429226219654083,
-0.8015524744987488,
0.70723950862884... |
func (d Dimension) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
populate(objectMap, "eTag", d.ETag)
populate(objectMap, "id", d.ID)
populate(objectMap, "location", d.Location)
populate(objectMap, "name", d.Name)
populate(objectMap, "properties", d.Properties)
populate(objectMap, "sku... | [
-0.4183642268180847,
-0.5313947200775146,
0.43046921491622925,
-0.3843252956867218,
-0.5622742176055908,
0.24018286168575287,
0.2588963806629181,
0.244198277592659,
-0.3359500467777252,
0.2968122661113739,
-0.866179347038269,
0.7950526475906372,
0.03598533198237419,
0.5136008858680725,
0... |
func (d DimensionProperties) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
populate(objectMap, "category", d.Category)
populate(objectMap, "data", d.Data)
populate(objectMap, "description", d.Description)
populate(objectMap, "filterEnabled", d.FilterEnabled)
populate(objectMap, "groupi... | [
-0.2608873248100281,
-0.417424738407135,
0.03618612512946129,
-0.6195414066314697,
-0.39505940675735474,
-0.21417894959449768,
0.6150761246681213,
0.24218404293060303,
-0.6203973889350891,
0.39770469069480896,
-0.31255099177360535,
0.5248304009437561,
-0.5749268531799316,
0.348514974117279... |
func (d *DimensionProperties) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
return err
}
for key, val := range rawMsg {
var err error
switch key {
case "category":
err = unpopulate(val, &d.Category)
delete(rawMsg, key)
... | [
-0.30705851316452026,
-0.022151557728648186,
0.5700207352638245,
-0.9053152799606323,
-0.6727944612503052,
-0.08508972078561783,
0.5530064105987549,
0.030600443482398987,
-0.7773529291152954,
0.48981907963752747,
0.40600308775901794,
0.08573600649833679,
-0.4662110507488251,
0.485804051160... |
func (d DimensionsListResult) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
populate(objectMap, "value", d.Value)
return json.Marshal(objectMap)
} | [
-0.6733939051628113,
0.6122170090675354,
-0.14129742980003357,
-0.15878449380397797,
-0.8770206570625305,
-0.6126880645751953,
0.09427157789468765,
0.25844231247901917,
0.31621184945106506,
0.3071988523006439,
-1.3655991554260254,
0.02121613174676895,
0.1203947439789772,
0.9572794437408447... |
func (d DismissAlertPayload) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
populate(objectMap, "properties", d.Properties)
return json.Marshal(objectMap)
} | [
0.6658390164375305,
-0.2543502151966095,
0.3652476370334625,
-0.8243127465248108,
-0.5908505320549011,
0.3127378523349762,
-0.15089961886405945,
0.4553007185459137,
-0.10589573532342911,
0.04518205672502518,
0.14584462344646454,
0.5134875774383545,
0.07703839987516403,
0.5836168527603149,
... |
func (d DownloadURL) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
populate(objectMap, "downloadUrl", d.DownloadURL)
populateTimeRFC3339(objectMap, "validTill", d.ValidTill)
return json.Marshal(objectMap)
} | [
-0.5247597694396973,
-0.3605896830558777,
0.22572477161884308,
-0.030324649065732956,
0.061604149639606476,
-0.37453171610832214,
0.512586236000061,
0.12648798525333405,
0.6759974360466003,
-0.19564728438854218,
-0.5477827191352844,
0.1854095309972763,
0.22965312004089355,
1.00421667098999... |
func (d *DownloadURL) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
return err
}
for key, val := range rawMsg {
var err error
switch key {
case "downloadUrl":
err = unpopulate(val, &d.DownloadURL)
delete(rawMsg, key)
ca... | [
-0.6757347583770752,
0.26163777709007263,
0.5198364853858948,
-0.6213719248771667,
-0.2248980551958084,
-0.33181458711624146,
0.2650444209575653,
-0.10472061485052109,
0.07045260816812515,
0.20354849100112915,
-0.05173955857753754,
-0.35556069016456604,
0.05851201340556145,
1.2320141792297... |
func (e ExportDatasetConfiguration) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
populate(objectMap, "columns", e.Columns)
return json.Marshal(objectMap)
} | [
-0.6731747984886169,
0.3499669134616852,
0.32531777024269104,
-0.6678979396820068,
-0.439732164144516,
-0.9440574049949646,
0.33748358488082886,
0.44102743268013,
0.37043875455856323,
0.5951356887817383,
-0.7876732349395752,
0.2623850107192993,
0.9060173630714417,
0.5035682916641235,
-0.... |
func (e ExportExecutionListResult) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
populate(objectMap, "value", e.Value)
return json.Marshal(objectMap)
} | [
-0.3067849576473236,
0.47337818145751953,
0.24850013852119446,
-0.2503964602947235,
-0.2753913998603821,
-0.6913995742797852,
0.5194700956344604,
0.4182518720626831,
1.1576205492019653,
1.1587588787078857,
-0.9845858812332153,
0.22965919971466064,
0.05554744973778725,
0.7957432270050049,
... |
func (e ExportExecutionProperties) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
populate(objectMap, "error", e.Error)
populate(objectMap, "executionType", e.ExecutionType)
populate(objectMap, "fileName", e.FileName)
populateTimeRFC3339(objectMap, "processingEndTime", e.ProcessingEndTim... | [
-0.45187392830848694,
-0.5528461337089539,
0.4773009121417999,
-0.4028402268886566,
-0.3173225522041321,
-0.20682881772518158,
0.5653473138809204,
0.2638343572616577,
0.34356191754341125,
1.2060672044754028,
-0.09856491535902023,
0.3647236227989197,
0.10750386118888855,
0.3257337212562561,... |
func (e *ExportExecutionProperties) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
return err
}
for key, val := range rawMsg {
var err error
switch key {
case "error":
err = unpopulate(val, &e.Error)
delete(rawMsg, key)
... | [
-0.5899233818054199,
-0.01555604673922062,
0.7548009753227234,
-0.608211100101471,
-0.5569205284118652,
-0.34938329458236694,
0.3046761155128479,
0.05830783024430275,
-0.1448839008808136,
1.045161485671997,
0.37156879901885986,
-0.04037874937057495,
-0.05395912751555443,
0.6370952129364014... |
func (e ExportListResult) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
populate(objectMap, "value", e.Value)
return json.Marshal(objectMap)
} | [
-0.5318572521209717,
0.2789466083049774,
0.2944541871547699,
-0.16777586936950684,
-0.3373716175556183,
-0.6583579182624817,
-0.10353367775678635,
0.6948091983795166,
1.568049669265747,
0.9308515787124634,
-1.3992584943771362,
-0.18796207010746002,
-0.10434211790561676,
0.5325255990028381,... |
func (e ExportProperties) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
populate(objectMap, "definition", e.Definition)
populate(objectMap, "deliveryInfo", e.DeliveryInfo)
populate(objectMap, "format", e.Format)
populateTimeRFC3339(objectMap, "nextRunTimeEstimate", e.NextRunTimeEstimate... | [
-0.6268928050994873,
-0.33579695224761963,
0.5117542743682861,
-0.5743587613105774,
-0.4232119619846344,
-0.5639222860336304,
0.27098348736763,
0.281785249710083,
0.3525561988353729,
0.8177694082260132,
-0.19717013835906982,
0.35779333114624023,
-0.13879966735839844,
0.3830083906650543,
... |
func (e *ExportProperties) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
return err
}
for key, val := range rawMsg {
var err error
switch key {
case "definition":
err = unpopulate(val, &e.Definition)
delete(rawMsg, key)
... | [
-0.6272450685501099,
0.26970309019088745,
0.870103120803833,
-0.806120753288269,
-0.7408726811408997,
-0.5740871429443359,
0.10373766720294952,
0.009657004848122597,
-0.12263445556163788,
0.9136644601821899,
0.3685036599636078,
0.013998563401401043,
-0.31532904505729675,
0.4330150187015533... |
func (e ExportRecurrencePeriod) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
populateTimeRFC3339(objectMap, "from", e.From)
populateTimeRFC3339(objectMap, "to", e.To)
return json.Marshal(objectMap)
} | [
0.25437870621681213,
-0.3434132933616638,
0.3693304657936096,
-0.6905183792114258,
0.06016483157873154,
-0.47458013892173767,
0.697163462638855,
0.050648026168346405,
1.1125355958938599,
0.7169978022575378,
-0.26577115058898926,
0.4328099489212036,
-0.5929999351501465,
-0.33004242181777954... |
func (e *ExportRecurrencePeriod) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
return err
}
for key, val := range rawMsg {
var err error
switch key {
case "from":
err = unpopulateTimeRFC3339(val, &e.From)
delete(rawMsg, k... | [
-0.19469037652015686,
0.4837418496608734,
0.535438597202301,
-1.164309024810791,
-0.510949969291687,
-0.39717593789100647,
0.587449848651886,
-0.22702358663082123,
0.5380768179893494,
1.0811856985092163,
0.15648676455020905,
-0.047640521079301834,
-0.6619367599487305,
-0.07544859498739243,... |
func (e ExportTimePeriod) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
populateTimeRFC3339(objectMap, "from", e.From)
populateTimeRFC3339(objectMap, "to", e.To)
return json.Marshal(objectMap)
} | [
-0.18773533403873444,
-0.30502963066101074,
0.47355887293815613,
-0.6259410977363586,
-0.3810194134712219,
0.006303637288510799,
-0.09533370286226273,
-0.5160902142524719,
1.037449836730957,
1.3336797952651978,
-0.32495564222335815,
-0.46729132533073425,
-0.41003942489624023,
0.07762885838... |
func (e *ExportTimePeriod) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
return err
}
for key, val := range rawMsg {
var err error
switch key {
case "from":
err = unpopulateTimeRFC3339(val, &e.From)
delete(rawMsg, key)
... | [
-0.3864721655845642,
0.4588629901409149,
0.6647936701774597,
-1.207914113998413,
-0.6613183617591858,
-0.12503398954868317,
-0.06768842786550522,
-0.7842978835105896,
0.4899400770664215,
1.7297002077102661,
0.1009039580821991,
-0.54807448387146,
-0.5250616669654846,
0.23745696246623993,
... |
func (f ForecastDataset) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
populate(objectMap, "aggregation", f.Aggregation)
populate(objectMap, "configuration", f.Configuration)
populate(objectMap, "filter", f.Filter)
populate(objectMap, "granularity", f.Granularity)
return json.Marshal(o... | [
-0.6946452260017395,
0.4002710282802582,
0.1949845403432846,
-0.4037472903728485,
-0.7565867900848389,
-0.49126648902893066,
0.6412161588668823,
0.24722616374492645,
-0.3087207078933716,
-0.4807226061820984,
-0.07589379698038101,
0.7645872235298157,
0.8793705701828003,
0.8234407305717468,
... |
func (o OperationListResult) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
populate(objectMap, "nextLink", o.NextLink)
populate(objectMap, "value", o.Value)
return json.Marshal(objectMap)
} | [
-0.9095136523246765,
0.2711222767829895,
0.15440766513347626,
-0.1595446765422821,
-0.8058437705039978,
-0.9308790564537048,
0.8068413138389587,
-0.10061343014240265,
0.6246780157089233,
0.20095157623291016,
-0.7567170262336731,
-0.3636910915374756,
-0.31789955496788025,
0.3634676933288574... |
func (q QueryComparisonExpression) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
populate(objectMap, "name", q.Name)
populate(objectMap, "operator", q.Operator)
populate(objectMap, "values", q.Values)
return json.Marshal(objectMap)
} | [
-0.16600921750068665,
-0.7257393598556519,
0.2856253385543823,
-0.5525505542755127,
-0.6367337107658386,
0.5799075961112976,
0.5217534303665161,
0.2750050127506256,
0.5322820544242859,
0.23818814754486084,
-1.0254194736480713,
0.4173198640346527,
-0.3417154550552368,
0.18971340358257294,
... |
func (q QueryDataset) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
populate(objectMap, "aggregation", q.Aggregation)
populate(objectMap, "configuration", q.Configuration)
populate(objectMap, "filter", q.Filter)
populate(objectMap, "granularity", q.Granularity)
populate(objectMap, "gro... | [
-0.3506043255329132,
-0.06934602558612823,
0.14510822296142578,
-1.1645214557647705,
-0.7573536038398743,
0.16173169016838074,
0.31093770265579224,
-0.13828977942466736,
0.3180493414402008,
-0.9079541563987732,
-0.10873399674892426,
0.9680750966072083,
0.09902586042881012,
0.19470559060573... |
func (q QueryDatasetConfiguration) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
populate(objectMap, "columns", q.Columns)
return json.Marshal(objectMap)
} | [
-0.6935980319976807,
0.27539870142936707,
0.026381224393844604,
-1.0588245391845703,
-0.31487736105918884,
-0.24392147362232208,
0.05126954987645149,
-0.0707281306385994,
-0.07194147258996964,
-0.4301861822605133,
-0.782050609588623,
0.17244242131710052,
0.6997931003570557,
0.4739104807376... |
func (q QueryFilter) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
populate(objectMap, "and", q.And)
populate(objectMap, "dimension", q.Dimension)
populate(objectMap, "not", q.Not)
populate(objectMap, "or", q.Or)
populate(objectMap, "tag", q.Tag)
return json.Marshal(objectMap)
} | [
-0.4350605607032776,
-0.5392984747886658,
-0.039890632033348083,
-0.5203607678413391,
-0.7224070429801941,
0.00924255046993494,
-0.25868088006973267,
0.19722649455070496,
-0.283491849899292,
-0.2853849530220032,
-1.3037176132202148,
0.6936042308807373,
-0.048461832106113434,
0.755557298660... |
func (q QueryProperties) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
populate(objectMap, "columns", q.Columns)
populate(objectMap, "nextLink", q.NextLink)
populate(objectMap, "rows", q.Rows)
return json.Marshal(objectMap)
} | [
-0.4761278033256531,
-0.34445473551750183,
-0.03512313961982727,
-0.8623450994491577,
-0.3296191990375519,
0.10035562515258789,
0.00922329630702734,
-0.2312036156654358,
-0.059073008596897125,
-0.2764228284358978,
-0.2327810674905777,
0.3382740318775177,
-0.22391502559185028,
-0.1202369108... |
func (q QueryResult) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
populate(objectMap, "eTag", q.ETag)
populate(objectMap, "id", q.ID)
populate(objectMap, "location", q.Location)
populate(objectMap, "name", q.Name)
populate(objectMap, "properties", q.Properties)
populate(objectMap, "s... | [
-0.2626242935657501,
-0.5516641139984131,
-0.08881716430187225,
-0.730376660823822,
-0.25587448477745056,
-0.26580604910850525,
-0.37695053219795227,
-0.046514593064785004,
0.337837815284729,
-0.3986370265483856,
-1.491288423538208,
0.07821435481309891,
-0.11220379173755646,
0.112515568733... |
func (q QueryTimePeriod) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
populateTimeRFC3339(objectMap, "from", q.From)
populateTimeRFC3339(objectMap, "to", q.To)
return json.Marshal(objectMap)
} | [
-0.1240864247083664,
-0.25084128975868225,
0.2250467836856842,
-0.9392675161361694,
-0.16888432204723358,
0.8385995626449585,
-0.35225382447242737,
-0.8844560980796814,
0.3477713465690613,
-0.0023386345710605383,
-0.24029815196990967,
-0.25212106108665466,
-0.7999212741851807,
-0.128509327... |
func (q *QueryTimePeriod) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
return err
}
for key, val := range rawMsg {
var err error
switch key {
case "from":
err = unpopulateTimeRFC3339(val, &q.From)
delete(rawMsg, key)
c... | [
-0.3934359550476074,
0.3267256021499634,
0.41730305552482605,
-1.6096763610839844,
-0.5894975066184998,
0.47560176253318787,
-0.07804997265338898,
-1.016911268234253,
-0.022258613258600235,
0.7180408239364624,
0.18993188440799713,
-0.5945706367492676,
-0.831800639629364,
0.0428903661668300... |
func (r ReportConfigComparisonExpression) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
populate(objectMap, "name", r.Name)
populate(objectMap, "operator", r.Operator)
populate(objectMap, "values", r.Values)
return json.Marshal(objectMap)
} | [
0.4764751195907593,
-0.017643507570028305,
0.47961607575416565,
-0.23735009133815765,
-0.2840900719165802,
-0.1941620260477066,
1.5182286500930786,
1.097680687904358,
-0.4127039313316345,
1.0261340141296387,
-1.0141448974609375,
0.12453185766935349,
-0.8979781866073608,
0.20125406980514526... |
func (r ReportConfigDataset) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
populate(objectMap, "aggregation", r.Aggregation)
populate(objectMap, "configuration", r.Configuration)
populate(objectMap, "filter", r.Filter)
populate(objectMap, "granularity", r.Granularity)
populate(objectMa... | [
-0.005634365603327751,
0.33422768115997314,
0.16579435765743256,
-0.7922951579093933,
-0.3967449963092804,
-0.23821142315864563,
0.7765704393386841,
0.026421770453453064,
-0.48656031489372253,
0.26591014862060547,
-0.2757822573184967,
0.4902116358280182,
-0.0649985522031784,
0.622236311435... |
func (r ReportConfigDatasetConfiguration) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
populate(objectMap, "columns", r.Columns)
return json.Marshal(objectMap)
} | [
-0.11566663533449173,
0.4774903953075409,
0.08846454322338104,
-0.7838304042816162,
-0.01398820336908102,
-0.681523859500885,
0.6038817167282104,
0.2966940104961395,
-0.5513128042221069,
0.3506583571434021,
-0.7972805500030518,
-0.05856787785887718,
0.3034828305244446,
0.2978435456752777,
... |
func (r ReportConfigFilter) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
populate(objectMap, "and", r.And)
populate(objectMap, "dimensions", r.Dimensions)
populate(objectMap, "not", r.Not)
populate(objectMap, "or", r.Or)
populate(objectMap, "tags", r.Tags)
return json.Marshal(objectM... | [
0.13689978420734406,
-0.21591342985630035,
0.09523245692253113,
-0.3138711154460907,
-0.407222181558609,
-0.5265821218490601,
0.48786139488220215,
0.35486698150634766,
-0.9668655395507812,
0.5428670048713684,
-0.9865211248397827,
0.12212064862251282,
-0.6334851384162903,
0.8925153613090515... |
func (r ReportConfigTimePeriod) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
populateTimeRFC3339(objectMap, "from", r.From)
populateTimeRFC3339(objectMap, "to", r.To)
return json.Marshal(objectMap)
} | [
0.1630891114473343,
0.16876831650733948,
0.27563193440437317,
-0.7749929428100586,
0.24174687266349792,
0.14174170792102814,
0.35094669461250305,
-0.3676028251647949,
-0.43172982335090637,
0.6533344984054565,
-0.11936555057764053,
-0.595291018486023,
-1.0679866075515747,
0.2715246975421905... |
func (r *ReportConfigTimePeriod) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
return err
}
for key, val := range rawMsg {
var err error
switch key {
case "from":
err = unpopulateTimeRFC3339(val, &r.From)
delete(rawMsg, k... | [
-0.03326224163174629,
0.6233178973197937,
0.4944774806499481,
-1.5537447929382324,
-0.1703876256942749,
-0.0008726921514607966,
0.4654700458049774,
-0.5556259751319885,
-0.5984886884689331,
1.0685139894485474,
0.19692812860012054,
-0.9058125615119934,
-1.0011296272277832,
0.364191353321075... |
func (r Resource) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
populate(objectMap, "eTag", r.ETag)
populate(objectMap, "id", r.ID)
populate(objectMap, "location", r.Location)
populate(objectMap, "name", r.Name)
populate(objectMap, "sku", r.SKU)
populate(objectMap, "tags", r.Tags)
po... | [
-0.7889966368675232,
-0.9384194612503052,
-0.01709800958633423,
-0.5356730222702026,
-0.42205482721328735,
-0.3031866252422333,
0.03816709667444229,
0.31088677048683167,
0.08573917299509048,
0.6972600817680359,
-1.3412178754806519,
-0.00927289854735136,
0.21049633622169495,
0.7092968821525... |
func (r ResourceAutoGenerated) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
populate(objectMap, "id", r.ID)
populate(objectMap, "name", r.Name)
populate(objectMap, "tags", r.Tags)
populate(objectMap, "type", r.Type)
return json.Marshal(objectMap)
} | [
-0.5541307926177979,
-1.0271823406219482,
0.2306618094444275,
-1.1204432249069214,
0.16375677287578583,
-0.5228641629219055,
0.37679600715637207,
0.29851365089416504,
-0.8504764437675476,
-0.24812746047973633,
-1.5628392696380615,
0.6763210892677307,
0.5016195178031921,
0.9282096028327942,... |
func (v ViewListResult) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
populate(objectMap, "nextLink", v.NextLink)
populate(objectMap, "value", v.Value)
return json.Marshal(objectMap)
} | [
-0.5894932150840759,
0.19715596735477448,
-0.16540111601352692,
-0.14138861000537872,
-0.9292957186698914,
-0.785456120967865,
-0.05716745927929878,
0.4388093650341034,
1.0328859090805054,
0.14859244227409363,
-1.6351318359375,
0.4798099994659424,
-0.24108488857746124,
0.8091899752616882,
... |
func (v ViewProperties) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
populate(objectMap, "accumulated", v.Accumulated)
populate(objectMap, "chart", v.Chart)
populateTimeRFC3339(objectMap, "createdOn", v.CreatedOn)
populate(objectMap, "currency", v.Currency)
populate(objectMap, "dateRa... | [
-0.4418345093727112,
-0.4874650537967682,
0.10026781260967255,
-0.6922567486763,
-0.8580529689788818,
-0.27858445048332214,
0.7932466268539429,
-0.2969515323638916,
0.19300410151481628,
-0.1518275886774063,
-0.44766151905059814,
0.6281693577766418,
-0.27517440915107727,
0.11081872880458832... |
func (v *ViewProperties) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
return err
}
for key, val := range rawMsg {
var err error
switch key {
case "accumulated":
err = unpopulate(val, &v.Accumulated)
delete(rawMsg, key)
... | [
-0.4901069104671478,
-0.22275516390800476,
0.5647937059402466,
-1.005560040473938,
-0.8850813508033752,
-0.24987225234508514,
0.7685712575912476,
-0.39429083466529846,
0.006876189727336168,
0.09121379256248474,
-0.011947283521294594,
0.11036664247512817,
-0.43812987208366394,
0.54264014959... |
func GetFilmsByID(IDs []string) ([]domain.Film, error) {
query := `SELECT
film_id,
title,
description,
release_year,
f.language_id,
l.name
FROM
film f
INNER JOIN language l on f.language_id = l.language_id
WHERE
f.film_id in (:ids)`
params := make([]int... | [
-0.6233757734298706,
-0.33520451188087463,
0.6561831831932068,
0.3529013395309448,
-0.23929999768733978,
-0.6608479619026184,
-0.670586884021759,
-1.0103269815444946,
0.0700901448726654,
0.14690391719341278,
-0.7530477046966553,
0.5683992505073547,
-0.8210241794586182,
1.0380431413650513,
... |
func UpsertFilms(Films []domain.Film) {
} | [
-1.836015224456787,
-0.43260765075683594,
0.436217725276947,
0.9044904708862305,
0.39789193868637085,
0.12324010580778122,
0.34904745221138,
-0.15492883324623108,
0.5691721439361572,
0.6234919428825378,
-1.269958734512329,
0.08275079727172852,
-1.312666654586792,
0.9819927215576172,
-0.4... |
func (c *Client) GetCollection(ctx context.Context, params GetCollectionParams) (*GetCollectionResponse, error) {
q := NewQuery(c, "/collections/%d", params.CollectionID)
r := &GetCollectionResponse{}
return r, q.Get(ctx, r)
} | [
-0.45032623410224915,
0.3893812298774719,
0.37609240412712097,
0.6255213022232056,
1.6766246557235718,
-0.5449897646903992,
0.30728158354759216,
-1.3733642101287842,
0.3274719715118408,
-0.2737542688846588,
0.4066010117530823,
0.7364478707313538,
-0.5689186453819275,
0.643315851688385,
-... |
func (c *Client) GetCollectionGames(ctx context.Context, params GetCollectionGamesParams) (*GetCollectionGamesResponse, error) {
q := NewQuery(c, "/collections/%d/collection-games", params.CollectionID)
q.AddInt64IfNonZero("page", params.Page)
r := &GetCollectionGamesResponse{}
return r, q.Get(ctx, r)
} | [
-0.8841872215270996,
1.2093698978424072,
0.7012068629264832,
0.5594650506973267,
1.2440705299377441,
-0.46308791637420654,
-0.2768949866294861,
-1.1438286304473877,
0.031935498118400574,
0.8374568819999695,
0.08926034718751907,
0.03450452536344528,
-0.9090257287025452,
0.7443117499351501,
... |
func ExecWrapper(f func(ctx *cli.Context) (int, error)) func(*cli.Context) error {
return func(ctx *cli.Context) error {
return exit(f(ctx))
}
} | [
-0.7979952096939087,
0.6632457375526428,
0.6556639671325684,
0.08227508515119553,
-0.45266368985176086,
0.39123639464378357,
-0.6155657172203064,
-0.08406601846218109,
-0.7442510724067688,
0.6170486807823181,
0.5195881128311157,
0.5544387698173523,
0.950045645236969,
-0.010052165016531944,... |
func (r *OptimJob) Default() {
optimjoblog.Info("default", "name", r.Name)
//if r.Spec.ConcurrencyPolicy == "" {
// r.Spec.ConcurrencyPolicy = AllowConcurrent
//}
//if r.Spec.Suspend == nil {
// r.Spec.Suspend = new(bool)
//}
//if r.Spec.SuccessfulJobsHistoryLimit == nil {
// r.Spec.SuccessfulJobsHistoryLimit... | [
0.6021734476089478,
0.29682090878486633,
0.5345900058746338,
-0.06181931123137474,
0.6875237822532654,
0.5433739423751831,
0.38298916816711426,
0.4812659025192261,
-0.0917859673500061,
0.1376468986272812,
-0.5763566493988037,
0.28558361530303955,
-0.6937476396560669,
0.2346474826335907,
... |
func (r *OptimJob) ValidateCreate() error {
optimjoblog.Info("validate create", "name", r.Name)
// TODO(user): fill in your validation logic upon object creation.
return r.validateOptimJob()
} | [
0.17353738844394684,
-0.4257485568523407,
0.3743133544921875,
1.2523530721664429,
0.1334877908229828,
0.5857020020484924,
0.32834696769714355,
-1.261863350868225,
-0.5824822783470154,
0.12040206789970398,
0.03356612101197243,
-0.4086485803127289,
-0.6711812615394592,
0.43790924549102783,
... |
func (r *OptimJob) ValidateUpdate(old runtime.Object) error {
optimjoblog.Info("validate update", "name", r.Name)
// TODO(user): fill in your validation logic upon object update.
return r.validateOptimJob()
} | [
-0.30252590775489807,
-1.508377194404602,
0.45673584938049316,
1.13186514377594,
-0.7705230116844177,
0.4168528616428375,
0.2542858421802521,
-0.8402048945426941,
0.792332112789154,
0.40481874346733093,
-0.020229442045092583,
-0.22023196518421173,
-0.6586585640907288,
-0.1388891488313675,
... |
func (r *OptimJob) ValidateDelete() error {
optimjoblog.Info("validate delete", "name", r.Name)
// TODO(user): fill in your validation logic upon object deletion.
return nil
} | [
0.9036500453948975,
-0.49616265296936035,
0.3534929156303406,
1.2046287059783936,
0.19918321073055267,
0.27422448992729187,
0.6740967631340027,
-0.6130822896957397,
0.4789843261241913,
0.10382193326950073,
-0.0731320008635521,
0.1492544561624527,
-0.803440272808075,
-0.02771817333996296,
... |
func iRunGitcleanInThatRepo() error {
err := RunGitClean(gitWorkingDir)
if err != nil {
return err
}
return nil
} | [
-0.06732212007045746,
0.08853879570960999,
0.4002534747123718,
-0.6627002954483032,
0.8535990118980408,
0.8407342433929443,
0.3457511365413666,
-0.6304566860198975,
-1.1948009729385376,
0.33695921301841736,
0.10279636830091476,
0.5567256212234497,
-0.04769377037882805,
0.18433311581611633,... |
func (h *InputHost) listExtentsByStatus(ctx thrift.Context, destUUID string, status *shared.ExtentStatus) (*metadata.ListInputHostExtentsStatsResult_, error) {
listReq := metadata.ListInputHostExtentsStatsRequest{
InputHostUUID: common.StringPtr(h.GetHostUUID()),
DestinationUUID: common.StringPtr(destUUID),
S... | [
0.05564240366220474,
-0.03469612076878548,
0.5994433164596558,
-0.2982674837112427,
-0.46727439761161804,
0.24500100314617157,
-0.3607279658317566,
-0.21994365751743317,
0.1065778061747551,
0.6462239623069763,
0.031162511557340622,
0.26582562923431396,
-0.3239745795726776,
0.60180562734603... |
func (h *InputHost) getExtentsInfoForDestination(ctx thrift.Context, destUUID string) ([]*extentInfo, error) {
// get all OPEN extents
listResp, err := h.listExtentsByStatus(ctx, destUUID, common.MetadataExtentStatusPtr(shared.ExtentStatus_OPEN))
if err != nil {
return nil, err
}
var extents = make([]*extentIn... | [
-0.5223563313484192,
0.06002933159470558,
0.6917948126792908,
-0.005167135503143072,
-0.6328735947608948,
0.479600727558136,
-0.39567551016807556,
-0.677555501461029,
0.09970484673976898,
-0.009811737574636936,
-0.039466314017772675,
-0.27791962027549744,
0.2538343071937561,
0.645917356014... |
func (h *InputHost) getExtentsAndLoadPathCache(ctx thrift.Context, destPath, destUUID string, destType shared.DestinationType) (*inPathCache, error) {
extents, err := h.getExtentsInfoForDestination(ctx, destUUID)
if err != nil {
// XXX: Disable due to log spam
// h.logger.WithField(common.TagDst, common.FmtDst(de... | [
0.07817177474498749,
0.2988738715648651,
0.6533023715019226,
-0.06382180750370026,
-1.4063687324523926,
0.6734535098075867,
-0.16370178759098053,
-0.3175821900367737,
0.06978008151054382,
0.1832641363143921,
0.23359104990959167,
0.024904536083340645,
-0.7674782276153564,
0.3290853798389435... |
func (h *InputHost) checkDestination(ctx thrift.Context, path string) (string, shared.DestinationType, metrics.ErrorClass, error) {
// talk to metadata
mGetRequest := shared.ReadDestinationRequest{Path: common.StringPtr(path)}
destDesc, err := h.mClient.ReadDestination(ctx, &mGetRequest)
if err != nil {
errC, new... | [
-0.921000063419342,
-0.1485213339328766,
0.9640981554985046,
-0.5559023022651672,
-0.10158491134643555,
0.16392891108989716,
0.23973359167575836,
-0.4109836518764496,
-0.5013549327850342,
1.0218875408172607,
1.0833189487457275,
0.5461546182632446,
-0.04152529686689377,
0.07240254431962967,... |
func (h *InputHost) OpenPublisherStreamHandler(w http.ResponseWriter, r *http.Request) {
// get parameters from header
path := r.Header.Get("path")
if len(path) == 0 {
err := &cherami.BadRequestError{}
h.logger.Warn("please set the path as part of the header. BadRequestError")
h.m3Client.IncCounter(metrics.Op... | [
-0.09141280502080917,
-0.26204177737236023,
0.7655904293060303,
0.011684914119541645,
-1.1601765155792236,
0.6641147136688232,
0.7918258905410767,
-0.019057730212807655,
-0.20121662318706512,
0.6585696339607239,
0.6482810974121094,
0.1375889927148819,
-0.6816139221191406,
0.839472591876983... |
func (h *InputHost) OpenPublisherStream(ctx thrift.Context, call stream.BInOpenPublisherStreamInCall) error {
h.m3Client.IncCounter(metrics.OpenPublisherStreamScope, metrics.InputhostRequests)
path, ok := (ctx.Headers()["path"])
if !ok {
err := &cherami.BadRequestError{}
h.logger.Warn("please set the path as p... | [
-0.2005263864994049,
-0.03807523101568222,
0.8416816592216492,
0.34506508708000183,
-0.8055384755134583,
-0.09503146260976791,
0.002194877713918686,
0.09165845811367035,
-0.7342388033866882,
-0.26461708545684814,
0.6256721615791321,
0.23916135728359222,
-0.9553830027580261,
0.5939670205116... |
func (h *InputHost) PutMessageBatch(ctx thrift.Context, request *cherami.PutMessageBatchRequest) (*cherami.PutMessageBatchResult_, error) {
sw := h.m3Client.StartTimer(metrics.PutMessageBatchInputHostScope, metrics.InputhostLatencyTimer)
defer sw.Stop()
h.m3Client.IncCounter(metrics.PutMessageBatchInputHostScope, m... | [
-0.5621177554130554,
0.25052183866500854,
0.9489914178848267,
-0.24428234994411469,
-0.3495293855667114,
0.6395898461341858,
0.19581614434719086,
-0.34686973690986633,
-0.27239105105400085,
0.7005791664123535,
0.2860170900821686,
0.16450773179531097,
-1.0843151807785034,
0.6927958726882935... |
func (h *InputHost) DestinationsUpdated(ctx thrift.Context, request *admin.DestinationsUpdatedRequest) (err error) {
defer atomic.AddInt32(&h.loadShutdownRef, -1)
sw := h.m3Client.StartTimer(metrics.DestinationsUpdatedScope, metrics.InputhostLatencyTimer)
defer sw.Stop()
h.m3Client.IncCounter(metrics.DestinationsUp... | [
-0.8591396808624268,
-0.41460034251213074,
0.7008413076400757,
0.10066569596529007,
-0.043733738362789154,
-0.3002842664718628,
-0.0866260975599289,
0.11328642815351486,
-0.4169713258743286,
0.6381600499153137,
0.45238378643989563,
-0.19078542292118073,
-0.3729816675186157,
0.4221725761890... |
func (h *InputHost) UnloadDestinations(ctx thrift.Context, request *admin.UnloadDestinationsRequest) (err error) {
defer atomic.AddInt32(&h.loadShutdownRef, -1)
sw := h.m3Client.StartTimer(metrics.UnloadDestinationsScope, metrics.InputhostLatencyTimer)
defer sw.Stop()
h.m3Client.IncCounter(metrics.UnloadDestination... | [
-1.467032551765442,
0.7412430644035339,
0.5517054796218872,
-0.04035968333482742,
-0.23056596517562866,
0.11768852919340134,
0.3744238317012787,
-0.5196890234947205,
-0.49187520146369934,
0.19616185128688812,
0.570162832736969,
-0.24416379630565643,
-0.43692731857299805,
0.2325865924358368... |
func (h *InputHost) ListLoadedDestinations(ctx thrift.Context) (result *admin.ListLoadedDestinationsResult_, err error) {
defer atomic.AddInt32(&h.loadShutdownRef, -1)
sw := h.m3Client.StartTimer(metrics.ListLoadedDestinationsScope, metrics.InputhostLatencyTimer)
defer sw.Stop()
h.m3Client.IncCounter(metrics.ListLo... | [
-0.9385502338409424,
0.09041077643632889,
0.7605838775634766,
-0.6701118350028992,
0.2464611828327179,
0.008261638693511486,
-0.07425592839717865,
-0.6690976023674011,
-0.49076417088508606,
0.04738551750779152,
-0.2733645439147949,
0.2438025176525116,
-0.17906591296195984,
0.69546085596084... |
func (h *InputHost) ReadDestState(ctx thrift.Context, request *admin.ReadDestinationStateRequest) (result *admin.ReadDestinationStateResult_, err error) {
defer atomic.AddInt32(&h.loadShutdownRef, -1)
sw := h.m3Client.StartTimer(metrics.ReadDestStateScope, metrics.InputhostLatencyTimer)
defer sw.Stop()
h.m3Client.I... | [
-1.3962807655334473,
0.2666529715061188,
0.8006003499031067,
0.05978432670235634,
-0.33840885758399963,
0.34032949805259705,
-0.348135769367218,
-0.823366105556488,
-0.5251471996307373,
0.40089520812034607,
0.4160005748271942,
-0.2435673177242279,
-0.03096335008740425,
0.23860958218574524,... |
func getDrainTimeout(ctx thrift.Context) time.Duration {
if ctx != nil {
if deadline, ok := ctx.Deadline(); ok {
return deadline.Sub(time.Now())
}
}
return defaultDrainTimeout
} | [
0.35514768958091736,
0.6362336277961731,
0.6437721252441406,
-0.360920250415802,
0.09527097642421722,
0.5329543948173523,
-0.7261115312576294,
0.545650839805603,
0.32402193546295166,
-0.15086683630943298,
-0.03730446845293045,
-0.4674537777900696,
-0.20375177264213562,
0.19284780323505402,... |
func (h *InputHost) DrainExtent(ctx thrift.Context, request *admin.DrainExtentsRequest) (err error) {
defer atomic.AddInt32(&h.loadShutdownRef, -1)
sw := h.m3Client.StartTimer(metrics.DrainExtentsScope, metrics.InputhostLatencyTimer)
defer sw.Stop()
h.m3Client.IncCounter(metrics.DrainExtentsScope, metrics.Inputhost... | [
-0.9016377329826355,
0.28929728269577026,
0.8046301007270813,
0.20161880552768707,
-0.5807076692581177,
0.7920887470245361,
-0.19266405701637268,
-0.305548757314682,
-0.10921204835176468,
0.6393580436706543,
0.3184795081615448,
0.5006593465805054,
-1.2487144470214844,
0.27321407198905945,
... |
func (h *InputHost) Report(reporter common.LoadReporter) {
now := time.Now().UnixNano()
intervalSecs := (now - h.lastLoadReportedTime) / int64(time.Second)
if intervalSecs < 1 {
return
}
numConns := h.reportHostMetric(reporter, intervalSecs)
h.lastLoadReportedTime = now
// Also update the metrics reporter t... | [
-0.23240624368190765,
0.5874849557876587,
0.35676509141921997,
0.17686375975608826,
-0.021128660067915916,
0.5212331414222717,
0.34472861886024475,
0.34161633253097534,
-1.0819967985153198,
-0.31416982412338257,
0.47999948263168335,
-0.16355305910110474,
-1.1742929220199585,
0.823759496212... |
func (h *InputHost) GetHostConnLimitPerSecond() int {
return int(atomic.LoadInt32(&h.hostConnLimitPerSecond))
} | [
1.3754597902297974,
-0.4018004536628723,
0.48352330923080444,
1.019370198249817,
-1.217707633972168,
-0.15051813423633575,
-0.451975554227829,
0.13505762815475464,
-1.2453155517578125,
0.09980527311563492,
-0.7736899256706238,
-0.5939538478851318,
-1.6835139989852905,
-0.3417345881462097,
... |
func (h *InputHost) SetHostConnLimitPerSecond(connLimit int32) {
h.logger.WithField(`val`, connLimit).Info(`SetHostConnLimitPerSecond`)
atomic.StoreInt32(&h.hostConnLimitPerSecond, connLimit)
h.SetTokenBucketValue(int32(connLimit))
} | [
0.9910966157913208,
-0.19596795737743378,
0.660783052444458,
0.7542596459388733,
-0.637213945388794,
-0.02198883704841137,
-0.500705897808075,
0.07423127442598343,
-1.5440572500228882,
-0.2380351424217224,
-1.4020270109176636,
-0.3116416931152344,
-0.9533748626708984,
-0.35034140944480896,... |
func (h *InputHost) GetExtMsgsLimitPerSecond() int {
return int(atomic.LoadInt32(&h.extMsgsLimitPerSecond))
} | [
1.0835537910461426,
0.13254967331886292,
0.5067113637924194,
-0.07013826817274094,
-1.17131769657135,
-0.38750147819519043,
-0.6999474763870239,
-0.15148836374282837,
-0.520085871219635,
0.17968830466270447,
-0.7011030912399292,
-0.13706563413143158,
-1.7730050086975098,
0.4614075124263763... |
func (h *InputHost) SetExtMsgsLimitPerSecond(connLimit int32) {
h.logger.WithField(`val`, connLimit).Info(`SetExtMsgsLimitPerSecond`)
atomic.StoreInt32(&h.extMsgsLimitPerSecond, connLimit)
h.updateExtTokenBucket(int32(connLimit))
} | [
0.47054460644721985,
-0.019849995151162148,
0.6588058471679688,
-0.20959176123142242,
-0.750598669052124,
-0.3695047199726105,
-0.7872476577758789,
-0.14239393174648285,
-0.9901371598243713,
0.056204646825790405,
-1.3239948749542236,
-0.059100255370140076,
-1.2994635105133057,
-0.013930119... |
func (h *InputHost) GetConnMsgsLimitPerSecond() int {
return int(atomic.LoadInt32(&h.connMsgsLimitPerSecond))
} | [
0.9086154103279114,
0.010899482294917107,
0.4151635468006134,
0.5785158276557922,
-0.6201440095901489,
0.012664160691201687,
-0.47706282138824463,
-0.7564762830734253,
-1.2624849081039429,
0.32020893692970276,
-0.3155251145362854,
-0.5875328779220581,
-2.056722640991211,
0.2750343382358551... |
func (h *InputHost) SetConnMsgsLimitPerSecond(connLimit int32) {
h.logger.WithField(`val`, connLimit).Info(`SetConnMsgsLimitPerSecond`)
atomic.StoreInt32(&h.connMsgsLimitPerSecond, connLimit)
h.updateConnTokenBucket(int32(connLimit))
} | [
0.39232537150382996,
-0.3770613670349121,
0.635357677936554,
0.2426777184009552,
-0.43439558148384094,
0.14767427742481232,
-0.652130126953125,
-0.6791436672210693,
-1.3039226531982422,
0.19175773859024048,
-1.0735132694244385,
-0.474960058927536,
-1.51326322555542,
-0.0010249706683680415,... |
func (h *InputHost) GetTokenBucketValue() common.TokenBucket {
return h.tokenBucketValue.Load().(common.TokenBucket)
} | [
0.3894306421279907,
-0.0547109916806221,
0.3019242584705353,
0.0037613234017044306,
-0.48327240347862244,
0.05402536690235138,
-0.32212191820144653,
-1.1344282627105713,
-0.9716478586196899,
-0.7932800650596619,
-0.4214765131473541,
1.2101713418960571,
-0.030523579567670822,
0.440397411584... |
func (h *InputHost) SetTokenBucketValue(connLimit int32) {
h.logger.WithField(`val`, connLimit).Info(`SetTokenBucketValue`)
tokenBucket := common.NewTokenBucket(int(connLimit), common.NewRealTimeSource())
h.tokenBucketValue.Store(tokenBucket)
} | [
-0.01855764351785183,
0.4792623221874237,
0.4229902923107147,
-0.3611442446708679,
-0.5187853574752808,
0.467152863740921,
-0.4367869198322296,
-0.29118698835372925,
-1.0421311855316162,
-0.5237481594085693,
-1.2426975965499878,
0.5406438112258911,
-0.16087810695171356,
0.0473821684718132,... |
func (h *InputHost) SetHostConnLimit(connLimit int32) {
h.logger.WithField(`val`, connLimit).Info(`SetHostConnLimit`)
atomic.StoreInt32(&h.hostConnLimit, connLimit)
} | [
0.31746622920036316,
0.018934613093733788,
0.6928756237030029,
0.6264404058456421,
-0.7234969735145569,
0.6871235966682434,
-0.008559121750295162,
0.10140711814165115,
-1.1377540826797485,
-0.329498827457428,
-1.3337230682373047,
-0.20409074425697327,
-1.020004153251648,
-0.242308855056762... |
func (h *InputHost) GetHostConnLimitOverall() int {
return int(atomic.LoadInt32(&h.hostConnLimit))
} | [
1.1215026378631592,
-0.15777955949306488,
0.5983297228813171,
1.0934467315673828,
-0.8298162221908569,
0.4327985644340515,
-0.43138518929481506,
0.6278944611549377,
-0.9199035167694092,
-0.25609681010246277,
-0.7822887897491455,
0.533527135848999,
-0.7972272634506226,
-0.05787508934736252,... |
func (h *InputHost) SetMaxConnPerDest(connLimit int32) {
h.logger.WithField(`val`, connLimit).Info(`SetMaxConnPerDest`)
atomic.StoreInt32(&h.maxConnLimit, connLimit)
} | [
-0.5577566027641296,
-0.08560812473297119,
0.656010091304779,
0.24445079267024994,
-0.7005144357681274,
0.5277395844459534,
-0.5065412521362305,
0.2735310196876526,
-0.3649107813835144,
-0.17855466902256012,
-0.8880440592765808,
-0.17745301127433777,
-1.1877472400665283,
0.0477537587285041... |
func (h *InputHost) GetMaxConnPerDest() int {
return int(atomic.LoadInt32(&h.maxConnLimit))
} | [
-0.1256580799818039,
-0.06084488704800606,
0.6480565667152405,
0.824083149433136,
-0.7094861268997192,
0.01688145101070404,
-0.6112627387046814,
0.4805464744567871,
-0.36184683442115784,
-0.4299840033054352,
-0.31581732630729675,
-0.18610985577106476,
-1.5461972951889038,
0.103763200342655... |
func (h *InputHost) GetNumConnections() int {
return int(h.hostMetrics.Get(load.HostMetricNumOpenConns))
} | [
-0.203593447804451,
0.9536443948745728,
0.4706318974494934,
1.0106737613677979,
-0.12072204798460007,
-0.4469810128211975,
0.9705840945243835,
-0.06976186484098434,
-0.5760306715965271,
-0.8928577303886414,
-0.4604990482330322,
-0.37887808680534363,
-0.5176804661750793,
-0.1491577476263046... |
func (h *InputHost) GetNodeStatus() controller.NodeStatus {
return h.nodeStatus.Load().(controller.NodeStatus)
} | [
-0.06570500135421753,
-0.40021243691444397,
0.19870419800281525,
-0.655992329120636,
0.026807574555277824,
0.033878181129693985,
-0.7505426406860352,
0.20506960153579712,
-0.2814250886440277,
-0.08756310492753983,
-0.8281338810920715,
0.8801334500312805,
-0.17595969140529633,
0.88796651363... |
func (h *InputHost) SetNodeStatus(status controller.NodeStatus) {
h.logger.WithField(`val`, status).Info(`SetNodeStatus`)
h.nodeStatus.Store(status)
} | [
-0.5281736850738525,
-0.09756424278020859,
0.13679781556129456,
-0.4772801101207733,
-0.27834734320640564,
0.5399648547172546,
-0.41247040033340454,
0.911814272403717,
-0.18739554286003113,
-0.07002364844083786,
-2.1504437923431396,
0.6136624217033386,
-0.047682229429483414,
1.078583359718... |
func (h *InputHost) SetTestShortExtentsByPath(override string) {
h.logger.WithField(`val`, override).Info(`SetTestShortExtentsByPath`)
h.testShortExtentsByPath = override
} | [
1.069386601448059,
-0.9392818808555603,
0.12358182668685913,
0.09515306353569031,
-0.3544228672981262,
0.1082179993391037,
1.5745900869369507,
-0.6858263611793518,
0.4410260319709778,
-0.6214572787284851,
-1.360721230506897,
0.04783368855714798,
-1.028652310371399,
-0.239478200674057,
-1... |
func (h *InputHost) GetTestShortExtentsByPath() (override string) {
return h.testShortExtentsByPath
} | [
1.1478813886642456,
-0.8790605068206787,
0.05883365124464035,
0.3701845705509186,
-0.21738365292549133,
0.15997298061847687,
1.3717037439346313,
-1.0385682582855225,
0.600418746471405,
-0.48574987053871155,
-1.3052774667739868,
0.04147638753056526,
-1.1811603307724,
-0.5541249513626099,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.