text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func (page RoleManagementPolicyAssignmentListResultPage) Values() []RoleManagementPolicyAssignment {
if page.rmpalr.IsEmpty() {
return nil
}
return *page.rmpalr.Value
} | [
-0.4328700304031372,
-0.24397622048854828,
0.2995269000530243,
-0.5342755317687988,
0.6851580739021301,
0.06898169964551926,
-0.2867925465106964,
-0.09122025966644287,
0.7722972631454468,
0.8141379952430725,
-0.16673581302165985,
-0.4458027482032776,
-0.693562924861908,
1.321858525276184,
... |
func NewRoleManagementPolicyAssignmentListResultPage(cur RoleManagementPolicyAssignmentListResult, getNextPage func(context.Context, RoleManagementPolicyAssignmentListResult) (RoleManagementPolicyAssignmentListResult, error)) RoleManagementPolicyAssignmentListResultPage {
return RoleManagementPolicyAssignmentListResul... | [
-0.6206496357917786,
-0.21163375675678253,
0.3183761239051819,
-0.5799115896224976,
-0.5252249240875244,
0.2743801772594452,
0.1743878573179245,
0.25236907601356506,
0.5827224850654602,
1.3187975883483887,
0.03049669787287712,
-0.997728168964386,
-0.14252404868602753,
1.1811274290084839,
... |
func (rmpap RoleManagementPolicyAssignmentProperties) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
if rmpap.Scope != nil {
objectMap["scope"] = rmpap.Scope
}
if rmpap.RoleDefinitionID != nil {
objectMap["roleDefinitionId"] = rmpap.RoleDefinitionID
}
if rmpap.PolicyID != nil {
ob... | [
0.17254525423049927,
-1.1126303672790527,
0.0187978558242321,
-1.3258544206619263,
-0.30096161365509033,
0.16389048099517822,
-0.07668107748031616,
0.7059235572814941,
0.5638749003410339,
0.9789985418319702,
-0.24155360460281372,
0.497476726770401,
-0.1070452556014061,
0.9787494540214539,
... |
func (rmpap *RoleManagementPolicyAssignmentProperties) UnmarshalJSON(body []byte) error {
var m map[string]*json.RawMessage
err := json.Unmarshal(body, &m)
if err != nil {
return err
}
for k, v := range m {
switch k {
case "scope":
if v != nil {
var scope string
err = json.Unmarshal(*v, &scope)
... | [
-0.3517906665802002,
-0.7333623170852661,
0.44175752997398376,
-1.5632688999176025,
-0.6469315886497498,
-0.021200647577643394,
-0.03267747536301613,
0.20273953676223755,
0.19192951917648315,
1.2275820970535278,
0.2242923229932785,
0.5049153566360474,
-0.0788881927728653,
0.774802625179290... |
func (rmpacr RoleManagementPolicyAuthenticationContextRule) MarshalJSON() ([]byte, error) {
rmpacr.RuleType = RuleTypeRoleManagementPolicyAuthenticationContextRule
objectMap := make(map[string]interface{})
if rmpacr.IsEnabled != nil {
objectMap["isEnabled"] = rmpacr.IsEnabled
}
if rmpacr.ClaimValue != nil {
ob... | [
0.1252162754535675,
-0.4751197397708893,
0.0561031699180603,
-1.2593060731887817,
0.20898973941802979,
0.3549174666404724,
-0.5439961552619934,
0.6515278220176697,
0.6911647915840149,
0.6113777160644531,
0.3177861273288727,
1.1431885957717896,
-1.0212492942810059,
0.22658191621303558,
0.... |
func (rmpacr RoleManagementPolicyAuthenticationContextRule) AsRoleManagementPolicyApprovalRule() (*RoleManagementPolicyApprovalRule, bool) {
return nil, false
} | [
-0.7320065498352051,
0.3871401846408844,
0.793881893157959,
-0.7758415937423706,
-0.2757588028907776,
0.8050851821899414,
-0.8235053420066833,
0.4265291690826416,
1.1129885911941528,
1.219764232635498,
1.0093671083450317,
0.33616793155670166,
-0.44374409317970276,
-0.10796108841896057,
0... |
func (rmpacr RoleManagementPolicyAuthenticationContextRule) AsRoleManagementPolicyAuthenticationContextRule() (*RoleManagementPolicyAuthenticationContextRule, bool) {
return &rmpacr, true
} | [
-0.41598036885261536,
0.11690003424882889,
0.6348612308502197,
-0.7705022692680359,
0.3191995918750763,
0.4556145966053009,
-0.07097368687391281,
0.20195670425891876,
1.9360231161117554,
1.1011265516281128,
0.8966085314750671,
0.32367172837257385,
-0.8755886554718018,
-0.549393355846405,
... |
func (rmpacr RoleManagementPolicyAuthenticationContextRule) AsRoleManagementPolicyEnablementRule() (*RoleManagementPolicyEnablementRule, bool) {
return nil, false
} | [
-0.16621100902557373,
0.22676733136177063,
0.5227054953575134,
-0.4913654923439026,
0.001492197043262422,
0.8934182524681091,
-0.3179842531681061,
0.7535543441772461,
0.8230529427528381,
0.9591629505157471,
0.31730103492736816,
0.32332438230514526,
-1.4217925071716309,
-0.6460478901863098,... |
func (rmpacr RoleManagementPolicyAuthenticationContextRule) AsRoleManagementPolicyExpirationRule() (*RoleManagementPolicyExpirationRule, bool) {
return nil, false
} | [
0.03680463135242462,
0.4595368802547455,
0.49668651819229126,
-0.6058100461959839,
0.12210237234830856,
0.574347198009491,
-0.4810812473297119,
0.4837726056575775,
1.4916625022888184,
1.034433126449585,
0.7395196557044983,
0.30244913697242737,
-0.9540971517562866,
-0.1682978868484497,
-0... |
func (rmpacr RoleManagementPolicyAuthenticationContextRule) AsRoleManagementPolicyNotificationRule() (*RoleManagementPolicyNotificationRule, bool) {
return nil, false
} | [
-0.3885021507740021,
0.5817709565162659,
0.6373518109321594,
-0.2803932726383209,
0.0193803571164608,
0.7197376489639282,
0.08753600716590881,
0.4196273684501648,
0.9751737117767334,
1.193235993385315,
0.4857341945171356,
0.2841506898403168,
-0.6543956995010376,
-0.01517984364181757,
0.1... |
func (rmpacr RoleManagementPolicyAuthenticationContextRule) AsRoleManagementPolicyRule() (*RoleManagementPolicyRule, bool) {
return nil, false
} | [
-0.9646285176277161,
0.13801342248916626,
0.4375362992286682,
-0.8863244652748108,
0.2072107046842575,
0.7756378054618835,
-0.6044247150421143,
0.23926974833011627,
1.6970031261444092,
0.7884842157363892,
1.2789887189865112,
0.621328592300415,
-1.1128933429718018,
-0.20799317955970764,
-... |
func (rmpacr RoleManagementPolicyAuthenticationContextRule) AsBasicRoleManagementPolicyRule() (BasicRoleManagementPolicyRule, bool) {
return &rmpacr, true
} | [
-0.530763566493988,
-0.4668343961238861,
0.4609411954879761,
-0.6411382555961609,
0.24375589191913605,
0.8978787064552307,
-1.0957372188568115,
-0.07355940341949463,
0.7086467146873474,
0.7757595777511597,
0.847385048866272,
0.8267392516136169,
-0.9459961652755737,
-0.4641129970550537,
-... |
func (rmper RoleManagementPolicyEnablementRule) MarshalJSON() ([]byte, error) {
rmper.RuleType = RuleTypeRoleManagementPolicyEnablementRule
objectMap := make(map[string]interface{})
if rmper.EnabledRules != nil {
objectMap["enabledRules"] = rmper.EnabledRules
}
if rmper.ID != nil {
objectMap["id"] = rmper.ID
... | [
0.5102540850639343,
-0.7200036644935608,
0.20078864693641663,
-0.5270439386367798,
-0.1881456822156906,
0.3808124363422394,
-0.40341636538505554,
1.5191797018051147,
-0.07780856639146805,
0.685255765914917,
-0.15544697642326355,
0.5097397565841675,
-1.3004056215286255,
0.5542357563972473,
... |
func (rmper RoleManagementPolicyEnablementRule) AsRoleManagementPolicyApprovalRule() (*RoleManagementPolicyApprovalRule, bool) {
return nil, false
} | [
-0.1816374659538269,
-0.17467926442623138,
0.7621025443077087,
0.11995989829301834,
-0.39990079402923584,
0.661825954914093,
-1.09536612033844,
1.2141422033309937,
0.07308626919984818,
0.9903773665428162,
0.9111495614051819,
-0.21635915338993073,
-0.5870532989501953,
0.3042033314704895,
... |
func (rmper RoleManagementPolicyEnablementRule) AsRoleManagementPolicyAuthenticationContextRule() (*RoleManagementPolicyAuthenticationContextRule, bool) {
return nil, false
} | [
-0.323114275932312,
-0.04457615688443184,
0.7675737142562866,
0.20228122174739838,
-0.2756771743297577,
0.42898014187812805,
-0.14739133417606354,
0.5387662053108215,
1.307117223739624,
0.9530789852142334,
0.8206605911254883,
0.20042532682418823,
-1.0364760160446167,
-0.6787188053131104,
... |
func (rmper RoleManagementPolicyEnablementRule) AsRoleManagementPolicyEnablementRule() (*RoleManagementPolicyEnablementRule, bool) {
return &rmper, true
} | [
0.22318007051944733,
-0.22442972660064697,
0.45638465881347656,
0.19753961265087128,
-0.017582502216100693,
0.9017406105995178,
-0.6389439702033997,
1.3041975498199463,
0.02473754808306694,
0.9167033433914185,
0.2941514253616333,
-0.3877160847187042,
-1.6737191677093506,
-0.149212986230850... |
func (rmper RoleManagementPolicyEnablementRule) AsRoleManagementPolicyExpirationRule() (*RoleManagementPolicyExpirationRule, bool) {
return nil, false
} | [
0.6578240394592285,
-0.02086789160966873,
0.518546462059021,
0.31939151883125305,
-0.22045516967773438,
0.38178014755249023,
-0.7417276501655579,
1.3554439544677734,
0.5508991479873657,
0.9933027029037476,
0.5990668535232544,
-0.36532261967658997,
-1.245625376701355,
0.06699022650718689,
... |
func (rmper RoleManagementPolicyEnablementRule) AsRoleManagementPolicyNotificationRule() (*RoleManagementPolicyNotificationRule, bool) {
return nil, false
} | [
0.296912282705307,
0.03471846878528595,
0.5903655290603638,
0.5754338502883911,
-0.25059035420417786,
0.5504357218742371,
-0.16076412796974182,
1.2264550924301147,
-0.0027713619638234377,
1.0467487573623657,
0.25979289412498474,
-0.39422622323036194,
-0.8819087743759155,
0.2437883466482162... |
func (rmper RoleManagementPolicyEnablementRule) AsRoleManagementPolicyRule() (*RoleManagementPolicyRule, bool) {
return nil, false
} | [
-0.15974096953868866,
-0.4099642336368561,
0.44095033407211304,
-0.10560879111289978,
-0.14930373430252075,
0.8092456459999084,
-0.7413471341133118,
1.1568268537521362,
0.6012338399887085,
0.8449382185935974,
0.9370276927947998,
-0.11723291873931885,
-1.322067379951477,
0.0776621475815773,... |
func (rmper RoleManagementPolicyEnablementRule) AsBasicRoleManagementPolicyRule() (BasicRoleManagementPolicyRule, bool) {
return &rmper, true
} | [
-0.048791252076625824,
-0.711466372013092,
0.4943506717681885,
0.027408955618739128,
0.10278986394405365,
0.8783101439476013,
-1.1552103757858276,
0.837188720703125,
-0.27767446637153625,
0.9202311038970947,
0.7674339413642883,
0.26030078530311584,
-1.051902174949646,
-0.29659292101860046,... |
func (rmper RoleManagementPolicyExpirationRule) MarshalJSON() ([]byte, error) {
rmper.RuleType = RuleTypeRoleManagementPolicyExpirationRule
objectMap := make(map[string]interface{})
if rmper.IsExpirationRequired != nil {
objectMap["isExpirationRequired"] = rmper.IsExpirationRequired
}
if rmper.MaximumDuration !=... | [
0.6124053001403809,
-0.40229466557502747,
0.22606255114078522,
-0.8372883796691895,
-0.01927495002746582,
0.06786754727363586,
-0.730713427066803,
1.0533417463302612,
0.2537115812301636,
0.9078765511512756,
-0.1360054463148117,
0.482064425945282,
-0.66181480884552,
1.303990125656128,
0.2... |
func (rmper RoleManagementPolicyExpirationRule) AsRoleManagementPolicyApprovalRule() (*RoleManagementPolicyApprovalRule, bool) {
return nil, false
} | [
-0.18251387774944305,
-0.05592420697212219,
0.7928184866905212,
-0.3449003994464874,
-0.4453214406967163,
0.5587151646614075,
-1.0961240530014038,
1.1394935846328735,
0.5158956050872803,
1.3058449029922485,
0.7952693104743958,
-0.03854505345225334,
-0.13684238493442535,
0.6446202397346497,... |
func (rmper RoleManagementPolicyExpirationRule) AsRoleManagementPolicyAuthenticationContextRule() (*RoleManagementPolicyAuthenticationContextRule, bool) {
return nil, false
} | [
-0.08463214337825775,
-0.12139689177274704,
0.7335301041603088,
-0.13312765955924988,
-0.3398541808128357,
0.43502718210220337,
-0.3853943943977356,
0.580935537815094,
1.6473349332809448,
1.2733551263809204,
0.6229104399681091,
0.3580421805381775,
-0.6463082432746887,
-0.2718784809112549,
... |
func (rmper RoleManagementPolicyExpirationRule) AsRoleManagementPolicyEnablementRule() (*RoleManagementPolicyEnablementRule, bool) {
return nil, false
} | [
0.48589059710502625,
-0.30244719982147217,
0.6366017460823059,
0.09649308025836945,
-0.2659979462623596,
0.6378393173217773,
-0.5402368903160095,
1.4489951133728027,
0.20846900343894958,
1.0717015266418457,
-0.07507102191448212,
-0.20811176300048828,
-1.3104029893875122,
0.0436261594295501... |
func (rmper RoleManagementPolicyExpirationRule) AsRoleManagementPolicyExpirationRule() (*RoleManagementPolicyExpirationRule, bool) {
return &rmper, true
} | [
0.5272661447525024,
0.14780746400356293,
0.5069857239723206,
-0.26198363304138184,
0.1918475180864334,
0.3456488847732544,
-0.7974395751953125,
1.0587490797042847,
0.655912458896637,
1.1704444885253906,
0.5501194596290588,
-0.2810065746307373,
-0.882280170917511,
0.4550844132900238,
-0.1... |
func (rmper RoleManagementPolicyExpirationRule) AsRoleManagementPolicyNotificationRule() (*RoleManagementPolicyNotificationRule, bool) {
return nil, false
} | [
0.07901979982852936,
-0.0020415806211531162,
0.6820791959762573,
0.161366805434227,
-0.2554190754890442,
0.5436586141586304,
-0.3905913233757019,
1.1701735258102417,
0.3374588191509247,
1.1258329153060913,
-0.14469516277313232,
-0.22100527584552765,
-0.36734962463378906,
0.6621662378311157... |
func (rmper RoleManagementPolicyExpirationRule) AsRoleManagementPolicyRule() (*RoleManagementPolicyRule, bool) {
return nil, false
} | [
-0.32506421208381653,
-0.3224974274635315,
0.47863516211509705,
-0.5269829630851746,
-0.06532169878482819,
0.6650005578994751,
-0.9655042886734009,
0.8555700182914734,
0.9457394480705261,
0.9403175115585327,
0.8228335976600647,
0.01071336679160595,
-0.7578582763671875,
0.618635356426239,
... |
func (rmper RoleManagementPolicyExpirationRule) AsBasicRoleManagementPolicyRule() (BasicRoleManagementPolicyRule, bool) {
return &rmper, true
} | [
-0.14757627248764038,
-0.6864007711410522,
0.5370826125144958,
-0.2943713665008545,
-0.07210931181907654,
0.7539269924163818,
-1.470991611480713,
0.6136811971664429,
-0.05377654731273651,
0.9256619811058044,
0.5334082245826721,
0.45202985405921936,
-0.6177117228507996,
0.3884776532649994,
... |
func (iter *RoleManagementPolicyListResultIterator) NextWithContext(ctx context.Context) (err error) {
if tracing.IsEnabled() {
ctx = tracing.StartSpan(ctx, fqdn+"/RoleManagementPolicyListResultIterator.NextWithContext")
defer func() {
sc := -1
if iter.Response().Response.Response != nil {
sc = iter.Resp... | [
-0.14068503677845,
-0.516785204410553,
0.4746677875518799,
-0.5618815422058105,
-0.5854845643043518,
0.32198143005371094,
-0.4595193564891815,
-0.7245317101478577,
1.0073035955429077,
0.2343166619539261,
-0.14758223295211792,
-0.12600460648536682,
-1.0052454471588135,
0.4329650402069092,
... |
func (iter *RoleManagementPolicyListResultIterator) Next() error {
return iter.NextWithContext(context.Background())
} | [
0.13768041133880615,
-0.10936565697193146,
0.05888596177101135,
0.041095346212387085,
-0.30313771963119507,
0.6886546611785889,
-0.39194294810295105,
-0.2645483613014221,
0.8563234210014343,
0.14963427186012268,
0.6599393486976624,
0.42225903272628784,
-0.8961514234542847,
0.71159267425537... |
func (iter RoleManagementPolicyListResultIterator) NotDone() bool {
return iter.page.NotDone() && iter.i < len(iter.page.Values())
} | [
-0.23136791586875916,
-0.20498672127723694,
0.20094957947731018,
-0.3940150737762451,
0.5426440834999084,
0.5786018967628479,
-0.1594582349061966,
-0.4416296184062958,
-0.22467535734176636,
0.39255639910697937,
0.039602093398571014,
-1.0839329957962036,
-1.3780319690704346,
1.0703229904174... |
func (iter RoleManagementPolicyListResultIterator) Response() RoleManagementPolicyListResult {
return iter.page.Response()
} | [
0.26283541321754456,
-1.2044333219528198,
0.08004751056432724,
-0.7710081338882446,
-0.10062666982412338,
0.5940325260162354,
-0.29628127813339233,
-0.10815389454364777,
1.8455713987350464,
0.7292208075523376,
-0.46505483984947205,
-0.4388314187526703,
-0.6539788246154785,
0.48251596093177... |
func (iter RoleManagementPolicyListResultIterator) Value() RoleManagementPolicy {
if !iter.page.NotDone() {
return RoleManagementPolicy{}
}
return iter.page.Values()[iter.i]
} | [
-0.28349336981773376,
-0.4444725811481476,
0.2485903650522232,
-0.915642261505127,
0.6586189270019531,
0.8110907673835754,
0.0015473655657842755,
-0.8040409684181213,
0.9891124367713928,
0.5582311749458313,
0.6995906233787537,
0.1495252549648285,
-0.5083084106445312,
0.5547899603843689,
... |
func NewRoleManagementPolicyListResultIterator(page RoleManagementPolicyListResultPage) RoleManagementPolicyListResultIterator {
return RoleManagementPolicyListResultIterator{page: page}
} | [
-0.3284594416618347,
-1.3182120323181152,
-0.01893569529056549,
-0.8727805018424988,
-0.7247399091720581,
0.049908094108104706,
-1.1506505012512207,
-0.11302739381790161,
0.9372208714485168,
0.6374515891075134,
-0.2527761161327362,
-0.1785629689693451,
-0.19824597239494324,
0.4908405840396... |
func (rmplr RoleManagementPolicyListResult) IsEmpty() bool {
return rmplr.Value == nil || len(*rmplr.Value) == 0
} | [
-0.9983997941017151,
-0.263740599155426,
0.1941021829843521,
-0.6645227074623108,
1.1558151245117188,
0.36611121892929077,
-0.7509653568267822,
-0.01056324690580368,
0.5071826577186584,
0.6396847367286682,
-0.7073402404785156,
0.17337611317634583,
-1.3437268733978271,
0.6378206610679626,
... |
func (rmplr RoleManagementPolicyListResult) hasNextLink() bool {
return rmplr.NextLink != nil && len(*rmplr.NextLink) != 0
} | [
0.28472527861595154,
0.053490255028009415,
0.11622919887304306,
-0.5241690874099731,
-0.09850350022315979,
-0.3995402455329895,
-0.3823712468147278,
0.8186182975769043,
0.18300491571426392,
-0.777766764163971,
-0.4825398921966553,
0.03128516674041748,
-0.6323351263999939,
1.354012727737426... |
func (rmplr RoleManagementPolicyListResult) roleManagementPolicyListResultPreparer(ctx context.Context) (*http.Request, error) {
if !rmplr.hasNextLink() {
return nil, nil
}
return autorest.Prepare((&http.Request{}).WithContext(ctx),
autorest.AsJSON(),
autorest.AsGet(),
autorest.WithBaseURL(to.String(rmplr.Ne... | [
-0.3539886176586151,
-0.22208978235721588,
0.22567488253116608,
-1.1844348907470703,
-0.08395301550626755,
-0.029657045379281044,
-0.803510308265686,
-0.18128390610218048,
1.265801191329956,
0.5253872275352478,
-0.7681154012680054,
-0.7819985747337341,
-0.6717917323112488,
0.66064459085464... |
func (page *RoleManagementPolicyListResultPage) NextWithContext(ctx context.Context) (err error) {
if tracing.IsEnabled() {
ctx = tracing.StartSpan(ctx, fqdn+"/RoleManagementPolicyListResultPage.NextWithContext")
defer func() {
sc := -1
if page.Response().Response.Response != nil {
sc = page.Response().R... | [
0.06759880483150482,
-0.3803919851779938,
0.5380409359931946,
-0.7430973052978516,
-0.04990045726299286,
0.21023903787136078,
-0.5412335395812988,
-0.41602930426597595,
1.129570722579956,
0.3997453451156616,
-0.2722962498664856,
0.1644134372472763,
-1.1403777599334717,
0.6738747954368591,
... |
func (page *RoleManagementPolicyListResultPage) Next() error {
return page.NextWithContext(context.Background())
} | [
0.1669093370437622,
0.22899453341960907,
0.08145039528608322,
0.31050577759742737,
0.06088051572442055,
0.8586635589599609,
-0.39627155661582947,
-0.10088654607534409,
1.0169378519058228,
0.20031248033046722,
0.5023942589759827,
0.5429396629333496,
-0.8746809363365173,
0.6821392178535461,
... |
func (page RoleManagementPolicyListResultPage) NotDone() bool {
return !page.rmplr.IsEmpty()
} | [
0.12879420816898346,
0.15604819357395172,
0.40943166613578796,
-0.18942208588123322,
1.087127685546875,
0.38896098732948303,
-0.3939518332481384,
-0.07651914656162262,
-0.009407460689544678,
0.5919941067695618,
-0.38899847865104675,
-0.9783401489257812,
-1.689711332321167,
1.03495347499847... |
func (page RoleManagementPolicyListResultPage) Response() RoleManagementPolicyListResult {
return page.rmplr
} | [
0.3064826428890228,
-1.1649471521377563,
0.09521466493606567,
-0.9761416912078857,
-0.07739343494176865,
0.40291398763656616,
-0.548445999622345,
0.2250738888978958,
2.1562585830688477,
0.947965145111084,
-0.8383926749229431,
-0.5254290103912354,
-1.0096997022628784,
0.3821938633918762,
... |
func (page RoleManagementPolicyListResultPage) Values() []RoleManagementPolicy {
if page.rmplr.IsEmpty() {
return nil
}
return *page.rmplr.Value
} | [
0.1073312908411026,
0.06169493496417999,
0.18696044385433197,
-0.8812394142150879,
1.3140066862106323,
0.37308239936828613,
-0.8415980935096741,
-0.31446704268455505,
0.8211206197738647,
0.19272422790527344,
-0.26531052589416504,
-0.18147516250610352,
-1.0523563623428345,
0.960471570491790... |
func NewRoleManagementPolicyListResultPage(cur RoleManagementPolicyListResult, getNextPage func(context.Context, RoleManagementPolicyListResult) (RoleManagementPolicyListResult, error)) RoleManagementPolicyListResultPage {
return RoleManagementPolicyListResultPage{
fn: getNextPage,
rmplr: cur,
}
} | [
-0.39491429924964905,
-0.2658441364765167,
0.20403945446014404,
-0.7718421816825867,
0.02703314833343029,
0.25396573543548584,
-0.8006604313850403,
-0.010151960887014866,
0.7025758624076843,
0.9639315605163574,
-0.13173432648181915,
-0.4771776795387268,
-0.8302264213562012,
0.6228213906288... |
func (rmpnr RoleManagementPolicyNotificationRule) MarshalJSON() ([]byte, error) {
rmpnr.RuleType = RuleTypeRoleManagementPolicyNotificationRule
objectMap := make(map[string]interface{})
if rmpnr.NotificationType != "" {
objectMap["notificationType"] = rmpnr.NotificationType
}
if rmpnr.NotificationLevel != "" {
... | [
0.6047184467315674,
-0.3603021204471588,
0.36344844102859497,
-0.9363041520118713,
0.011830589734017849,
0.49930307269096375,
-0.1602373868227005,
0.48776060342788696,
0.047836776822805405,
0.6787497997283936,
-0.4400217831134796,
0.40455755591392517,
-0.6518712639808655,
1.226276993751525... |
func (rmpnr RoleManagementPolicyNotificationRule) AsRoleManagementPolicyApprovalRule() (*RoleManagementPolicyApprovalRule, bool) {
return nil, false
} | [
-0.0450507327914238,
0.6097640991210938,
0.678337812423706,
-0.3624187409877777,
0.21491102874279022,
0.5191066265106201,
-0.5954208374023438,
0.5103850364685059,
0.5095069408416748,
1.1667075157165527,
0.6552891135215759,
-0.2084607183933258,
-0.06580747663974762,
0.6010339260101318,
0.... |
func (rmpnr RoleManagementPolicyNotificationRule) AsRoleManagementPolicyAuthenticationContextRule() (*RoleManagementPolicyAuthenticationContextRule, bool) {
return nil, false
} | [
0.024380125105381012,
0.6534284353256226,
0.7387852668762207,
-0.06628169119358063,
0.37349510192871094,
0.5832321643829346,
0.23829934000968933,
-0.0883481577038765,
1.580464243888855,
1.0975830554962158,
0.3736361265182495,
0.29774022102355957,
-0.6092909574508667,
-0.09979808330535889,
... |
func (rmpnr RoleManagementPolicyNotificationRule) AsRoleManagementPolicyEnablementRule() (*RoleManagementPolicyEnablementRule, bool) {
return nil, false
} | [
0.5773752331733704,
0.42918816208839417,
0.5423961281776428,
0.024335935711860657,
0.21054810285568237,
0.879040002822876,
-0.16722245514392853,
0.641007125377655,
0.20706726610660553,
0.8566980957984924,
-0.07829032093286514,
-0.25975239276885986,
-1.2527122497558594,
0.05538281425833702,... |
func (rmpnr RoleManagementPolicyNotificationRule) AsRoleManagementPolicyExpirationRule() (*RoleManagementPolicyExpirationRule, bool) {
return nil, false
} | [
0.7210840582847595,
0.7121502161026001,
0.4499790370464325,
-0.18901921808719635,
0.4569350779056549,
0.4038968086242676,
-0.43539363145828247,
0.569818913936615,
0.8018959760665894,
0.9483057260513306,
0.24467839300632477,
-0.27258872985839844,
-0.7821625471115112,
0.46194490790367126,
... |
func (rmpnr RoleManagementPolicyNotificationRule) AsRoleManagementPolicyNotificationRule() (*RoleManagementPolicyNotificationRule, bool) {
return &rmpnr, true
} | [
-0.01576288789510727,
0.2870826721191406,
0.47396573424339294,
0.018127378076314926,
0.28947019577026367,
0.7175956964492798,
-0.287053644657135,
0.4184271991252899,
0.2999212443828583,
1.2158441543579102,
0.06651289016008377,
-0.27652183175086975,
-0.6530485153198242,
0.6182750463485718,
... |
func (rmpnr RoleManagementPolicyNotificationRule) AsRoleManagementPolicyRule() (*RoleManagementPolicyRule, bool) {
return nil, false
} | [
-0.1688590943813324,
0.3725435137748718,
0.3293161988258362,
-0.44057828187942505,
0.5251608490943909,
0.8275809288024902,
-0.32260921597480774,
0.15000054240226746,
0.9085706472396851,
0.908070981502533,
0.5307267308235168,
-0.037395551800727844,
-0.5823206305503845,
0.6771526336669922,
... |
func (rmpnr RoleManagementPolicyNotificationRule) AsBasicRoleManagementPolicyRule() (BasicRoleManagementPolicyRule, bool) {
return &rmpnr, true
} | [
-0.017497900873422623,
-0.027336949482560158,
0.38531407713890076,
-0.15332269668579102,
0.7213261127471924,
0.8268858790397644,
-0.9036142826080322,
-0.16028675436973572,
-0.05902354046702385,
0.6937519311904907,
0.22942659258842468,
0.31245192885398865,
-0.5383792519569397,
0.31172448396... |
func (rmpp RoleManagementPolicyProperties) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]interface{})
if rmpp.Scope != nil {
objectMap["scope"] = rmpp.Scope
}
if rmpp.DisplayName != nil {
objectMap["displayName"] = rmpp.DisplayName
}
if rmpp.Description != nil {
objectMap["description"] = rmp... | [
-0.1372247189283371,
-1.4781405925750732,
-0.01990702748298645,
-1.149322271347046,
-0.020413462072610855,
0.1921272724866867,
-0.3252590000629425,
0.3520709276199341,
0.2882014811038971,
0.5559271574020386,
-0.3902757167816162,
0.44117113947868347,
-1.1570392847061157,
0.4495338201522827,... |
func (rmpp *RoleManagementPolicyProperties) UnmarshalJSON(body []byte) error {
var m map[string]*json.RawMessage
err := json.Unmarshal(body, &m)
if err != nil {
return err
}
for k, v := range m {
switch k {
case "scope":
if v != nil {
var scope string
err = json.Unmarshal(*v, &scope)
if err !=... | [
-0.08132906258106232,
-0.9486368298530579,
0.48133939504623413,
-1.4610956907272339,
0.24485303461551666,
-0.17459990084171295,
-0.06653600186109543,
0.037057679146528244,
-0.004503690637648106,
1.2047462463378906,
0.18516035377979279,
0.37322765588760376,
-0.7954701781272888,
0.5607104897... |
func (rmpr RoleManagementPolicyRule) MarshalJSON() ([]byte, error) {
rmpr.RuleType = RuleTypeRoleManagementPolicyRule
objectMap := make(map[string]interface{})
if rmpr.ID != nil {
objectMap["id"] = rmpr.ID
}
if rmpr.Target != nil {
objectMap["target"] = rmpr.Target
}
if rmpr.RuleType != "" {
objectMap["rul... | [
-0.023079490289092064,
-0.7968229055404663,
0.0655319094657898,
-1.3806383609771729,
0.5616912841796875,
0.5885289311408997,
-0.7717016339302063,
0.6484280228614807,
0.29532018303871155,
0.47815629839897156,
-0.022767717018723488,
1.023941159248352,
-1.083584189414978,
0.9895921945571899,
... |
func (rmpr RoleManagementPolicyRule) AsRoleManagementPolicyApprovalRule() (*RoleManagementPolicyApprovalRule, bool) {
return nil, false
} | [
-0.466217577457428,
-0.12848390638828278,
0.7575516104698181,
-0.6284022331237793,
0.1423330008983612,
0.6882390975952148,
-1.044374704360962,
0.8931787014007568,
0.3094896376132965,
1.0412185192108154,
1.0695083141326904,
-0.047839630395174026,
-0.4438381493091583,
0.6440027356147766,
0... |
func (rmpr RoleManagementPolicyRule) AsRoleManagementPolicyAuthenticationContextRule() (*RoleManagementPolicyAuthenticationContextRule, bool) {
return nil, false
} | [
-0.5739558339118958,
-0.06513465940952301,
0.728236734867096,
-0.39697539806365967,
0.4226301908493042,
0.6273455023765564,
-0.33836111426353455,
0.09674212336540222,
1.4993566274642944,
0.9141862988471985,
0.8882648348808289,
0.437863826751709,
-0.9388626217842102,
-0.40165263414382935,
... |
func (rmpr RoleManagementPolicyRule) AsRoleManagementPolicyEnablementRule() (*RoleManagementPolicyEnablementRule, bool) {
return nil, false
} | [
-0.06224038824439049,
-0.4723910391330719,
0.4796338677406311,
-0.21280692517757416,
0.2291259467601776,
0.9912598729133606,
-0.6618348360061646,
1.1727124452590942,
0.013677529990673065,
0.8154337406158447,
0.2729288637638092,
-0.06581804901361465,
-1.6637834310531616,
-0.0475629270076751... |
func (rmpr RoleManagementPolicyRule) AsRoleManagementPolicyExpirationRule() (*RoleManagementPolicyExpirationRule, bool) {
return nil, false
} | [
0.1665189266204834,
-0.08932646363973618,
0.45155614614486694,
-0.42563173174858093,
0.48788511753082275,
0.6082614660263062,
-0.9135082960128784,
0.9274115562438965,
0.643230140209198,
0.881223201751709,
0.6528447866439819,
-0.028951577842235565,
-1.114223837852478,
0.4035426378250122,
... |
func (rmpr RoleManagementPolicyRule) AsRoleManagementPolicyNotificationRule() (*RoleManagementPolicyNotificationRule, bool) {
return nil, false
} | [
-0.30597350001335144,
-0.032500624656677246,
0.5006952285766602,
-0.18611589074134827,
0.4496280550956726,
0.6766607761383057,
-0.25699737668037415,
0.7198639512062073,
0.04437907412648201,
0.9349233508110046,
0.20409448444843292,
-0.0765911191701889,
-0.761093258857727,
0.6540026664733887... |
func (rmpr RoleManagementPolicyRule) AsRoleManagementPolicyRule() (*RoleManagementPolicyRule, bool) {
return &rmpr, true
} | [
-0.5623513460159302,
-0.20177783071994781,
0.2965181767940521,
-0.6888132691383362,
0.7561224102973938,
0.83558589220047,
-1.0821961164474487,
0.5430177450180054,
0.7201505899429321,
0.660092294216156,
0.8447301983833313,
0.05057971924543381,
-1.1688549518585205,
0.47049105167388916,
-0.... |
func (rmpr RoleManagementPolicyRule) AsBasicRoleManagementPolicyRule() (BasicRoleManagementPolicyRule, bool) {
return &rmpr, true
} | [
-0.3483063876628876,
-0.7679930925369263,
0.343142032623291,
-0.4106796681880951,
0.6103045344352722,
0.6957039833068848,
-1.50547194480896,
0.2035219371318817,
-0.17575035989284515,
0.6677815318107605,
0.668944776058197,
0.41505464911460876,
-0.9888193011283875,
0.1809004545211792,
-0.2... |
func (repo *OrderRepository) Retrieve(id int) (order models.Order, err error) {
order = models.Order{}
txn, err := Db.Begin()
if err != nil {
return
}
defer txn.Commit()
err = Db.QueryRow("select id, `vendorId`, customerId, orderDetails, status from `order` where id = ?", id).
Scan(&order.Id, &order.VendorId,... | [
0.159734308719635,
0.03352011367678642,
0.42389294505119324,
-0.11576471477746964,
0.5061954855918884,
-1.1065993309020996,
-0.7879570126533508,
0.3024243712425232,
0.5526971817016602,
-0.1306503415107727,
-0.3876011371612549,
-0.21476207673549652,
-0.809410572052002,
-0.08461622148752213,... |
func (repo *OrderRepository) Create(order *models.Order) (id int64, err error) {
statement := "insert into `order` (vendorId, customerId, orderDetails, status) values (?, ?, ?, ?)"
stmt, err := Db.Prepare(statement)
if err != nil {
return
}
defer stmt.Close()
result, err := stmt.Exec(order.VendorId, order.Custo... | [
0.07151971757411957,
0.6745465397834778,
0.4495553970336914,
0.728679358959198,
0.29252585768699646,
-0.05384458974003792,
-0.36815229058265686,
-0.005125563126057386,
-0.5424322485923767,
0.5315682291984558,
-0.3559708595275879,
-1.2221577167510986,
-1.1561906337738037,
0.7768720984458923... |
func Default() *Configuration {
return &Configuration{
SplitMax: defaultSplitMax,
PeekMax: defaultPeekMax,
StringMax: defaultStringMax,
DisableTransforms: []string{},
DisableInterpolators: []string{},
}
} | [
-0.22839032113552094,
0.3390735387802124,
0.09819059073925018,
0.17550820112228394,
-0.5434736609458923,
-0.4102763533592224,
0.18208231031894684,
0.5181902050971985,
0.48088380694389343,
-0.3637131154537201,
-1.4051945209503174,
-0.3630485236644745,
-0.31779569387435913,
0.251510262489318... |
func (c *Configuration) Set() error {
if c.SplitMax == 0 {
core.SplitMax = defaultSplitMax
} else {
core.SplitMax = c.SplitMax
}
if c.PeekMax == 0 {
core.NextMax = defaultPeekMax
} else {
core.NextMax = c.PeekMax
}
if c.StringMax == 0 {
strings.StringMax = defaultStringMax
} else {
strings.StringMax... | [
-0.57570880651474,
0.06591854989528656,
0.4105067849159241,
-1.2922900915145874,
-0.14180044829845428,
-0.48269373178482056,
0.3922990560531616,
1.24175226688385,
-0.11108504235744476,
0.1701362580060959,
-1.3096861839294434,
0.15939505398273468,
-0.9627190828323364,
0.20928025245666504,
... |
func (c *Configuration) Validate() error {
if c.PeekMax < 0 {
return errors.New("The maximum peek depth for PipeScript must be > 0")
}
if c.SplitMax < 0 {
return errors.New("The maximum data split size in PipeScript must be > 0")
}
if c.StringMax < 0 {
return errors.New("The maximum string size in PipeScript... | [
-0.9861896634101868,
0.7004209756851196,
0.5126033425331116,
-0.39603564143180847,
-0.04654259979724884,
0.11077471822500229,
0.17288795113563538,
0.3084792196750641,
-1.2083792686462402,
-0.020322255790233612,
0.11571452766656876,
-0.02891714498400688,
-0.43038538098335266,
0.737229287624... |
func Load(filename string) (*Configuration, error) {
file, err := ioutil.ReadFile(filename)
if err != nil {
return nil, err
}
// To allow comments in the json, we minify the file with js minifer before parsing
m := minify.New()
m.AddFunc("text/javascript", js.Minify)
file, err = m.Bytes("text/javascript", fil... | [
-0.48269984126091003,
-0.30718570947647095,
0.809788167476654,
-0.8199320435523987,
-0.8249502182006836,
-0.42291077971458435,
-0.532096266746521,
0.30740684270858765,
-0.5310375690460205,
0.7390289306640625,
-0.8587310910224915,
-0.642293393611908,
-0.4967586398124695,
-0.0628220811486244... |
func (c *Configuration) Save(filename string) error {
b, err := json.MarshalIndent(c, "", "\t")
if err != nil {
return err
}
f, err := os.Create(filename)
if err != nil {
return err
}
defer f.Close()
_, err = f.Write([]byte(configHeader))
if err != nil {
return err
}
_, err = f.Write(b)
return err
} | [
-0.8000617027282715,
-0.11790049821138382,
0.6338276267051697,
-0.8601980209350586,
0.49588337540626526,
-0.2698906660079956,
0.06325165182352066,
-0.38685643672943115,
-1.7624461650848389,
1.2177332639694214,
-1.672119379043579,
-0.6591954231262207,
-0.12062521278858185,
0.142917186021804... |
func AppendToFile(filePath string, data []byte) error {
f, err := os.OpenFile(filePath, os.O_APPEND|os.O_WRONLY, 0644)
if err != nil {
return err
}
defer f.Close()
sEnc := b64.StdEncoding.EncodeToString(data)
_, err = f.WriteString(sEnc + "\n")
if err != nil {
return err
}
f.Sync()
return nil
} | [
0.6720766425132751,
-0.12625087797641754,
0.544386088848114,
0.07376489043235779,
0.2702063024044037,
0.32972463965415955,
-0.1820105016231537,
-0.09023075550794601,
-0.14205443859100342,
0.6985030770301819,
-0.3268425166606903,
0.06665931642055511,
-0.20859332382678986,
0.1140823513269424... |
func WaitTill(condition func() bool, timeoutInSeconds int) error {
waitTill := time.Now().Add(time.Duration(timeoutInSeconds) * time.Second)
for !condition() {
if time.Now().After(waitTill) {
return errors.New(ErrTimeout)
}
time.Sleep(10 * time.Millisecond)
}
return nil
} | [
0.29130104184150696,
-0.009731494821608067,
0.48407697677612305,
-0.4360497295856476,
-0.516729474067688,
0.9431838393211365,
-0.4313766360282898,
0.465761661529541,
-0.5885199904441833,
0.1392069309949875,
-0.020703613758087158,
0.13735711574554443,
0.4656496047973633,
0.20695257186889648... |
func (h *Handler) List(ctx *gin.Context) {
payments, err := h.PaymentResource.List(ctx)
if err != nil {
handleError(ctx, err, 0)
} else {
//
// Populate Links/Self
payments.Links.Self = fmt.Sprintf("http://%s%s", ctx.Request.Host, ctx.Request.URL.String())
//
// Return JSON object
ctx.JSON(http.StatusO... | [
-0.498738169670105,
-0.8556990623474121,
0.5563493371009827,
-0.4657078981399536,
0.19618317484855652,
-0.792158305644989,
-0.1041981428861618,
0.13572125136852264,
0.4024103283882141,
-0.0468139573931694,
0.17505688965320587,
-0.09792108833789825,
0.5263496041297913,
0.6447793245315552,
... |
func (h *Handler) Find(ctx *gin.Context) {
paymentID := ctx.Param("paymentID")
payment, err := h.PaymentResource.Find(ctx, paymentID)
if err != nil {
handleError(ctx, err, 0)
} else {
//
// Populate Links/Self
payment.Links.Self = fmt.Sprintf("http://%s%s", ctx.Request.Host, ctx.Request.URL.String())
//
... | [
-0.38471412658691406,
-0.2566360831260681,
0.4762740135192871,
-0.5610080361366272,
-0.2636549174785614,
-0.3588641583919525,
0.09437321126461029,
-0.6974521279335022,
-0.051453426480293274,
0.007897380739450455,
1.072066068649292,
-0.08431431651115417,
-0.3150070309638977,
1.1667571067810... |
func (h *Handler) Create(ctx *gin.Context) {
var payment models.PaymentInput
err := json.NewDecoder(ctx.Request.Body).Decode(&payment)
if err != nil {
handleError(ctx, err, http.StatusBadRequest)
} else {
id, err := h.PaymentResource.Create(ctx, payment)
if err != nil {
handleError(ctx, err, 0)
} else {
... | [
-0.8703532218933105,
-0.0026994759682565928,
0.5991654396057129,
0.46993517875671387,
0.08849316090345383,
0.5716180205345154,
-0.6964046955108643,
-0.5146927833557129,
-0.2558519244194031,
0.28734272718429565,
0.7642065286636353,
-0.7266882658004761,
-0.27834731340408325,
1.11405885219573... |
func (h *Handler) Update(ctx *gin.Context) {
paymentID := ctx.Param("paymentID")
var payment models.PaymentInput
defer ctx.Request.Body.Close()
err := json.NewDecoder(ctx.Request.Body).Decode(&payment)
if err != nil {
handleError(ctx, err, http.StatusBadRequest)
} else {
err := h.PaymentResource.Update(ctx, p... | [
-0.5582618713378906,
-0.6233717203140259,
0.550407886505127,
-0.22632870078086853,
-0.8036130666732788,
0.7502363920211792,
-0.7140145897865295,
-0.15508662164211273,
0.3198060691356659,
0.34263524413108826,
0.9708412289619446,
0.13544131815433502,
-0.45017650723457336,
0.6080693602561951,... |
func (h *Handler) Delete(ctx *gin.Context) {
paymentID := ctx.Param("paymentID")
err := h.PaymentResource.Delete(ctx, paymentID)
if err != nil {
handleError(ctx, err, 0)
} else {
ctx.JSON(http.StatusOK, models.JSONAPISuccessObject{Status: http.StatusOK, ID: paymentID})
}
} | [
0.024945134297013283,
-0.4498375952243805,
0.6023526191711426,
0.0207277312874794,
0.18140868842601776,
0.5279021859169006,
-0.15256282687187195,
0.007981983944773674,
0.6025099754333496,
0.39764049649238586,
1.009817123413086,
0.1718740463256836,
-0.5597508549690247,
0.7456187009811401,
... |
func NewMemoryStorage() *MemoryStorage {
return &MemoryStorage{
quotes: []QuoteInfo{},
}
} | [
0.8258870840072632,
-0.654635488986969,
-0.017523575574159622,
0.1712179183959961,
-0.9707392454147339,
-1.2295584678649902,
-0.5492178201675415,
-1.3764439821243286,
0.34153956174850464,
0.016659079119563103,
-1.1191679239273071,
-0.13488776981830597,
-0.44958698749542236,
1.4611520767211... |
func (ms MemoryStorage) Get() []QuoteInfo {
return ms.quotes
} | [
-0.1432029902935028,
-0.9699769616127014,
0.23671822249889374,
-0.35222116112709045,
0.5495861172676086,
-0.21567726135253906,
-1.3059616088867188,
-0.9806867241859436,
-0.1729636937379837,
0.11391958594322205,
-0.4210478365421295,
0.5058541893959045,
-0.46213263273239136,
0.77927243709564... |
func (ms *MemoryStorage) Store(quote QuoteInfo) {
ms.quotes = append(ms.quotes, quote)
} | [
0.239980086684227,
-0.6422508955001831,
0.077700674533844,
-0.4969465136528015,
0.2201724648475647,
0.5964407920837402,
-0.9019954800605774,
-0.641334593296051,
0.5995528697967529,
-0.8229319453239441,
-1.1704527139663696,
0.44164198637008667,
-0.8437803983688354,
0.9400134086608887,
-0.... |
func (e *UntypedEmitter) On(handlerFunc Handler) {
hv, et, err := reflectHandler(handlerFunc)
if err != nil {
log.Println(err)
return
}
hp := hv.Pointer()
e.mu.Lock()
defer e.mu.Unlock()
if e.allHandlers == nil {
e.allHandlers = make(map[eventType]handlers)
e.allHandlers[et] = handlers{hp: handlerFunc}... | [
-0.375516802072525,
-0.4696235656738281,
0.6927729845046997,
-0.6455628871917725,
0.3220386505126953,
-0.15896615386009216,
-0.5025339126586914,
1.8534201383590698,
-0.16528624296188354,
-0.22240011394023895,
-0.5135236382484436,
0.20698659121990204,
-0.21516487002372742,
1.017931699752807... |
func (e *UntypedEmitter) Off(handlerFunc Handler) {
hv, et, err := reflectHandler(handlerFunc)
if err != nil {
log.Println(err)
return
}
hp := hv.Pointer()
e.mu.Lock()
defer e.mu.Unlock()
if len(e.allHandlers) == 0 {
return
}
if len(e.allHandlers[et]) == 0 {
return
}
delete(e.allHandlers[et], hp)
... | [
-0.23604942858219147,
-0.5713394284248352,
0.48032963275909424,
-0.6007781028747559,
-0.2608463168144226,
1.1667872667312622,
0.26115790009498596,
1.3075114488601685,
-0.28127533197402954,
-0.16726499795913696,
0.16322137415409088,
0.3461802899837494,
-0.5348435044288635,
1.239663958549499... |
func APIKey() string {
return apiKey
} | [
0.32241174578666687,
0.09618896245956421,
0.013007035478949547,
-0.4850052297115326,
-0.27133655548095703,
0.4053328037261963,
-0.16785281896591187,
1.0244526863098145,
0.17614218592643738,
0.9350436925888062,
-0.2628565728664398,
-0.2774306535720825,
-0.6042027473449707,
-0.46137231588363... |
func SetAPIKey(key string) {
apiKey = key
} | [
-0.3327741026878357,
-0.3478214740753174,
0.16032728552818298,
-0.011520028114318848,
-0.17537027597427368,
0.16309797763824463,
-0.6939816474914551,
0.921215295791626,
-0.4768921136856079,
0.9569641351699829,
-0.9964229464530945,
0.026462499052286148,
-0.3000258207321167,
0.74456775188446... |
func ValidateEmail(email string) (*validationResult, error) {
url := "https://api.mailboxvalidator.com/v1/validation/single?email=" + url.QueryEscape(email) + "&key=" + url.QueryEscape(apiKey)
result := &validationResult{}
err := getJson(url, result)
if err != nil {
return result, err
}
// PrintResult(result... | [
-1.696622610092163,
0.3173576295375824,
0.46562665700912476,
0.08661124855279922,
-0.7692443132400513,
-0.29222792387008667,
-0.0938476175069809,
-0.2207288295030594,
-0.1082448661327362,
0.09631369262933731,
-0.6563126444816589,
0.49226194620132446,
-1.0187547206878662,
-0.034407671540975... |
func DisposableEmail(email string) (*validationResultDisposable, error) {
url := "https://api.mailboxvalidator.com/v1/email/disposable?email=" + url.QueryEscape(email) + "&key=" + url.QueryEscape(apiKey)
result := &validationResultDisposable{}
err := getJson(url, result)
if err != nil {
return result, err
}
... | [
-0.7422531843185425,
-0.13139687478542328,
0.5946647524833679,
-0.12983356416225433,
-0.9689111113548279,
0.36081647872924805,
0.19519351422786713,
0.31203457713127136,
-0.18219047784805298,
0.6671281456947327,
-0.45735830068588257,
0.3002181947231293,
-0.7623588442802429,
0.18768671154975... |
func FreeEmail(email string) (*validationResultFree, error) {
url := "https://api.mailboxvalidator.com/v1/email/free?email=" + url.QueryEscape(email) + "&key=" + url.QueryEscape(apiKey)
result := &validationResultFree{}
err := getJson(url, result)
if err != nil {
return result, err
}
// PrintResult(result)
... | [
-1.165530800819397,
0.3857116103172302,
0.5455238819122314,
-0.488704115152359,
-1.7755764722824097,
-0.5876649022102356,
-0.15220187604427338,
-1.0024175643920898,
-0.08390442281961441,
0.2381768673658371,
-0.9604089260101318,
0.5719738006591797,
-1.3263766765594482,
-0.554621160030365,
... |
func ForDriver(driver string) reform.Dialect {
// for sqlite3_with_sleep
if strings.HasPrefix(driver, "sqlite3") {
return sqlite3.Dialect
}
switch driver {
case "postgres", "pgx":
return postgresql.Dialect
case "mysql":
return mysql.Dialect
case "mssql":
return mssql.Dialect //nolint:staticcheck
case "... | [
-0.5009409785270691,
0.01439706515520811,
0.6903291940689087,
0.10854361951351166,
-0.43521934747695923,
-1.0317072868347168,
-0.2185894399881363,
-0.09136811643838882,
0.48799341917037964,
-0.23254147171974182,
0.5954867005348206,
0.12394776940345764,
-0.5646672248840332,
0.41416722536087... |
func RunRandomKhaoticEvent(clientset *kubernetes.Clientset, khaosConfig *utils.Config) (err error) {
rand.Seed(time.Now().UTC().UnixNano())
eventNdx := rand.Intn(len(khaosConfig.KhaoticEvents))
emoji.Printf(":fire: %s :fire:\n", khaosConfig.KhaoticEvents[eventNdx])
switch khaosConfig.KhaoticEvents[eventNdx] {
... | [
-0.26494264602661133,
-0.7273851633071899,
0.6035910248756409,
-0.32892873883247375,
0.3252057433128357,
0.443838894367218,
-0.2994585633277893,
-0.45790258049964905,
0.40512004494667053,
0.5173929929733276,
-0.2252144068479538,
0.602801501750946,
0.051258981227874756,
-0.06192332506179809... |
func KillRandomPod(clientset *kubernetes.Clientset, khaosConfig *utils.Config) (err error) {
rand.Seed(time.Now().UTC().UnixNano())
pods, err := clientset.Core().Pods(khaosConfig.Namespace).List(api.ListOptions{})
if err != nil { return err }
numPods := len(pods.Items)
if numPods == 1 {
fmt.Println("th... | [
-0.9684002995491028,
-0.6739407777786255,
0.6960262656211853,
-0.02087496779859066,
0.5700094699859619,
0.29388368129730225,
0.2508864402770996,
-0.8475598096847534,
0.9316748380661011,
0.8711432218551636,
0.04889283329248428,
0.5198359489440918,
-0.5179967880249023,
0.00609818147495389,
... |
func DrainNode(clientset *kubernetes.Clientset, khaosConfig *utils.Config) (err error) {
rand.Seed(time.Now().UTC().UnixNano())
podsInter := clientset.Core().Pods(api.NamespaceAll)
nodes, err := clientset.Core().Nodes().List(api.ListOptions{})
if err != nil { return err }
numNodes := len(nodes.Items)
drai... | [
-1.0755634307861328,
-0.4977189898490906,
0.827008843421936,
-0.567083477973938,
0.5313226580619812,
0.15527325868606567,
-0.13641007244586945,
-0.40277421474456787,
0.33074307441711426,
1.0315146446228027,
0.8600480556488037,
1.1085022687911987,
-0.4817332625389099,
-0.34132644534111023,
... |
func NewMockStorageService(ctrl *gomock.Controller) *MockStorageService {
mock := &MockStorageService{ctrl: ctrl}
mock.recorder = &MockStorageServiceMockRecorder{mock}
return mock
} | [
0.0552205927670002,
-0.41354823112487793,
0.24441416561603546,
0.7287793159484863,
0.46370866894721985,
-0.2965081036090851,
0.08124919980764389,
-1.2824617624282837,
0.5492088794708252,
0.15416744351387024,
-0.549136221408844,
-0.049528028815984726,
-0.5326976776123047,
0.9957671165466309... |
func (m *MockStorageService) EXPECT() *MockStorageServiceMockRecorder {
return m.recorder
} | [
0.14465078711509705,
0.2411133050918579,
0.39532941579818726,
0.4271091818809509,
0.43466049432754517,
0.02647900953888893,
-0.21857771277427673,
-0.10003536939620972,
0.5018409490585327,
-0.5722684264183044,
0.6275573372840881,
0.9758215546607971,
-0.5963953137397766,
0.4748227894306183,
... |
func (m *MockStorageService) GetYears(ctx context.Context) ([]Year, error) {
ret := m.ctrl.Call(m, "GetYears", ctx)
ret0, _ := ret[0].([]Year)
ret1, _ := ret[1].(error)
return ret0, ret1
} | [
0.14144562184810638,
0.3872016370296478,
0.426272451877594,
0.2301308512687683,
0.9408603310585022,
0.5313756465911865,
0.8903324007987976,
-0.9161078333854675,
0.16323843598365784,
-0.4076436161994934,
-0.4260297119617462,
0.0871414989233017,
-0.8060575127601624,
1.0458706617355347,
0.0... |
func (mr *MockStorageServiceMockRecorder) GetYears(ctx interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetYears", reflect.TypeOf((*MockStorageService)(nil).GetYears), ctx)
} | [
0.2917318344116211,
1.1759884357452393,
0.5584667921066284,
-0.0882493257522583,
0.4638236463069916,
0.23495666682720184,
0.0010356307029724121,
-1.1577959060668945,
1.2171423435211182,
0.4404033422470093,
0.6079934239387512,
1.0083990097045898,
-0.5549009442329407,
1.2095530033111572,
-... |
func (m *MockStorageService) GetContent(ctx context.Context, year string) ([]Movie, error) {
ret := m.ctrl.Call(m, "GetContent", ctx, year)
ret0, _ := ret[0].([]Movie)
ret1, _ := ret[1].(error)
return ret0, ret1
} | [
-0.35195139050483704,
0.036197029054164886,
0.545915961265564,
0.9382741451263428,
1.3009203672409058,
0.502835750579834,
1.2311359643936157,
-1.0023555755615234,
-0.4215107560157776,
0.22337831556797028,
-0.49889734387397766,
-0.3969815671443939,
-1.0758013725280762,
0.520622730255127,
... |
func (mr *MockStorageServiceMockRecorder) GetContent(ctx, year interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetContent", reflect.TypeOf((*MockStorageService)(nil).GetContent), ctx, year)
} | [
0.36932045221328735,
0.7514684796333313,
0.4818573296070099,
0.22842322289943695,
0.7421374320983887,
0.4709349572658539,
0.36287614703178406,
-1.435081958770752,
0.7811061143875122,
0.7169918417930603,
0.9282283186912537,
0.5637856125831604,
-0.7410061955451965,
0.38684219121932983,
-0.... |
func (h *Handler) CreateFromFile(filename string) (*networkingv1.IngressClass, error) {
data, err := ioutil.ReadFile(filename)
if err != nil {
return nil, err
}
return h.CreateFromBytes(data)
} | [
0.0676020085811615,
-0.3206266760826111,
0.3382894694805145,
0.2283409833908081,
-0.10586965084075928,
1.4702105522155762,
-0.4055121839046478,
-0.47086983919143677,
-0.9466193914413452,
-0.11768253892660141,
0.0669102594256401,
-0.5857897400856018,
-0.806923508644104,
-0.08657421171665192... |
func (h *Handler) CreateFromBytes(data []byte) (*networkingv1.IngressClass, error) {
ingcJson, err := yaml.ToJSON(data)
if err != nil {
return nil, err
}
ingc := &networkingv1.IngressClass{}
if err = json.Unmarshal(ingcJson, ingc); err != nil {
return nil, err
}
return h.createIngressclass(ingc)
} | [
-0.2588770091533661,
-0.7334620952606201,
0.37833288311958313,
-0.6162151098251343,
-0.28206369280815125,
0.4585424065589905,
-1.0122566223144531,
-0.1547892540693283,
0.6798604130744934,
0.07500717043876648,
-0.5766167044639587,
-0.29690679907798767,
-0.4877246916294098,
0.176405936479568... |
func (h *Handler) CreateFromObject(obj interface{}) (*networkingv1.IngressClass, error) {
ingc, ok := obj.(*networkingv1.IngressClass)
if !ok {
return nil, fmt.Errorf("object type is not *networkingv1.IngressClass")
}
return h.createIngressclass(ingc)
} | [
-0.20187976956367493,
-0.5740706324577332,
0.40779149532318115,
0.8232556581497192,
-0.10452371835708618,
0.6873800754547119,
-0.5674173831939697,
-1.0948742628097534,
0.6452572345733643,
0.24538792669773102,
-0.6442039012908936,
-0.2544834315776825,
-0.5056082606315613,
-0.038014408200979... |
func (h *Handler) CreateFromUnstructured(u *unstructured.Unstructured) (*networkingv1.IngressClass, error) {
ingc := &networkingv1.IngressClass{}
err := runtime.DefaultUnstructuredConverter.FromUnstructured(u.UnstructuredContent(), ingc)
if err != nil {
return nil, err
}
return h.createIngressclass(ingc)
} | [
-0.4573444724082947,
-0.274271696805954,
0.4704287648200989,
-0.0413493886590004,
0.027744418010115623,
0.6987955570220947,
-0.6227039098739624,
-0.2813594341278076,
-0.0016864007338881493,
-0.8431977033615112,
-0.6965411305427551,
-0.13674108684062958,
-0.3201637268066406,
0.2775812149047... |
func SetLogLevel() {
level := viper.GetString("LOG_LEVEL")
var zerologLevel zerolog.Level
if level == "PANIC" {
zerologLevel = zerolog.PanicLevel
} else if level == "FATAL" {
zerologLevel = zerolog.FatalLevel
} else if level == "ERROR" {
zerologLevel = zerolog.ErrorLevel
} else if level == "WARN" {
zerolo... | [
-0.07615722715854645,
-0.18901416659355164,
0.7407381534576416,
0.14392919838428497,
0.4365583658218384,
0.4923662543296814,
0.0060882531106472015,
-0.09432957321405411,
-0.519285261631012,
-0.2504883110523224,
-0.7160759568214417,
0.7364362478256226,
-0.612925112247467,
0.4784923791885376... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.