text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func (o *WorkflowWorkflowDefinitionAllOf) SetVariableDefinition(v []WorkflowBaseDataType) {
o.VariableDefinition = v
} | [
0.38932329416275024,
-0.5791795253753662,
-0.017062900587916374,
0.2546288073062897,
0.2153223156929016,
-0.31469854712486267,
-0.8258514404296875,
0.2786409258842468,
-0.0773974061012268,
0.70372074842453,
-1.3903952836990356,
0.6090828776359558,
-0.5402677059173584,
1.2092481851577759,
... |
func (o *WorkflowWorkflowDefinitionAllOf) GetVersion() int64 {
if o == nil || o.Version == nil {
var ret int64
return ret
}
return *o.Version
} | [
0.6368334889411926,
0.06974557042121887,
-0.017618058249354362,
1.5040463209152222,
0.49948951601982117,
-0.24622124433517456,
1.5636374950408936,
-0.06235611438751221,
1.03459894657135,
-0.38033968210220337,
-0.49336856603622437,
-1.7983551025390625,
-0.9124967455863953,
0.986112475395202... |
func (o *WorkflowWorkflowDefinitionAllOf) GetVersionOk() (*int64, bool) {
if o == nil || o.Version == nil {
return nil, false
}
return o.Version, true
} | [
0.19763977825641632,
-0.20817232131958008,
0.07465551793575287,
1.3517931699752808,
0.10780826956033707,
0.16945835947990417,
1.1299244165420532,
0.5928900241851807,
0.04187663644552231,
1.3070358037948608,
-1.0203741788864136,
-1.3808375597000122,
0.11738967895507812,
0.8092514276504517,
... |
func (o *WorkflowWorkflowDefinitionAllOf) HasVersion() bool {
if o != nil && o.Version != nil {
return true
}
return false
} | [
0.5699628591537476,
-0.20201873779296875,
-0.018256468698382378,
1.2669557332992554,
0.5492068529129028,
-0.2560998201370239,
0.8098955154418945,
0.9735277891159058,
0.3412749767303467,
-0.2760956883430481,
-0.7139867544174194,
-1.7260642051696777,
-0.6628069877624512,
0.5529758930206299,
... |
func (o *WorkflowWorkflowDefinitionAllOf) SetVersion(v int64) {
o.Version = &v
} | [
0.23234887421131134,
0.17371287941932678,
-0.09789750725030899,
1.3547481298446655,
-0.6094849109649658,
-0.35988715291023254,
-0.03292633220553398,
-0.7327849268913269,
0.1129269003868103,
0.3493131101131439,
-0.22415849566459656,
-0.042808473110198975,
-0.17541638016700745,
0.64156991243... |
func (o *WorkflowWorkflowDefinitionAllOf) GetCatalog() WorkflowCatalogRelationship {
if o == nil || o.Catalog == nil {
var ret WorkflowCatalogRelationship
return ret
}
return *o.Catalog
} | [
0.6216775178909302,
1.0217255353927612,
0.07924351841211319,
0.6339173913002014,
0.14794288575649261,
0.06775924563407898,
0.7371940016746521,
0.17766173183918,
0.9591037034988403,
-0.7018625140190125,
0.8316977620124817,
-0.9870789647102356,
-0.5920678973197937,
0.6081685423851013,
0.69... |
func (o *WorkflowWorkflowDefinitionAllOf) GetCatalogOk() (*WorkflowCatalogRelationship, bool) {
if o == nil || o.Catalog == nil {
return nil, false
}
return o.Catalog, true
} | [
-0.09972359240055084,
1.055273175239563,
0.09676629304885864,
0.5594174861907959,
0.05109557509422302,
0.4194336235523224,
0.15067410469055176,
1.0690746307373047,
-0.053778186440467834,
-0.018127065151929855,
-0.17995290458202362,
-0.19990994036197662,
-0.06651274114847183,
0.160106629133... |
func (o *WorkflowWorkflowDefinitionAllOf) HasCatalog() bool {
if o != nil && o.Catalog != nil {
return true
}
return false
} | [
1.13326096534729,
0.4840657711029053,
0.19199450314044952,
0.18674927949905396,
-0.009317715652287006,
-0.20493578910827637,
-0.3529770076274872,
1.1033741235733032,
-0.07874912023544312,
-0.7337296605110168,
-0.03085538186132908,
-1.100204348564148,
0.32693132758140564,
1.0633158683776855... |
func (o *WorkflowWorkflowDefinitionAllOf) SetCatalog(v WorkflowCatalogRelationship) {
o.Catalog = &v
} | [
0.5745705962181091,
0.7657260298728943,
0.054164089262485504,
0.15150046348571777,
-0.0651417076587677,
0.15249712765216827,
-0.5033522844314575,
-0.2935119867324829,
0.06367264688014984,
-0.14071325957775116,
1.0865427255630493,
0.48467275500297546,
0.06987594813108444,
-0.067437775433063... |
func (o *WorkflowWorkflowDefinitionAllOf) GetClonedFrom() WorkflowWorkflowDefinitionRelationship {
if o == nil || o.ClonedFrom == nil {
var ret WorkflowWorkflowDefinitionRelationship
return ret
}
return *o.ClonedFrom
} | [
0.6513634920120239,
0.3863624334335327,
0.28819552063941956,
0.8719344139099121,
-0.5940172076225281,
0.04004499316215515,
0.23020297288894653,
-0.20405110716819763,
0.9320379495620728,
-0.8068580627441406,
0.3313937485218048,
-0.13346675038337708,
-0.9180331826210022,
0.510566234588623,
... |
func (o *WorkflowWorkflowDefinitionAllOf) GetClonedFromOk() (*WorkflowWorkflowDefinitionRelationship, bool) {
if o == nil || o.ClonedFrom == nil {
return nil, false
}
return o.ClonedFrom, true
} | [
0.5268719792366028,
0.24135954678058624,
0.43855953216552734,
0.8013230562210083,
-0.23259633779525757,
-0.2689703106880188,
0.05458907410502434,
-0.046841852366924286,
0.72660893201828,
-0.6884492635726929,
-0.19031868875026703,
0.0017604484455659986,
-0.6951591968536377,
0.18103973567485... |
func (o *WorkflowWorkflowDefinitionAllOf) HasClonedFrom() bool {
if o != nil && o.ClonedFrom != nil {
return true
}
return false
} | [
0.4697039723396301,
0.3178371489048004,
0.5011658072471619,
0.18417443335056305,
0.3008285164833069,
-0.12153121083974838,
-0.18076343834400177,
0.3554520905017853,
0.07665908336639404,
-0.7277626991271973,
-0.04659450799226761,
-0.4041599631309509,
0.11746616661548615,
0.6769194006919861,... |
func (o *WorkflowWorkflowDefinitionAllOf) SetClonedFrom(v WorkflowWorkflowDefinitionRelationship) {
o.ClonedFrom = &v
} | [
0.4655643403530121,
-0.010142163373529911,
0.03203267231583595,
0.3152307868003845,
-0.435131698846817,
0.16467656195163727,
-0.341624915599823,
-0.6267086267471313,
0.566648542881012,
-0.26910001039505005,
0.5842592716217041,
0.7241882085800171,
-0.5718233585357666,
-0.08742916584014893,
... |
func (o *WorkflowWorkflowDefinitionAllOf) GetWorkflowMetadata() WorkflowWorkflowMetadataRelationship {
if o == nil || o.WorkflowMetadata == nil {
var ret WorkflowWorkflowMetadataRelationship
return ret
}
return *o.WorkflowMetadata
} | [
0.09761879593133926,
-0.02210940420627594,
0.047223057597875595,
0.5219641923904419,
0.5825972557067871,
-0.09840302169322968,
0.19635215401649475,
-0.7127487063407898,
0.8160161375999451,
0.09925460070371628,
-0.2091096043586731,
-0.6394176483154297,
-1.191392183303833,
0.0425954759120941... |
func (o *WorkflowWorkflowDefinitionAllOf) GetWorkflowMetadataOk() (*WorkflowWorkflowMetadataRelationship, bool) {
if o == nil || o.WorkflowMetadata == nil {
return nil, false
}
return o.WorkflowMetadata, true
} | [
-0.007785427384078503,
0.456214040517807,
0.3279961943626404,
0.21571192145347595,
0.7630974054336548,
0.3103484511375427,
-0.0649205818772316,
-0.02372707612812519,
-0.38268059492111206,
0.4766950309276581,
-0.7643429040908813,
-0.6454585194587708,
0.023698821663856506,
-0.210894465446472... |
func (o *WorkflowWorkflowDefinitionAllOf) HasWorkflowMetadata() bool {
if o != nil && o.WorkflowMetadata != nil {
return true
}
return false
} | [
0.3160487115383148,
-0.029933232814073563,
0.07954307645559311,
-0.05732296407222748,
0.7037537097930908,
-0.4097876250743866,
0.12048246711492538,
-0.24978107213974,
-0.023306773975491524,
0.3855941593647003,
-1.1881119012832642,
-0.5588080286979675,
-0.4776763319969177,
-0.08754277229309... |
func (o *WorkflowWorkflowDefinitionAllOf) SetWorkflowMetadata(v WorkflowWorkflowMetadataRelationship) {
o.WorkflowMetadata = &v
} | [
-0.33191338181495667,
-0.1753753423690796,
-0.030060477554798126,
0.20949877798557281,
0.2199069708585739,
-0.03671892732381821,
-0.7198861837387085,
-0.747822642326355,
0.15055057406425476,
0.6730777025222778,
-0.015737032517790794,
0.40505579113960266,
-0.34321025013923645,
-0.6330490708... |
func (term *Term) BeforeCreate(tx *gorm.DB) (err error) {
term.ID = uuid.NewV4()
term.UpdatedByID = term.CreatedByID
if len(term.RelatedTerms) > 0 {
for index := range term.RelatedTerms {
term.RelatedTerms[index].ID = uuid.NewV4()
term.RelatedTerms[index].TermID = term.ID
}
}
return
} | [
0.594148576259613,
-0.2801782190799713,
0.5120893716812134,
-0.1669894903898239,
0.5523287653923035,
0.02874155342578888,
-0.4786680042743683,
0.27159687876701355,
-0.5763006806373596,
0.41779136657714844,
-0.48482435941696167,
-0.5775550603866577,
0.21778838336467743,
0.21457770466804504,... |
func (term *Term) BeforeSave(tx *gorm.DB) (err error) {
term.UpdatedAt = time.Now()
term.UpdatedByID = term.CreatedByID
if len(term.RelatedTerms) > 0 {
for index := range term.RelatedTerms {
term.RelatedTerms[index].ID = uuid.NewV4()
term.RelatedTerms[index].TermID = term.ID
}
}
return
} | [
0.24582892656326294,
-0.6054205298423767,
0.6275646090507507,
-0.3702704608440399,
0.38442596793174744,
-0.39833155274391174,
-0.9675077199935913,
0.1950957328081131,
-0.3621021509170532,
1.3029897212982178,
-0.9056829214096069,
-0.3646838068962097,
-0.0671476498246193,
-0.0128231737762689... |
func (m *MockPackHotRegionInfo) PackHistoryHotReadRegions() ([]HistoryHotRegion, error) {
return m.historyHotReads, nil
} | [
-0.13845957815647125,
-0.2466832995414734,
0.0954691618680954,
0.47303372621536255,
0.6854724287986755,
0.008822878822684288,
0.13146595656871796,
0.3816063404083252,
0.5611768960952759,
-0.6673553586006165,
-0.18011870980262756,
0.2584700882434845,
-0.4902634620666504,
0.7779354453086853,... |
func (m *MockPackHotRegionInfo) PackHistoryHotWriteRegions() ([]HistoryHotRegion, error) {
return m.historyHotWrites, nil
} | [
-0.5421017408370972,
-0.2250933051109314,
0.09045791625976562,
0.6284688711166382,
0.5438600182533264,
-0.24981698393821716,
0.5698624849319458,
0.3427417576313019,
0.2377895712852478,
-0.3864072561264038,
-0.5782550573348999,
-0.28980228304862976,
-0.3861875534057617,
1.0850919485092163,
... |
func (m *MockPackHotRegionInfo) GenHistoryHotRegions(num int, updateTime time.Time) {
for i := 0; i < num; i++ {
historyHotRegion := HistoryHotRegion{
UpdateTime: updateTime.UnixNano() / int64(time.Millisecond),
RegionID: uint64(i),
StoreID: uint64(i),
PeerID: rand.Uint64(),
IsLea... | [
-1.2355414628982544,
0.16358579695224762,
0.689837634563446,
-0.11267323791980743,
0.5587035417556763,
0.3075498938560486,
0.3152034878730774,
0.0005079921102151275,
-0.35295894742012024,
-0.5208719372749329,
-0.32825177907943726,
-0.20513756573200226,
-0.4263875484466553,
0.99608504772186... |
func (m *MockPackHotRegionInfo) ClearHotRegion() {
m.historyHotReads = make([]HistoryHotRegion, 0)
m.historyHotWrites = make([]HistoryHotRegion, 0)
} | [
-0.4636264443397522,
-0.08241210132837296,
0.2376769483089447,
0.07356683909893036,
0.15870490670204163,
0.542972207069397,
0.10845312476158142,
-0.009489995427429676,
0.0012888065539300442,
0.41814345121383667,
-0.16848649084568024,
0.8571949005126953,
0.0012370640179142356,
1.06438887119... |
func DirSizeB(path string) (int64, error) {
var size int64
err := filepath.Walk(path, func(_ string, info os.FileInfo, err error) error {
if !info.IsDir() {
size += info.Size()
}
return err
})
return size, err
} | [
-0.46844717860221863,
0.6032862663269043,
0.798180103302002,
0.8720650672912598,
-0.276401549577713,
-0.2535150349140167,
1.0939112901687622,
-0.4085260033607483,
0.37152189016342163,
-0.23953548073768616,
-0.2041773796081543,
-0.7846574187278748,
-1.017573595046997,
1.200985312461853,
0... |
func (this *Task) image(zkc zk.ZK) (string, string, string, error) {
if this.ImagePath == "" {
defaultReleaseWatchPath, _, err := RegistryKeyValue(KReleaseWatch, map[string]interface{}{
"Domain": this.domain,
"Service": this.service,
})
if err != nil {
return "", "", "", err
}
releaseNode, err :=... | [
-0.44613873958587646,
-0.5621160268783569,
0.6446560621261597,
0.2927232086658478,
0.15824200212955475,
-0.009205315262079239,
0.4542672634124756,
-0.0797678679227829,
-1.0045636892318726,
1.0503637790679932,
0.45109760761260986,
0.010201542638242245,
0.38532182574272156,
0.657752037048339... |
func (this *Task) Execute(zkc zk.ZK, dockerc *docker.Docker) error {
for i, action := range this.Actions {
opts := action.ContainerControl
// inject metadata via labels
if len(action.ContainerControl.Labels) == 0 {
action.ContainerControl.Labels = map[string]string{}
}
action.ContainerControl.Labels[En... | [
-0.6463568210601807,
-0.09380608797073364,
1.0041033029556274,
0.4756058156490326,
0.4745846688747406,
-0.4597265124320984,
0.5400247573852539,
0.12817782163619995,
-0.057825904339551926,
0.9338580369949341,
0.03866300731897354,
0.310739666223526,
0.5594147443771362,
0.7932199835777283,
... |
func Filter(arr interface{}, params map[string][]string) interface{} {
in := reflect.ValueOf(arr)
out := make([]interface{}, 0, in.Len())
for i := 0; i < in.Len(); i++ {
element := in.Index(i).Interface()
ve := reflect.ValueOf(element).Elem()
satisfied := true
for key := range params {
fieldValue := ve.F... | [
-0.5615794658660889,
-0.7227146625518799,
0.8667681813240051,
0.5987083911895752,
-0.592403769493103,
0.5855318903923035,
-0.058925479650497437,
0.04770120978355408,
-0.5925177335739136,
0.827157199382782,
0.15013177692890167,
0.18511685729026794,
-0.26072320342063904,
1.1084387302398682,
... |
func Sort(arr interface{}, sortKey, sortDir string) interface{} {
// Sorting
in := reflect.ValueOf(arr)
sortKey = strings.Title(sortKey)
sort.SliceStable(arr, func(i int, j int) bool {
x := reflect.ValueOf(in.Index(i).Interface()).Elem().FieldByName(sortKey)
y := reflect.ValueOf(in.Index(j).Interface()).Elem().... | [
-0.9150265455245972,
-0.05580011010169983,
0.8052868247032166,
0.1352013349533081,
-1.1276005506515503,
0.1556965410709381,
0.33074310421943665,
-0.8080244660377502,
-0.19931358098983765,
0.4932895004749298,
0.6273968815803528,
0.47342637181282043,
-0.31230610609054565,
1.1609773635864258,... |
func TestClientSignalDisconnected(t *testing.T) {
// Initialize webwire server given only the request
_, addr := setupServer(
t,
wwr.ServerOptions{},
)
// Initialize client and skip manual connection establishment
client := wwrclt.NewClient(
addr,
wwrclt.Options{
DefaultRequestTimeout: 2 * time.Second,... | [
-0.13545015454292297,
0.2985338270664215,
0.43823036551475525,
-0.5297785401344299,
0.687680184841156,
0.6097673177719116,
0.22062143683433533,
-0.7334259748458862,
-0.7564723491668701,
-0.22725161910057068,
-1.1505656242370605,
0.09722256660461426,
-0.5187214016914368,
0.8840757012367249,... |
func (r *FirewallGlobalRulesStagedPolicyRulesResource) ListAll() (*FirewallGlobalRulesStagedPolicyRulesConfigList, error) {
var list FirewallGlobalRulesStagedPolicyRulesConfigList
if err := r.c.ReadQuery(BasePath+FirewallGlobalRulesStagedPolicyRulesEndpoint, &list); err != nil {
return nil, err
}
return &list, ni... | [
-0.13425371050834656,
-0.4687105715274811,
0.160467267036438,
0.027646422386169434,
0.32022807002067566,
1.2777689695358276,
0.34498918056488037,
0.5987958312034607,
-0.7989834547042847,
0.8211169838905334,
-0.026765506714582443,
0.8126447796821594,
-0.41698157787323,
0.856852114200592,
... |
func (r *FirewallGlobalRulesStagedPolicyRulesResource) Get(id string) (*FirewallGlobalRulesStagedPolicyRulesConfig, error) {
var item FirewallGlobalRulesStagedPolicyRulesConfig
if err := r.c.ReadQuery(BasePath+FirewallGlobalRulesStagedPolicyRulesEndpoint, &item); err != nil {
return nil, err
}
return &item, nil
} | [
-0.1947699636220932,
-0.0618300698697567,
0.15532641112804413,
-1.131555438041687,
0.15102353692054749,
0.6863188743591309,
0.05666481330990791,
0.39900273084640503,
-0.9793662428855896,
0.9153836965560913,
-0.2765330672264099,
0.746913731098175,
-0.9097224473953247,
0.14720959961414337,
... |
func (r *FirewallGlobalRulesStagedPolicyRulesResource) Create(item FirewallGlobalRulesStagedPolicyRulesConfig) error {
if err := r.c.ModQuery("POST", BasePath+FirewallGlobalRulesStagedPolicyRulesEndpoint, item); err != nil {
return err
}
return nil
} | [
-0.21488933265209198,
0.11883828788995743,
0.23912914097309113,
-0.5251660346984863,
0.5882678627967834,
1.5983551740646362,
0.63947594165802,
0.4859306514263153,
-0.7932683229446411,
0.9615369439125061,
-0.6228090524673462,
-0.49972981214523315,
-1.4803266525268555,
0.37472841143608093,
... |
func (r *FirewallGlobalRulesStagedPolicyRulesResource) Edit(id string, item FirewallGlobalRulesStagedPolicyRulesConfig) error {
if err := r.c.ModQuery("PUT", BasePath+FirewallGlobalRulesStagedPolicyRulesEndpoint+"/"+id, item); err != nil {
return err
}
return nil
} | [
-0.6170539855957031,
-0.29494592547416687,
0.15727172791957855,
-0.9788143038749695,
0.3649897277355194,
1.358680009841919,
1.1133763790130615,
0.94050133228302,
-0.8662331104278564,
1.286878228187561,
-0.6006009578704834,
0.5398025512695312,
-1.2073698043823242,
-0.408450722694397,
0.62... |
func (r *FirewallGlobalRulesStagedPolicyRulesResource) Delete(id string) error {
if err := r.c.ModQuery("DELETE", BasePath+FirewallGlobalRulesStagedPolicyRulesEndpoint+"/"+id, nil); err != nil {
return err
}
return nil
} | [
0.1940835416316986,
0.03788762539625168,
0.23694075644016266,
-0.8623204827308655,
0.47795072197914124,
1.1232966184616089,
0.7688122391700745,
0.863622784614563,
-0.6100735068321228,
1.06969153881073,
-0.1847590208053589,
0.1398460865020752,
-1.6748101711273193,
0.1755146086215973,
-0.2... |
func NewSnapshot(ctx *pulumi.Context,
name string, args *SnapshotArgs, opts ...pulumi.ResourceOption) (*Snapshot, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.VolumeId == nil {
return nil, errors.New("invalid value for required argument 'VolumeId'")
}
o... | [
-0.42171674966812134,
0.6517769694328308,
0.41426005959510803,
0.18634213507175446,
-0.7249151468276978,
-0.043250929564237595,
-1.038319706916809,
-0.24617832899093628,
0.21222105622291565,
-0.198690727353096,
-0.18622525036334991,
-0.6049132347106934,
0.43639564514160156,
-0.504571199417... |
func GetSnapshot(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *SnapshotState, opts ...pulumi.ResourceOption) (*Snapshot, error) {
var resource Snapshot
err := ctx.ReadResource("aws-native:fsx:Snapshot", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
} | [
0.06553968787193298,
0.6458357572555542,
0.22600902616977692,
0.05314158275723457,
-0.7369976043701172,
-0.028037453070282936,
-0.887323260307312,
-0.31678515672683716,
1.1286542415618896,
-0.7806496620178223,
0.03860349953174591,
0.17565470933914185,
0.9123750925064087,
-1.695024371147155... |
func (is *informerSpy) waitForEvents(t *testing.T, wantEvents bool) {
t.Helper()
// wait for create/update/delete 3 events for 30 seconds
waitTimeout := time.Second * 30
if !wantEvents {
// wait just 15 seconds for no events
waitTimeout = time.Second * 15
}
err := wait.PollImmediate(time.Second, waitTimeout,... | [
0.46915286779403687,
0.6601837873458862,
0.6170790791511536,
-0.8678426146507263,
0.35388273000717163,
0.34151491522789,
0.1164075955748558,
-0.05523274093866348,
-0.017805835232138634,
-0.7097858190536499,
0.4644800126552582,
-0.0614868700504303,
-0.22152717411518097,
0.024050720036029816... |
func Refresh(
ctx context.Context, reader storage.Reader, cArgs CommandArgs, resp roachpb.Response,
) (result.Result, error) {
args := cArgs.Args.(*roachpb.RefreshRequest)
h := cArgs.Header
if h.Txn == nil {
return result.Result{}, errors.AssertionFailedf("no transaction specified to %s", args.Method())
}
// ... | [
0.0060091447085142136,
-0.8702996373176575,
0.7539626955986023,
0.887432873249054,
-0.12402249127626419,
-1.0413918495178223,
-0.045720189809799194,
-0.768841564655304,
-0.12102493643760681,
-0.08361402153968811,
1.0354713201522827,
0.11392413824796677,
-0.4097653031349182,
-0.422544240951... |
func MIMEInfo() string {
if filepath.Dir(mimeinfo.mi) == "." {
return filepath.Join(siegfried.home, mimeinfo.mi)
}
return mimeinfo.mi
} | [
0.5390339493751526,
-0.8485813140869141,
0.49755945801734924,
0.8463102579116821,
-0.8011754751205444,
0.405424565076828,
0.2250366508960724,
-0.18770307302474976,
-0.5887177586555481,
0.3955135643482208,
0.1351151019334793,
-0.2745870053768158,
-0.7255704402923584,
-0.752600371837616,
-... |
func (gs *BookService) List(r *http.Request, req *BooksListReq, resp *BooksList) error {
// corrección del limite de elementos a rescatar
if req.Limit <= 0 {
req.Limit = 10
}
//Crea un nuevo contexto para comunicarse con con el servicio de app engine
c := endpoints.NewContext(r)
// genera una query
q := datas... | [
-0.6739495396614075,
-0.4391254186630249,
0.6385501027107239,
0.44370037317276,
0.5220592021942139,
0.20931440591812134,
-1.160248875617981,
0.5822560787200928,
-0.3179299533367157,
0.480514794588089,
0.3161184787750244,
-0.016827857121825218,
0.017241377383470535,
0.08784939348697662,
-... |
func (r *RestMapper) ToRESTMapper() (meta.RESTMapper, error) {
dial, err := r.CachedDiscovery()
if err != nil {
return nil, err
}
mapper := restmapper.NewDeferredDiscoveryRESTMapper(dial)
expander := restmapper.NewShortcutExpander(mapper, dial)
return expander, nil
} | [
-0.03237130120396614,
-0.30299949645996094,
0.7431027293205261,
0.5008510947227478,
-0.5586621165275574,
-0.43129757046699524,
-0.09820114076137543,
-0.44607114791870117,
1.6679234504699707,
-0.5608103275299072,
-0.16598433256149292,
-0.06048109009861946,
-0.7052890658378601,
0.20214125514... |
func (r *RestMapper) ResourceFor(resourceArg, kind string) (*meta.RESTMapping, error) {
res, err := r.resourceFor(resourceArg)
if err != nil {
return nil, err
}
return r.toRESTMapping(res, kind), nil
} | [
-0.831412672996521,
-0.1417754888534546,
0.392526775598526,
-0.7168256640434265,
-0.5709679126739502,
-0.2685604989528656,
0.28634169697761536,
-0.47891300916671753,
0.5059085488319397,
-0.42675870656967163,
1.1049973964691162,
0.1351393461227417,
0.2112518697977066,
-0.08931928873062134,
... |
func (*RestMapper) Name() meta.RESTScopeName {
return meta.RESTScopeNameNamespace
} | [
-0.6057455539703369,
-1.2074825763702393,
0.5653529167175293,
0.3502960205078125,
-1.1431304216384888,
0.24146640300750732,
-0.46123287081718445,
-0.9004949927330017,
0.9255629777908325,
0.28991901874542236,
0.27047011256217957,
-0.2869017720222473,
0.21318623423576355,
0.2999997138977051,... |
func Extract(url string) string {
var op []string
for _, seg := range strings.Split(url, "/") {
if integer.MatchString(seg) {
op = append(op, "{integer}")
continue
}
if uuid.MatchString(seg) {
op = append(op, "{uuid}")
continue
}
op = append(op, seg)
}
return strings.Join(op, "/")
} | [
-1.6788464784622192,
-0.12003720551729202,
0.5406840443611145,
-0.10448101907968521,
-0.858055830001831,
-0.6981300711631775,
0.7584612965583801,
0.7938795685768127,
0.06867417693138123,
0.9256165623664856,
-0.19080230593681335,
-1.2832456827163696,
-0.24944929778575897,
-0.461494624614715... |
func Get(envKey, defaultVal string) string {
val := os.Getenv(envKey)
if val == "" {
val = defaultVal
}
return val
} | [
-0.7447027564048767,
0.3104248046875,
0.4005622863769531,
-0.23384101688861847,
0.867501437664032,
0.07579852640628815,
-1.2516437768936157,
0.35050639510154724,
-1.1554608345031738,
0.7515357136726379,
0.32346028089523315,
0.269870400428772,
-0.2652459740638733,
0.25933223962783813,
0.0... |
func GetInt(envKey string, defaultVal int) int {
str := os.Getenv(envKey)
if str == "" {
return defaultVal
}
val, err := strconv.ParseInt(str, 10, 64)
if err != nil {
return defaultVal
}
return int(val)
} | [
-0.040197305381298065,
1.090510606765747,
0.6095410585403442,
-0.26893526315689087,
0.553656280040741,
-0.5292937755584717,
-0.7045342922210693,
0.13684017956256866,
-1.365030288696289,
0.51547771692276,
0.30927667021751404,
0.27444127202033997,
-0.4621501863002777,
0.2669054865837097,
0... |
func GetA(envKey string, defaultVal []string) []string {
str := os.Getenv(envKey)
if str == "" {
return defaultVal
}
return strings.Split(str, ",")
} | [
-0.8780287504196167,
-0.00958978570997715,
0.5954446792602539,
0.1381806880235672,
1.1657648086547852,
-0.14042764902114868,
-0.9167436361312866,
0.6991608738899231,
-0.3483494818210602,
1.1200088262557983,
0.44845348596572876,
0.5442426800727844,
0.016432838514447212,
1.1474735736846924,
... |
func GetBool(envKey string, defaultValue bool) bool {
str := os.Getenv(envKey)
if str == "" {
return defaultValue
}
val, err := strconv.ParseBool(str)
if err != nil {
return defaultValue
}
return val
} | [
0.20091521739959717,
0.6720689535140991,
0.5994571447372437,
0.7554245591163635,
0.6494041085243225,
0.35783588886260986,
-0.6026334762573242,
0.8589348793029785,
-1.125899314880371,
0.9966135621070862,
-0.052642595022916794,
0.6869898438453674,
-0.2921401560306549,
-0.4507051706314087,
... |
func (cs *Record) ParseHeader(line string) error {
arr := strings.Split(line, ":")
if len(arr) != 2 {
return ErrInvalidHeader
}
cs.Author = arr[0]
cs.ID = arr[1]
return nil
} | [
0.46021533012390137,
-0.6907992362976074,
0.5266880989074707,
0.6752368807792664,
0.4839586019515991,
0.12088581919670105,
-0.30875104665756226,
0.7026805281639099,
-0.29463711380958557,
-0.306503564119339,
-0.6687471270561218,
0.03744569048285484,
-0.49276405572891235,
-0.1224486082792282... |
func (cs *Record) SetFileInfo(filename string, version string) {
cs.Filename = filename
cs.Version = version
} | [
0.6945589184761047,
-1.6690773963928223,
-0.014107422903180122,
-0.11095141619443893,
0.13644848763942719,
1.0218427181243896,
-0.40025949478149414,
0.9776596426963806,
-0.8147167563438416,
0.5006899237632751,
-1.5495420694351196,
-0.11513703316450119,
0.441512793302536,
0.2471195012331009... |
func (cs *Record) AddRollback(line string) {
if len(cs.rollback) == 0 {
cs.rollback = make([]string, 0)
}
cs.rollback = append(cs.rollback, line)
} | [
0.2560710906982422,
0.38868385553359985,
0.8928145170211792,
0.4668690860271454,
0.8421258330345154,
0.22072741389274597,
-0.8945649862289429,
0.8799379467964172,
0.4733094573020935,
0.0027569469530135393,
0.023793019354343414,
0.29371172189712524,
-0.741166353225708,
0.27453234791755676,
... |
func (cs *Record) AddDescription(line string) {
cs.Description = strings.Join([]string{
cs.Description,
line,
}, "\n")
} | [
1.1099106073379517,
0.03748970851302147,
0.4377160966396332,
0.27609527111053467,
0.7046213746070862,
0.9403592348098755,
-1.1482815742492676,
0.6574032306671143,
0.09475518763065338,
-0.16126298904418945,
0.07457870244979858,
0.7970556020736694,
-0.06229320168495178,
1.0355095863342285,
... |
func (cs *Record) AddChange(line string) {
if len(cs.change) == 0 {
cs.change = make([]string, 0)
}
cs.change = append(cs.change, line)
} | [
0.11610061675310135,
0.19984078407287598,
0.4730274975299835,
0.3954819142818451,
0.950316309928894,
0.5047548413276672,
-1.1079306602478027,
0.6514005661010742,
-0.2009725421667099,
-0.36847126483917236,
-0.1984529346227646,
0.41997474431991577,
-0.33769676089286804,
2.044034242630005,
... |
func (cs *Record) Changes() string {
return strings.Join(cs.change, "\n")
} | [
-0.06669382750988007,
-0.9641439914703369,
0.3460138440132141,
-0.8795623183250427,
0.19009709358215332,
0.6025540232658386,
-1.258076548576355,
-0.5071684718132019,
0.04442517086863518,
0.05623798817396164,
-0.44786953926086426,
0.6839451789855957,
0.17884624004364014,
0.6714307069778442,... |
func (cs *Record) Rollbacks() string {
return strings.Join(cs.rollback, "\n")
} | [
0.7477845549583435,
-0.4294307827949524,
0.4196992516517639,
-0.7249138951301575,
0.4218660295009613,
0.19892555475234985,
-1.0457171201705933,
0.482666015625,
0.37057244777679443,
0.4570486843585968,
-0.06842149049043655,
0.59332275390625,
-0.7157429456710815,
-0.5421409010887146,
-0.43... |
func (cs *Record) GenerateChecksum() string {
return md5sum(cs.Changes())
} | [
-0.040434591472148895,
0.31187283992767334,
0.32195720076560974,
0.04049815982580185,
-0.16637784242630005,
0.16967149078845978,
0.4249812364578247,
0.016456568613648415,
-0.10786863416433334,
0.21672667562961578,
-1.1543885469436646,
-0.15541930496692657,
-0.12615953385829926,
0.378365874... |
func (cs *Record) String() string {
return fmt.Sprintf("%v) %v:%v (%v) %v [tag='%v']", cs.OrderExecuted,
cs.Author, cs.ID, cs.Filename, cs.Checksum, cs.Tag)
} | [
0.827861487865448,
-1.3280839920043945,
-0.017036622390151024,
-0.26499512791633606,
0.07556822896003723,
0.24837690591812134,
0.12384016811847687,
-0.6104850769042969,
-1.01434326171875,
0.243856281042099,
-0.6105740070343018,
0.5484653115272522,
0.2894195318222046,
-0.2888430058956146,
... |
func pissHandler(w http.ResponseWriter, r *http.Request) {
// taken from https://github.com/rs/cors
// w.Header().Set("Access-Control-Allow-Origin", "http://10.0.0.26")
cmd := exec.Command("strongswan","statusall")
var out bytes.Buffer
cmd.Stdout = &out
... | [
0.03590012714266777,
-1.0478729009628296,
0.6701903939247131,
-0.18516366183757782,
-0.3762427866458893,
0.7704786062240601,
-0.005762020125985146,
0.6639272570610046,
-0.15395985543727875,
-0.5310388803482056,
-0.1878022700548172,
-0.15518902242183685,
0.04899049177765846,
0.7666051983833... |
func NewSequence(width int, numPeriods int) Sequence {
return make(Sequence, Width64bits+numPeriods*width)
} | [
-0.8950837254524231,
-0.20559673011302948,
0.20839323103427887,
0.5671744346618652,
-0.8536413311958313,
-0.27230072021484375,
-0.6674290895462036,
-0.4318529963493347,
0.9065200090408325,
0.12675918638706207,
0.29169324040412903,
0.08383836597204208,
-0.7938985228538513,
0.018636936321854... |
func NewFloatValue(e expr.Expr, ts time.Time, val float64) Sequence {
return NewValue(e, ts, expr.FloatParams(val), nil)
} | [
-0.0877186506986618,
0.5350443720817566,
0.6656184196472168,
0.655203104019165,
-0.5839611887931824,
-0.6701750159263611,
-0.8389384150505066,
0.13550901412963867,
-0.942243754863739,
0.43667492270469666,
-0.4864107072353363,
0.30908486247062683,
1.4207252264022827,
1.3184468746185303,
-... |
func NewValue(e expr.Expr, ts time.Time, params expr.Params, metadata goexpr.Params) Sequence {
seq := NewSequence(e.EncodedWidth(), 1)
seq.SetUntil(ts)
seq.UpdateValueAt(0, e, params, metadata)
return seq
} | [
-0.6802396774291992,
-0.12989313900470734,
0.5315625071525574,
0.5542053580284119,
-0.0616331547498703,
-0.585828423500061,
-1.0366276502609253,
0.40830695629119873,
-0.2661551833152771,
1.3932114839553833,
-0.031885627657175064,
0.5254078507423401,
0.8200082182884216,
0.6802675724029541,
... |
func (seq Sequence) Until() time.Time {
if len(seq) == 0 {
return zeroTime
}
return TimeFromBytes(seq)
} | [
-0.09595475345849991,
0.01728614792227745,
0.210132896900177,
-0.6635905504226685,
0.1970953792333603,
-0.039723776280879974,
-0.4248800575733185,
0.11147768050432205,
0.5548432469367981,
0.6234281659126282,
-0.9571520686149597,
0.5730774402618408,
-0.6206305027008057,
1.0797035694122314,
... |
func (seq Sequence) UntilInt() int64 {
if len(seq) == 0 {
return 0
}
return TimeIntFromBytes(seq)
} | [
-0.020956428721547127,
0.08776111900806427,
0.41141653060913086,
-0.957870602607727,
-0.3809225857257843,
-0.14749294519424438,
-0.1973055750131607,
-0.1489829272031784,
-0.2996532618999481,
1.3660404682159424,
-0.5206714868545532,
-1.0644809007644653,
-0.7525436282157898,
0.98982667922973... |
func (seq Sequence) AsOf(width int, resolution time.Duration) time.Time {
if len(seq) == 0 {
return zeroTime
}
return seq.Until().Add(-1 * time.Duration(seq.NumPeriods(width)) * resolution)
} | [
-0.46369248628616333,
-0.028993315994739532,
0.5834881663322449,
-0.3942696154117584,
-0.7164998650550842,
-1.0413180589675903,
-0.8075230717658997,
-0.19504673779010773,
0.8513278961181641,
0.505676805973053,
0.454940527677536,
-0.7442433834075928,
-0.14860661327838898,
0.4171536862850189... |
func (seq Sequence) SetUntil(t time.Time) {
Binary.PutUint64(seq, uint64(t.UnixNano()))
} | [
-0.1620507538318634,
0.578434407711029,
0.23847872018814087,
-0.12590056657791138,
-0.34525251388549805,
0.619907557964325,
-0.5584620833396912,
-0.03546248376369476,
-0.24403133988380432,
0.785126268863678,
-2.191657304763794,
0.6739944815635681,
0.4945237934589386,
0.6585738062858582,
... |
func (seq Sequence) NumPeriods(width int) int {
if len(seq) == 0 {
return 0
}
return seq.DataLength() / width
} | [
-0.17765775322914124,
0.6404821872711182,
0.3934256136417389,
-1.2271519899368286,
-0.8344951868057251,
-0.09403558820486069,
-0.4800114333629608,
0.39593422412872314,
1.437143325805664,
0.47707614302635193,
-0.11743573099374771,
-0.5771252512931824,
-1.0220892429351807,
0.9469246864318848... |
func (seq Sequence) DataLength() int {
return len(seq) - Width64bits
} | [
-0.32910704612731934,
0.20118197798728943,
0.05183625966310501,
-0.36789244413375854,
-0.35185107588768005,
1.0228911638259888,
-0.008339961059391499,
1.1402240991592407,
1.46110200881958,
-0.12127122282981873,
-0.8251796364784241,
0.4062885642051697,
0.150991752743721,
0.6200572848320007,... |
func (seq Sequence) ValueAtTime(t time.Time, e expr.Expr, resolution time.Duration) (val float64, found bool) {
if e.IsConstant() {
val, found, _ = e.Get(nil)
return
}
if len(seq) == 0 {
return 0, false
}
until := seq.Until()
t = RoundTimeUntilUp(t, resolution, until)
if t.After(until) {
return 0, false
... | [
-0.7175986170768738,
-0.06702758371829987,
0.732905924320221,
-0.17303381860256195,
-0.373101145029068,
-0.4160144031047821,
-0.25678393244743347,
-0.1800805777311325,
-0.5051641464233398,
1.4085971117019653,
-0.23914533853530884,
-0.6153315305709839,
0.060730062425136566,
0.50771802663803... |
func (seq Sequence) ValueAt(period int, e expr.Expr) (val float64, found bool) {
if e.IsConstant() {
val, found, _ = e.Get(nil)
return
}
if len(seq) == 0 {
return 0, false
}
if period < 0 {
return 0, false
}
return seq.ValueAtOffset(period*e.EncodedWidth(), e)
} | [
-0.9067071676254272,
-0.6541115641593933,
0.6407137513160706,
-0.7319689989089966,
-0.048730555921792984,
-0.08517714589834213,
-0.21582572162151337,
-0.3672887980937958,
-0.06220157444477081,
0.9466582536697388,
0.15433746576309204,
-0.003923906944692135,
0.1293409764766693,
0.50467640161... |
func (seq Sequence) ValueAtOffset(offset int, e expr.Expr) (val float64, found bool) {
if e.IsConstant() {
val, found, _ = e.Get(nil)
return
}
if len(seq) == 0 {
return 0, false
}
offset = offset + Width64bits
if offset >= len(seq) {
return 0, false
}
val, wasSet, _ := e.Get(seq[offset:])
return val, w... | [
-0.5225138068199158,
-0.5174000263214111,
0.5727202296257019,
-0.8679009675979614,
-0.6636131405830383,
-0.20013365149497986,
0.2924934923648834,
-0.03694545850157738,
0.0505075640976429,
1.1102631092071533,
0.2330552339553833,
-0.11484386771917343,
0.6082517504692078,
0.7608779072761536,
... |
func (seq Sequence) UpdateValueAt(period int, e expr.Expr, params expr.Params, metadata goexpr.Params) {
seq.UpdateValueAtOffset(period*e.EncodedWidth(), e, params, metadata)
} | [
-1.0153393745422363,
-1.0545324087142944,
0.457592248916626,
-0.5958380699157715,
-0.5348649024963379,
-0.0891537293791771,
-0.5766088366508484,
0.21311290562152863,
-0.2089717835187912,
1.1192530393600464,
0.32491445541381836,
0.8920601010322571,
0.5538535714149475,
0.3429490327835083,
... |
func (seq Sequence) UpdateValueAtOffset(offset int, e expr.Expr, params expr.Params, metadata goexpr.Params) {
offset = offset + Width64bits
e.Update(seq[offset:], params, metadata)
} | [
-1.0948328971862793,
-1.3685476779937744,
0.28837910294532776,
-0.753268301486969,
-1.207345962524414,
0.09114118665456772,
-0.39999350905418396,
0.6659082174301147,
-0.08823952823877335,
1.454962968826294,
0.3168574571609497,
0.547052264213562,
0.5245116949081421,
0.37965261936187744,
-... |
func (seq Sequence) Update(tsp TSParams, metadata goexpr.Params, e expr.Expr, resolution time.Duration, truncateBefore time.Time) Sequence {
ts, params := tsp.TimeAndParams()
return seq.UpdateValue(ts, params, metadata, e, resolution, truncateBefore)
} | [
-0.7790601253509521,
-0.6490377187728882,
0.3893350064754486,
-0.3630484640598297,
0.04999404773116112,
-0.09148089587688446,
-1.0009136199951172,
1.077201247215271,
-0.8937693238258362,
2.154569149017334,
-0.16333572566509247,
-0.14190535247325897,
0.20022764801979065,
0.00423571234568953... |
func (seq Sequence) UpdateValue(ts time.Time, params expr.Params, metadata goexpr.Params, e expr.Expr, resolution time.Duration, truncateBefore time.Time) Sequence {
width := e.EncodedWidth()
until := seq.Until()
ts = RoundTimeUp(ts, resolution)
if until.IsZero() {
// sequence has no until, use ts
until = ts
}... | [
-0.8678708076477051,
0.02655002661049366,
0.8586815595626831,
-0.15704478323459625,
-0.6452783942222595,
-0.13535067439079285,
-0.2158699780702591,
0.3579372763633728,
0.6790171265602112,
1.3072583675384521,
0.547684907913208,
0.2858445644378662,
0.758143424987793,
0.46071457862854004,
0... |
func (seq Sequence) Merge(other Sequence, e expr.Expr, resolution time.Duration, truncateBefore time.Time) Sequence {
if len(seq) == 0 {
return other
}
if len(other) == 0 {
return seq
}
sa := seq
sb := other
startA := sa.Until()
startB := sb.Until()
if startB.After(startA) {
// Switch
sa, startA, sb, ... | [
-0.42620331048965454,
-0.04440697655081749,
0.9962099194526672,
0.0744260922074318,
-1.2963353395462036,
-0.23800235986709595,
0.5134143233299255,
0.018360130488872528,
0.8855060338973999,
0.30208706855773926,
-0.06460674852132797,
-0.004509609658271074,
-0.6030540466308594,
0.504682123661... |
func (seq Sequence) Truncate(width int, resolution time.Duration, asOf time.Time, until time.Time) (result Sequence) {
if len(seq) == 0 {
return nil
}
result = seq
oldUntil := result.Until()
asOf = RoundTimeUntilDown(asOf, resolution, oldUntil)
until = RoundTimeUntilDown(until, resolution, oldUntil)
if !until... | [
0.014536851085722446,
0.032383788377046585,
0.7428053021430969,
0.3276647925376892,
-0.8394749760627747,
-1.2373957633972168,
-0.41442450881004333,
-0.5759904384613037,
0.8109254240989685,
0.6712164282798767,
0.19006742537021637,
-0.1573963612318039,
-0.8039265275001526,
-0.032472286373376... |
func (seq Sequence) String(e expr.Expr, resolution time.Duration) string {
if len(seq) == 0 {
return ""
}
values := ""
numPeriods := seq.NumPeriods(e.EncodedWidth())
for i := 0; i < numPeriods; i++ {
if i > 0 {
values += " "
}
val, _ := seq.ValueAt(numPeriods-1-i, e)
values += fmt.Sprint(val)
}
re... | [
-0.3111538589000702,
-0.5968760251998901,
0.43340080976486206,
-0.4222950339317322,
-0.7443014979362488,
-0.0867386907339096,
0.0498172789812088,
0.2555963099002838,
-0.213852196931839,
0.7780278921127319,
0.16181233525276184,
-0.01170352753251791,
0.279397189617157,
-0.29259157180786133,
... |
func ReadStructBigEndian(s interface{}, r io.Reader) error {
return ReadStruct(s, r, binary.BigEndian)
} | [
-0.5823935270309448,
-1.174723505973816,
0.31443527340888977,
0.0872294008731842,
-0.3969396650791168,
0.1459818184375763,
0.2936027944087982,
-0.358760803937912,
-0.3637024462223053,
-0.6990735530853271,
-0.6583224534988403,
0.5728784799575806,
0.42723721265792847,
0.14379169046878815,
... |
func ReadStructLittleEndian(s interface{}, r io.Reader) error {
return ReadStruct(s, r, binary.LittleEndian)
} | [
-0.2739555239677429,
-1.1681586503982544,
0.2840479612350464,
-1.0323355197906494,
-0.8466165661811829,
0.9391195774078369,
-0.12661756575107574,
-0.908259391784668,
0.18862369656562805,
-0.9336041212081909,
-0.8142088651657104,
-0.3354093134403229,
0.6112030148506165,
0.07674936205148697,... |
func ReadStruct(s interface{}, r io.Reader, o binary.ByteOrder) error {
if !R.IsStruct(s) {
return fmt.Errorf("ReadStruct(): s must be a struct. It is: %s\n", reflect.TypeOf(s))
}
fields, _ := R.GetAllValues(s, R.FlagIsAddressable)
for i := range fields {
v := fields[i]
if !v.CanInterface() {
r... | [
-0.17521947622299194,
0.017743997275829315,
0.3556596040725708,
0.44361189007759094,
-0.9647928476333618,
-0.37902891635894775,
0.3418332636356354,
-0.4429306983947754,
-0.24372011423110962,
-0.5048357248306274,
0.0887904167175293,
-0.1084715947508812,
0.18364785611629486,
-0.0807063058018... |
func (c *Config) ValidateAndNormalize() error {
if c.Limit < 0 {
return errors.New("negative Limit is not allowed")
}
if c.Expiration < 0 {
return errors.New("negative Expiration is not allowed")
}
if c.Store == nil {
// default store is memStore
// c.Store = memstore.NewMemStore()
return errors.New("em... | [
-0.1502748727798462,
-0.33664044737815857,
0.4410935342311859,
0.37476927042007446,
-0.5275285840034485,
-0.2223358154296875,
-0.36094504594802856,
0.19758155941963196,
0.39784473180770874,
-0.006787390448153019,
0.09907913208007812,
-0.4167681634426117,
-0.6942885518074036,
0.730573177337... |
func GetPathForVersion(version string) (string, error) {
return GetGobinPath(GetNameForVersion(version))
} | [
-0.4033190608024597,
-0.2251092940568924,
0.2318631261587143,
0.5925301909446716,
-0.21324968338012695,
0.6159279942512512,
0.5456990003585815,
-0.07562962919473648,
-0.6585066914558411,
0.18340273201465607,
-0.3750898241996765,
-1.048685073852539,
-0.1201188787817955,
0.4571602940559387,
... |
func GetNameForVersion(version string) string {
return "golangci-lint@" + version
} | [
0.9657682776451111,
-0.9792323112487793,
0.43528449535369873,
-0.9860878586769104,
-0.15146176517009735,
1.0013163089752197,
-0.7010120749473572,
0.08524366468191147,
-1.148016333580017,
0.9312230348587036,
-0.6002494692802429,
-0.29330524802207947,
0.3023214638233185,
0.3300822079181671,
... |
func GetDefaultPath() (string, error) {
return GetGobinPath("golangci-lint")
} | [
1.7805354595184326,
0.8933651447296143,
0.4688805937767029,
0.7274919152259827,
1.043036937713623,
1.2939050197601318,
0.49522000551223755,
-0.23799759149551392,
-0.8414601683616638,
0.13860975205898285,
-0.10816223174333572,
0.6712456941604614,
-1.2974683046340942,
0.4172980487346649,
0... |
func GetGobinPath(name string) (string, error) {
gobinPath, err := GetGobin()
if err != nil {
return "", errors.Wrapf(err, "cannot get $GOPATH/bin path")
}
return path.Join(gobinPath, name), nil
} | [
-0.19341780245304108,
0.47604772448539734,
0.6607236266136169,
0.9671746492385864,
-0.027427103370428085,
1.219376802444458,
0.11584018170833588,
-1.1907401084899902,
-0.4706253707408905,
1.093584418296814,
-0.029232846572995186,
0.6235279440879822,
-1.1922249794006348,
0.467570960521698,
... |
func GetGobin() (string, error) {
// Get GOPATH.
gopath := os.Getenv("GOPATH")
if gopath == "" {
gopath = build.Default.GOPATH
}
// Prepare destination path.
binPath := path.Join(gopath, "bin")
if err := os.MkdirAll(binPath, 0755); err != nil {
return "", errors.Wrapf(err, "cannot mkdir %v", binPath)
}
r... | [
-0.6977773308753967,
0.878179669380188,
0.6980534195899963,
0.6598721742630005,
0.8197916150093079,
0.827492892742157,
0.6099464297294617,
-0.8009046912193298,
-0.550413191318512,
0.6020501255989075,
-0.06073755770921707,
0.9214494824409485,
-0.5169928669929504,
-0.02911458909511566,
1.1... |
func NewWin32LobAppRegistryRule()(*Win32LobAppRegistryRule) {
m := &Win32LobAppRegistryRule{
Win32LobAppRule: *NewWin32LobAppRule(),
}
odataTypeValue := "#microsoft.graph.win32LobAppRegistryRule";
m.SetOdataType(&odataTypeValue);
return m
} | [
0.4528413414955139,
0.21403133869171143,
-0.3269427418708801,
-0.20397207140922546,
0.10892023146152496,
0.6192544102668762,
0.14999227225780487,
1.5830663442611694,
-0.6440227627754211,
0.6147620677947998,
-0.13152974843978882,
0.14801305532455444,
-0.3941630721092224,
0.5370674729347229,... |
func CreateWin32LobAppRegistryRuleFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
return NewWin32LobAppRegistryRule(), nil
} | [
1.0191993713378906,
0.36125439405441284,
0.14596718549728394,
-0.33164119720458984,
-0.27645570039749146,
0.7374966144561768,
0.3643946051597595,
1.0292683839797974,
-0.13989825546741486,
-0.00007409012323478237,
0.15907561779022217,
0.1784159392118454,
0.3706236481666565,
1.08180749416351... |
func (m *Win32LobAppRegistryRule) GetCheck32BitOn64System()(*bool) {
return m.check32BitOn64System
} | [
-0.5059400200843811,
0.6431553959846497,
0.20398980379104614,
1.3423362970352173,
0.07794401794672012,
1.3117462396621704,
0.24924829602241516,
-0.24714267253875732,
-0.3140917122364044,
0.029699906706809998,
-0.21545007824897766,
0.3255442678928375,
-0.6226271986961365,
0.8510976433753967... |
func (m *Win32LobAppRegistryRule) GetComparisonValue()(*string) {
return m.comparisonValue
} | [
1.1112545728683472,
0.1799314171075821,
0.1216680109500885,
0.3375997841358185,
-0.09731695801019669,
1.008647084236145,
0.6421305537223816,
1.0313035249710083,
-0.18479177355766296,
0.15568572282791138,
0.3035118281841278,
-0.14254000782966614,
-0.4387649893760681,
0.7688694596290588,
0... |
func (m *Win32LobAppRegistryRule) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
res := m.Win32LobAppRule.GetFieldDeserializers()
res["check32BitOn64System"] = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.SetBoo... | [
0.44063782691955566,
0.38409551978111267,
0.6091508865356445,
-1.0882713794708252,
-0.14525407552719116,
-0.09595780074596405,
0.5984888672828674,
0.738975465297699,
-1.0403225421905518,
-0.44553524255752563,
-0.7816065549850464,
-0.2114662081003189,
-0.9195692539215088,
0.2071502655744552... |
func (m *Win32LobAppRegistryRule) GetKeyPath()(*string) {
return m.keyPath
} | [
0.9920488595962524,
0.29211509227752686,
0.07407614588737488,
1.0781340599060059,
0.8104475736618042,
1.2136372327804565,
1.2687969207763672,
-0.07366164028644562,
0.06248145177960396,
0.4220564365386963,
0.03521016612648964,
0.17203927040100098,
-1.1463494300842285,
0.3555694818496704,
... |
func (m *Win32LobAppRegistryRule) GetOperationType()(*Win32LobAppRegistryRuleOperationType) {
return m.operationType
} | [
0.942554771900177,
1.1751890182495117,
0.12977205216884613,
0.6480841636657715,
1.5174238681793213,
0.8707126379013062,
1.19989013671875,
0.791339635848999,
0.7023236155509949,
0.4629193842411041,
0.7130060195922852,
-0.23457635939121246,
-0.7499379515647888,
0.43234318494796753,
1.44606... |
func (m *Win32LobAppRegistryRule) GetOperator()(*Win32LobAppRuleOperator) {
return m.operator
} | [
0.800550639629364,
0.47770956158638,
0.11111154407262802,
0.25874054431915283,
0.49975869059562683,
0.9812616109848022,
0.5887544751167297,
0.8754814267158508,
0.5872741937637329,
0.002570560434833169,
0.6446385383605957,
-0.11122075468301773,
-0.6360965371131897,
0.3628382980823517,
0.9... |
func (m *Win32LobAppRegistryRule) GetValueName()(*string) {
return m.valueName
} | [
0.2529517412185669,
0.19252817332744598,
0.09966222196817398,
0.8979328870773315,
0.6173174381256104,
0.9249869585037231,
0.517345130443573,
1.1901291608810425,
-0.16001386940479279,
0.6834083795547485,
0.163579061627388,
0.07530274987220764,
-0.22576239705085754,
0.482612669467926,
0.57... |
func (m *Win32LobAppRegistryRule) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
err := m.Win32LobAppRule.Serialize(writer)
if err != nil {
return err
}
{
err = writer.WriteBoolValue("check32BitOn64System", m.GetCheck32Bit... | [
0.07882820069789886,
0.4945092499256134,
0.47310885787010193,
-0.2670832872390747,
0.32137590646743774,
0.10335750877857208,
0.8195486664772034,
0.49166420102119446,
-0.7814720869064331,
0.5849366784095764,
-0.14470025897026062,
0.02124284766614437,
-0.6778187155723572,
1.0826467275619507,... |
func (m *Win32LobAppRegistryRule) SetCheck32BitOn64System(value *bool)() {
m.check32BitOn64System = value
} | [
-0.650853157043457,
0.40839219093322754,
0.20844760537147522,
1.0473122596740723,
-0.1523691564798355,
1.592919111251831,
0.5786240100860596,
-0.11448820680379868,
-0.5886714458465576,
0.1886308789253235,
-0.5207420587539673,
0.07609963417053223,
-0.11565816402435303,
1.33561372756958,
-... |
func (m *Win32LobAppRegistryRule) SetComparisonValue(value *string)() {
m.comparisonValue = value
} | [
0.8512912392616272,
0.21975070238113403,
0.16721010208129883,
-0.033205319195985794,
-0.024775119498372078,
1.0689984560012817,
1.155542254447937,
1.0570955276489258,
-0.41395559906959534,
0.3647526204586029,
-0.2853538990020752,
-0.4410499930381775,
-0.3107370436191559,
1.2824829816818237... |
func (m *Win32LobAppRegistryRule) SetKeyPath(value *string)() {
m.keyPath = value
} | [
0.5410828590393066,
0.4449310898780823,
0.06431951373815536,
0.8634032607078552,
0.17244431376457214,
1.3134498596191406,
1.2193641662597656,
-0.0403982549905777,
-0.30831190943717957,
0.8607282638549805,
-0.6715651154518127,
-0.3088223934173584,
-0.6346495151519775,
0.7518717646598816,
... |
func (m *Win32LobAppRegistryRule) SetOperationType(value *Win32LobAppRegistryRuleOperationType)() {
m.operationType = value
} | [
0.364487886428833,
1.4130592346191406,
0.108548603951931,
0.2625100910663605,
0.7870768904685974,
0.8986549973487854,
1.632735013961792,
0.7597307562828064,
0.12987184524536133,
0.8843339681625366,
0.20736970007419586,
-0.9000328183174133,
-0.3361491560935974,
1.3260374069213867,
1.24952... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.