text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func (o SysbenchSpecPodSchedulingAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorPtrOutput) MatchExpressions() SysbenchSpecPodSchedulingAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressionsArrayOutput {
return o.ApplyT(func(v *SysbenchSpecPodSchedu... | [
-0.02061978541314602,
-0.2783174216747284,
0.7055559754371643,
1.2385715246200562,
-0.18992282450199127,
-0.47284770011901855,
0.9098693132400513,
0.024375708773732185,
1.2503654956817627,
0.3848095238208771,
-0.8901684880256653,
-0.278217077255249,
-0.212030827999115,
-0.43404513597488403... |
func (o SysbenchSpecPodSchedulingAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressionsOutput) Key() pulumi.StringOutput {
return o.ApplyT(func(v SysbenchSpecPodSchedulingAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions) string {
r... | [
-0.03473979979753494,
0.3695693016052246,
0.36239784955978394,
0.2767254114151001,
0.5491796731948853,
0.6429330706596375,
0.3230646252632141,
-0.1544402539730072,
0.41429823637008667,
0.5202765464782715,
0.22112157940864563,
0.20634207129478455,
0.33168575167655945,
-1.3355886936187744,
... |
func (o SysbenchSpecPodSchedulingAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressionsOutput) Operator() pulumi.StringOutput {
return o.ApplyT(func(v SysbenchSpecPodSchedulingAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions) string ... | [
0.0636155754327774,
0.34096717834472656,
0.4749894142150879,
0.14200690388679504,
-0.34528040885925293,
0.7126264572143555,
0.4645498991012573,
0.3487395644187927,
0.8558652400970459,
-0.04921488091349602,
0.22594480216503143,
-0.34787309169769287,
0.8475483655929565,
-1.2207560539245605,
... |
func (o SysbenchSpecPodSchedulingAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressionsOutput) Values() pulumi.StringArrayOutput {
return o.ApplyT(func(v SysbenchSpecPodSchedulingAffinityPodAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions) []st... | [
-0.24207563698291779,
0.39588552713394165,
0.5199790000915527,
0.3234134912490845,
1.3717926740646362,
0.1948380023241043,
-0.3792605996131897,
-0.4018850028514862,
0.523021399974823,
0.0022199475206434727,
-0.5583860874176025,
0.24825523793697357,
0.5902472138404846,
-0.009279193356633186... |
func (o SysbenchSpecPodSchedulingAffinityPodAntiAffinityOutput) PreferredDuringSchedulingIgnoredDuringExecution() SysbenchSpecPodSchedulingAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionArrayOutput {
return o.ApplyT(func(v SysbenchSpecPodSchedulingAffinityPodAntiAffinity) []SysbenchSpecPodSchedu... | [
-0.21097002923488617,
0.35091525316238403,
0.48609769344329834,
0.42974168062210083,
0.8710439801216125,
0.5015926361083984,
0.7098203897476196,
-0.47308358550071716,
0.17729021608829498,
0.04376039654016495,
0.1744895726442337,
0.35229888558387756,
0.06549140065908432,
0.3729923963546753,... |
func (o SysbenchSpecPodSchedulingAffinityPodAntiAffinityOutput) RequiredDuringSchedulingIgnoredDuringExecution() SysbenchSpecPodSchedulingAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionArrayOutput {
return o.ApplyT(func(v SysbenchSpecPodSchedulingAffinityPodAntiAffinity) []SysbenchSpecPodScheduli... | [
-0.5018270611763,
-0.03471406176686287,
0.510084331035614,
0.2514074146747589,
0.8001785278320312,
1.0924173593521118,
0.777148962020874,
-0.039673540741205215,
0.2230067253112793,
0.1852991282939911,
0.07686242461204529,
0.2992478013038635,
-0.08878234028816223,
0.3173503279685974,
0.63... |
func (o SysbenchSpecPodSchedulingAffinityPodAntiAffinityPtrOutput) PreferredDuringSchedulingIgnoredDuringExecution() SysbenchSpecPodSchedulingAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionArrayOutput {
return o.ApplyT(func(v *SysbenchSpecPodSchedulingAffinityPodAntiAffinity) []SysbenchSpecPodSc... | [
-0.21154667437076569,
0.473855197429657,
0.4762796461582184,
0.374188095331192,
0.8477100133895874,
0.3572883903980255,
0.692583441734314,
-0.4637705385684967,
0.1705435812473297,
-0.06399339437484741,
0.30577459931373596,
0.265788733959198,
-0.127283975481987,
0.4104970693588257,
1.1831... |
func (o SysbenchSpecPodSchedulingAffinityPodAntiAffinityPtrOutput) RequiredDuringSchedulingIgnoredDuringExecution() SysbenchSpecPodSchedulingAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionArrayOutput {
return o.ApplyT(func(v *SysbenchSpecPodSchedulingAffinityPodAntiAffinity) []SysbenchSpecPodSche... | [
-0.49402719736099243,
0.06738538295030594,
0.47332632541656494,
0.2513616681098938,
0.803398609161377,
0.9854565858840942,
0.766348659992218,
-0.03749924898147583,
0.2100151777267456,
0.025853822007775307,
0.20122000575065613,
0.2325558215379715,
-0.28287890553474426,
0.42132285237312317,
... |
func (o SysbenchSpecPodSchedulingAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionOutput) PodAffinityTerm() SysbenchSpecPodSchedulingAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermOutput {
return o.ApplyT(func(v SysbenchSpecPodSchedulingAffinityPodAntiAffinity... | [
0.005169425625354052,
-0.055299751460552216,
0.45599544048309326,
0.6128098368644714,
0.5284920334815979,
0.7682432532310486,
0.6031134724617004,
-0.4633057713508606,
0.6423758864402771,
0.20849208533763885,
-0.1746004968881607,
0.5849927663803101,
0.06768730282783508,
-0.38687455654144287... |
func (o SysbenchSpecPodSchedulingAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionOutput) Weight() pulumi.IntOutput {
return o.ApplyT(func(v SysbenchSpecPodSchedulingAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecution) int {
return v.Weight
}).(pulumi.IntOutput)
} | [
0.07341726869344711,
0.823796272277832,
0.3648614287376404,
0.8897491693496704,
1.1507508754730225,
0.3530460298061371,
1.1823898553848267,
-0.29910123348236084,
-0.1454986184835434,
0.09040775150060654,
0.009587949141860008,
0.09325516223907471,
-0.06446795910596848,
-0.07588746398687363,... |
func (o SysbenchSpecPodSchedulingAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermOutput) LabelSelector() SysbenchSpecPodSchedulingAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorPtrOutput {
return o.ApplyT(func(v SysbenchSpecPodSche... | [
-0.41627588868141174,
-0.5796604752540588,
0.38635262846946716,
-0.35559892654418945,
0.1371457874774933,
0.45237401127815247,
0.38801494240760803,
-0.9030740261077881,
1.398373007774353,
-0.5551652312278748,
0.2795478403568268,
0.6460657715797424,
-0.15243855118751526,
-1.1214653253555298... |
func (o SysbenchSpecPodSchedulingAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermOutput) Namespaces() pulumi.StringArrayOutput {
return o.ApplyT(func(v SysbenchSpecPodSchedulingAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm) []string {
retur... | [
0.12505556643009186,
0.4597356617450714,
0.4144187867641449,
0.5965586304664612,
0.6544527411460876,
0.6384097933769226,
0.14363041520118713,
-0.7560493350028992,
1.5594338178634644,
-0.21053873002529144,
-0.7735801339149475,
0.30932605266571045,
0.6252204179763794,
-0.07441872358322144,
... |
func (o SysbenchSpecPodSchedulingAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermOutput) TopologyKey() pulumi.StringOutput {
return o.ApplyT(func(v SysbenchSpecPodSchedulingAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTerm) string {
return v.To... | [
-0.36194121837615967,
0.47617170214653015,
0.3469581604003906,
0.0799005851149559,
0.47390875220298767,
1.010259985923767,
0.8745144605636597,
-0.13962070643901825,
0.46513375639915466,
0.42602217197418213,
0.37788116931915283,
0.08276861160993576,
1.0368796586990356,
-1.6003506183624268,
... |
func (o SysbenchSpecPodSchedulingAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorOutput) MatchExpressions() SysbenchSpecPodSchedulingAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressionsArrayOutput {
return o... | [
0.0076356614008545876,
-0.18759402632713318,
0.6067646145820618,
1.120737075805664,
-0.43251800537109375,
-0.2981039583683014,
0.9238473773002625,
0.25820794701576233,
1.2365305423736572,
0.3495175242424011,
-0.785923957824707,
-0.20147915184497833,
-0.060739271342754364,
-0.78989821672439... |
func (o SysbenchSpecPodSchedulingAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorPtrOutput) MatchExpressions() SysbenchSpecPodSchedulingAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressionsArrayOutput {
retur... | [
-0.02061978541314602,
-0.2783174216747284,
0.7055559754371643,
1.2385715246200562,
-0.18992282450199127,
-0.47284770011901855,
0.9098693132400513,
0.024375708773732185,
1.2503654956817627,
0.3848095238208771,
-0.8901684880256653,
-0.278217077255249,
-0.212030827999115,
-0.43404513597488403... |
func (o SysbenchSpecPodSchedulingAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressionsOutput) Key() pulumi.StringOutput {
return o.ApplyT(func(v SysbenchSpecPodSchedulingAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLab... | [
-0.03473979979753494,
0.3695693016052246,
0.36239784955978394,
0.2767254114151001,
0.5491796731948853,
0.6429330706596375,
0.3230646252632141,
-0.1544402539730072,
0.41429823637008667,
0.5202765464782715,
0.22112157940864563,
0.20634207129478455,
0.33168575167655945,
-1.3355886936187744,
... |
func (o SysbenchSpecPodSchedulingAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressionsOutput) Operator() pulumi.StringOutput {
return o.ApplyT(func(v SysbenchSpecPodSchedulingAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTe... | [
0.0636155754327774,
0.34096717834472656,
0.4749894142150879,
0.14200690388679504,
-0.34528040885925293,
0.7126264572143555,
0.4645498991012573,
0.3487395644187927,
0.8558652400970459,
-0.04921488091349602,
0.22594480216503143,
-0.34787309169769287,
0.8475483655929565,
-1.2207560539245605,
... |
func (o SysbenchSpecPodSchedulingAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinityTermLabelSelectorMatchExpressionsOutput) Values() pulumi.StringArrayOutput {
return o.ApplyT(func(v SysbenchSpecPodSchedulingAffinityPodAntiAffinityPreferredDuringSchedulingIgnoredDuringExecutionPodAffinit... | [
-0.24207563698291779,
0.39588552713394165,
0.5199790000915527,
0.3234134912490845,
1.3717926740646362,
0.1948380023241043,
-0.3792605996131897,
-0.4018850028514862,
0.523021399974823,
0.0022199475206434727,
-0.5583860874176025,
0.24825523793697357,
0.5902472138404846,
-0.009279193356633186... |
func (o SysbenchSpecPodSchedulingAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionOutput) LabelSelector() SysbenchSpecPodSchedulingAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorPtrOutput {
return o.ApplyT(func(v SysbenchSpecPodSchedulingAffinityPodAntiAffinityReq... | [
-0.6545110940933228,
-0.7905824780464172,
0.31384748220443726,
-0.48779305815696716,
1.152242660522461,
0.6234353184700012,
0.6584569811820984,
-0.6289752721786499,
0.5254760384559631,
-0.23924970626831055,
0.6214951276779175,
0.4459269344806671,
-0.5070301294326782,
-0.20957279205322266,
... |
func (o SysbenchSpecPodSchedulingAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionOutput) Namespaces() pulumi.StringArrayOutput {
return o.ApplyT(func(v SysbenchSpecPodSchedulingAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution) []string {
return v.Namespaces
}).(pulumi.Strin... | [
-0.16034087538719177,
-0.19958484172821045,
0.3336555063724518,
0.6499031186103821,
1.3964763879776,
0.6683197021484375,
0.32912060618400574,
-0.5846223831176758,
0.9755623936653137,
-0.0606590136885643,
-0.2065337598323822,
0.49680379033088684,
0.1315283626317978,
0.38538751006126404,
0... |
func (o SysbenchSpecPodSchedulingAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionOutput) TopologyKey() pulumi.StringOutput {
return o.ApplyT(func(v SysbenchSpecPodSchedulingAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecution) string {
return v.TopologyKey
}).(pulumi.StringOutp... | [
-0.5507301092147827,
0.07861948758363724,
0.2789748013019562,
0.011539144441485405,
0.8528314828872681,
0.6885858178138733,
0.8974552154541016,
-0.14850735664367676,
-0.0009032613597810268,
0.36316731572151184,
0.4727988839149475,
-0.049222350120544434,
0.39788618683815,
-0.648828625679016... |
func (o SysbenchSpecPodSchedulingAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorOutput) MatchExpressions() SysbenchSpecPodSchedulingAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressionsArrayOutput {
return o.ApplyT(func(v SysbenchSpecPodSc... | [
0.0076356614008545876,
-0.18759402632713318,
0.6067646145820618,
1.120737075805664,
-0.43251800537109375,
-0.2981039583683014,
0.9238473773002625,
0.25820794701576233,
1.2365305423736572,
0.3495175242424011,
-0.785923957824707,
-0.20147915184497833,
-0.060739271342754364,
-0.78989821672439... |
func (o SysbenchSpecPodSchedulingAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorPtrOutput) MatchExpressions() SysbenchSpecPodSchedulingAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressionsArrayOutput {
return o.ApplyT(func(v *SysbenchSpecP... | [
-0.02061978541314602,
-0.2783174216747284,
0.7055559754371643,
1.2385715246200562,
-0.18992282450199127,
-0.47284770011901855,
0.9098693132400513,
0.024375708773732185,
1.2503654956817627,
0.3848095238208771,
-0.8901684880256653,
-0.278217077255249,
-0.212030827999115,
-0.43404513597488403... |
func (o SysbenchSpecPodSchedulingAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressionsOutput) Key() pulumi.StringOutput {
return o.ApplyT(func(v SysbenchSpecPodSchedulingAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions) stri... | [
-0.03473979979753494,
0.3695693016052246,
0.36239784955978394,
0.2767254114151001,
0.5491796731948853,
0.6429330706596375,
0.3230646252632141,
-0.1544402539730072,
0.41429823637008667,
0.5202765464782715,
0.22112157940864563,
0.20634207129478455,
0.33168575167655945,
-1.3355886936187744,
... |
func (o SysbenchSpecPodSchedulingAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressionsOutput) Operator() pulumi.StringOutput {
return o.ApplyT(func(v SysbenchSpecPodSchedulingAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressions)... | [
0.0636155754327774,
0.34096717834472656,
0.4749894142150879,
0.14200690388679504,
-0.34528040885925293,
0.7126264572143555,
0.4645498991012573,
0.3487395644187927,
0.8558652400970459,
-0.04921488091349602,
0.22594480216503143,
-0.34787309169769287,
0.8475483655929565,
-1.2207560539245605,
... |
func (o SysbenchSpecPodSchedulingAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressionsOutput) Values() pulumi.StringArrayOutput {
return o.ApplyT(func(v SysbenchSpecPodSchedulingAffinityPodAntiAffinityRequiredDuringSchedulingIgnoredDuringExecutionLabelSelectorMatchExpressio... | [
-0.24207563698291779,
0.39588552713394165,
0.5199790000915527,
0.3234134912490845,
1.3717926740646362,
0.1948380023241043,
-0.3792605996131897,
-0.4018850028514862,
0.523021399974823,
0.0022199475206434727,
-0.5583860874176025,
0.24825523793697357,
0.5902472138404846,
-0.009279193356633186... |
func (o SysbenchSpecPodSchedulingTolerationsOutput) Effect() pulumi.StringPtrOutput {
return o.ApplyT(func(v SysbenchSpecPodSchedulingTolerations) *string { return v.Effect }).(pulumi.StringPtrOutput)
} | [
0.6192753911018372,
0.7913188338279724,
0.28408244252204895,
-0.4578067660331726,
0.9930463433265686,
0.8700567483901978,
0.43382591009140015,
-0.19741922616958618,
0.5657981038093567,
0.24311913549900055,
0.4548110365867615,
0.1535838395357132,
-0.027199020609259605,
-0.6568921804428101,
... |
func (o SysbenchSpecPodSchedulingTolerationsOutput) Key() pulumi.StringPtrOutput {
return o.ApplyT(func(v SysbenchSpecPodSchedulingTolerations) *string { return v.Key }).(pulumi.StringPtrOutput)
} | [
0.1670742928981781,
1.1076600551605225,
0.17209842801094055,
-0.5339796543121338,
0.9425821900367737,
0.5555400252342224,
0.22748437523841858,
-0.538920521736145,
-0.23907437920570374,
0.789830207824707,
0.444637656211853,
0.12507520616054535,
-0.267703652381897,
-0.878217339515686,
-0.0... |
func (o SysbenchSpecPodSchedulingTolerationsOutput) Operator() pulumi.StringPtrOutput {
return o.ApplyT(func(v SysbenchSpecPodSchedulingTolerations) *string { return v.Operator }).(pulumi.StringPtrOutput)
} | [
0.10301051288843155,
0.729050874710083,
0.2497418075799942,
-0.25616422295570374,
-0.013035902753472328,
0.7705196142196655,
0.5539613962173462,
0.18030987679958344,
0.2922881245613098,
0.2855006754398346,
0.484086811542511,
-0.17103606462478638,
0.34246939420700073,
-0.945622444152832,
... |
func (o SysbenchSpecPodSchedulingTolerationsOutput) TolerationSeconds() pulumi.IntPtrOutput {
return o.ApplyT(func(v SysbenchSpecPodSchedulingTolerations) *int { return v.TolerationSeconds }).(pulumi.IntPtrOutput)
} | [
1.2445695400238037,
1.3030906915664673,
0.3881836235523224,
-0.27903905510902405,
-0.016010494902729988,
0.2669280171394348,
0.8850169777870178,
-0.49090373516082764,
-0.07218264043331146,
0.6543160080909729,
-0.07732272148132324,
0.3555169403553009,
-0.02637876570224762,
-0.61132818460464... |
func (o SysbenchSpecPodSchedulingTolerationsOutput) Value() pulumi.StringPtrOutput {
return o.ApplyT(func(v SysbenchSpecPodSchedulingTolerations) *string { return v.Value }).(pulumi.StringPtrOutput)
} | [
0.6024772524833679,
1.0361824035644531,
0.19609488546848297,
-0.643040120601654,
1.0054529905319214,
0.7097060680389404,
0.26565420627593994,
-0.8100605010986328,
0.07616263628005981,
0.7367992401123047,
0.6443359851837158,
0.17805689573287964,
0.2756026089191437,
-0.6904124021530151,
0.... |
func (o SysbenchSpecResourcesOutput) Limits() pulumi.StringMapOutput {
return o.ApplyT(func(v SysbenchSpecResources) map[string]string { return v.Limits }).(pulumi.StringMapOutput)
} | [
0.5108756422996521,
-0.6634702086448669,
0.5055240988731384,
-0.8206316828727722,
0.7674325108528137,
-0.026190362870693207,
-0.18891245126724243,
0.4775637090206146,
0.34755054116249084,
0.08822987228631973,
-1.0785197019577026,
-0.10432016849517822,
0.3907928466796875,
-0.625168681144714... |
func (o SysbenchSpecResourcesOutput) Requests() pulumi.StringMapOutput {
return o.ApplyT(func(v SysbenchSpecResources) map[string]string { return v.Requests }).(pulumi.StringMapOutput)
} | [
-0.15042492747306824,
-0.6392120122909546,
0.41246095299720764,
-0.6381606459617615,
1.3356367349624634,
-0.2436048686504364,
-0.19597777724266052,
-0.16984862089157104,
0.2976692020893097,
-0.3591153621673584,
-0.8174487948417664,
0.22143207490444183,
0.4911363124847412,
-0.70903778076171... |
func (o SysbenchSpecResourcesPtrOutput) Limits() pulumi.StringMapOutput {
return o.ApplyT(func(v *SysbenchSpecResources) map[string]string {
if v == nil {
return nil
}
return v.Limits
}).(pulumi.StringMapOutput)
} | [
0.4658104479312897,
-0.6481208205223083,
0.5232855081558228,
-0.7564212083816528,
0.9595275521278381,
-0.13769449293613434,
-0.2060166597366333,
0.1784949004650116,
0.4952414929866791,
0.06535229086875916,
-1.1301151514053345,
-0.110245481133461,
0.1960737556219101,
-0.5340287685394287,
... |
func (o SysbenchSpecResourcesPtrOutput) Requests() pulumi.StringMapOutput {
return o.ApplyT(func(v *SysbenchSpecResources) map[string]string {
if v == nil {
return nil
}
return v.Requests
}).(pulumi.StringMapOutput)
} | [
-0.0981537476181984,
-0.6860244870185852,
0.40000057220458984,
-0.5759572982788086,
1.548412561416626,
-0.3188231289386749,
-0.2172216773033142,
-0.42742618918418884,
0.3915107250213623,
-0.29297971725463867,
-0.9008952975273132,
0.16360217332839966,
0.22822484374046326,
-0.589229166507721... |
func (o SysbenchStatusOutput) Completed() pulumi.BoolOutput {
return o.ApplyT(func(v SysbenchStatus) bool { return v.Completed }).(pulumi.BoolOutput)
} | [
0.6695846319198608,
0.27587270736694336,
0.5777875185012817,
0.9445485472679138,
0.3990556001663208,
0.8026033639907837,
0.545995831489563,
0.2490156888961792,
0.1307896375656128,
0.139440655708313,
-1.350041389465332,
0.366498202085495,
-0.2993483543395996,
-0.1284288465976715,
-0.74284... |
func (o SysbenchStatusOutput) Running() pulumi.BoolOutput {
return o.ApplyT(func(v SysbenchStatus) bool { return v.Running }).(pulumi.BoolOutput)
} | [
0.305584579706192,
-0.07233964651823044,
0.6726146340370178,
0.9386646747589111,
0.9210188388824463,
1.0866775512695312,
-0.09458133578300476,
1.0259805917739868,
-0.19523964822292328,
-0.03079117089509964,
-1.417657732963562,
0.801831841468811,
-0.6903055906295776,
-0.7049732804298401,
... |
func (o SysbenchStatusPtrOutput) Completed() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *SysbenchStatus) *bool {
if v == nil {
return nil
}
return &v.Completed
}).(pulumi.BoolPtrOutput)
} | [
0.6100782155990601,
0.1396733820438385,
0.5775026679039001,
0.8578064441680908,
0.5521923899650574,
0.5861966013908386,
0.4805556833744049,
0.15388353168964386,
0.26695072650909424,
0.40101388096809387,
-1.5110318660736084,
0.165831059217453,
-0.28971269726753235,
-0.10034476220607758,
-... |
func (o SysbenchStatusPtrOutput) Running() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *SysbenchStatus) *bool {
if v == nil {
return nil
}
return &v.Running
}).(pulumi.BoolPtrOutput)
} | [
0.27995362877845764,
-0.14420363306999207,
0.6434056758880615,
0.91761714220047,
0.9251742959022522,
0.8515127897262573,
-0.16127794981002808,
0.8786678910255432,
-0.012066627852618694,
0.18502233922481537,
-1.4637266397476196,
0.621907114982605,
-0.8402426242828369,
-0.7760361433029175,
... |
func primeGenerator() chan int64 {
c := make(chan int64)
go func() {
c <- 2
for i := int64(3); ; i += 2 {
if isPrime(i) {
c <- i
}
}
}()
return c
} | [
-0.8966265320777893,
0.2846151888370514,
0.8649720549583435,
-0.33633431792259216,
-0.5745187997817993,
0.2025168240070343,
-0.25885850191116333,
-0.2309432178735733,
0.012572487816214561,
-0.7151592969894409,
0.08455364406108856,
-0.18996348977088928,
-1.246705412864685,
0.581375181674957... |
func isPrime(num int64) bool {
if num == 2 { // If the number is two it is the one prime even number
return true
}
if num%2 == 0 { // even numbers cannot be prime
return false
}
// start at 3 and increment by 2 since primes > 2 aren't even
for i := int64(3); i*i <= num; i += 2 {
if num%i == 0 {
return ... | [
-1.232179045677185,
1.0717991590499878,
0.7976515889167786,
1.0008230209350586,
-0.2420385479927063,
-0.015289444476366043,
-0.6917381286621094,
-0.039568424224853516,
1.4039480686187744,
-0.4544738233089447,
-0.15122021734714508,
-0.2810599207878113,
-1.253607153892517,
0.3648646175861358... |
func MyGreetHandler(w http.ResponseWriter, r *http.Request) {
GreetVN(w, "Anh")
} | [
-0.10639918595552444,
-0.2654189467430115,
0.4185859262943268,
-0.23844799399375916,
-0.9487832188606262,
1.074428677558899,
-0.7441498041152954,
0.0038073293399065733,
-0.41939300298690796,
-0.10568714886903763,
-0.2986469268798828,
0.19590242207050323,
-0.7169021964073181,
0.675315141677... |
func GreetVN(writer io.Writer, name string) {
str := Hello(name, "VI")
fmt.Fprintf(writer, str)
} | [
0.4427201747894287,
-0.6766271591186523,
0.377031147480011,
-0.19852183759212494,
-0.3918662965297699,
-0.17745482921600342,
-0.46557655930519104,
-0.21414661407470703,
-0.3025076687335968,
-0.22981341183185577,
-0.9202492833137512,
0.5088455677032471,
0.3905581533908844,
0.094242744147777... |
func Hello(name string, language string) string {
if name == "" {
name = "World"
}
prefix := greetingPrefix(language)
return fmt.Sprintf(prefix, name)
} | [
0.7458488345146179,
0.10478755086660385,
0.6058852076530457,
-0.6524373292922974,
-1.0084017515182495,
0.3575776219367981,
-1.2200579643249512,
0.21367040276527405,
-1.1833645105361938,
0.6918656229972839,
-0.30358630418777466,
0.35679537057876587,
0.30424579977989197,
0.2497594803571701,
... |
func Add(a, b int) (rs int) {
rs = a + b
return
} | [
-0.2680695354938507,
-0.17461667954921722,
0.521586537361145,
-0.6571645736694336,
-0.10864169150590897,
0.15102098882198334,
-0.02390824630856514,
-0.3971402049064636,
0.5478094220161438,
-0.2156527042388916,
0.46325358748435974,
1.3391402959823608,
-0.7736207246780396,
0.0446411222219467... |
func Repeat(input string, repeatCount int) (rs string) {
for i := 0; i < repeatCount; i++ {
rs += input
}
return
} | [
-0.15077517926692963,
0.5736235976219177,
0.5045089721679688,
-0.06990062445402145,
-0.6635538339614868,
0.22114883363246918,
0.1517644226551056,
-0.37359482049942017,
-0.5354658365249634,
-0.42548438906669617,
-0.1422823965549469,
0.5103786587715149,
-0.6312093734741211,
-0.90104675292968... |
func Sum(numbers []int) (rs int) {
for _, number := range numbers {
rs += number
}
return
} | [
-0.7613816261291504,
0.0899142324924469,
0.31894150376319885,
0.0634351521730423,
0.5100164413452148,
-0.013882851228117943,
0.664568305015564,
-0.5045421719551086,
0.6649073362350464,
-0.13119013607501984,
-0.6179192066192627,
0.2802860736846924,
-0.3527434170246124,
0.16482216119766235,
... |
func SumAll(numbersToSum ...[]int) (rs []int) {
for _, numbers := range numbersToSum {
rs = append(rs, Sum(numbers)) // NOTE: Create new slice every loop.
}
return rs
} | [
0.09232939034700394,
-0.31335219740867615,
0.7001738548278809,
1.2006100416183472,
0.49268025159835815,
0.7396812438964844,
-0.23555631935596466,
0.26344034075737,
0.46036839485168457,
-0.3405464291572571,
-0.22903305292129517,
0.6462371349334717,
-0.011260036379098892,
0.9223349094390869,... |
func SumAllTails(numbersToSum ...[]int) (rs []int) {
for _, numbers := range numbersToSum {
if len(numbers) <= 0 {
rs = append(rs, 0)
} else {
tail := numbers[1:]
rs = append(rs, Sum(tail))
}
}
return rs
} | [
0.5083824992179871,
0.018233491107821465,
0.82583087682724,
0.6481447219848633,
0.7605087161064148,
0.3672754764556885,
-0.22029398381710052,
0.043165214359760284,
0.5851640701293945,
-1.0976675748825073,
-0.3640124797821045,
0.8517926335334778,
-0.1286652684211731,
1.2814537286758423,
0... |
func Perimeter(rectangle Rectangle) (p float64) {
if rectangle.Width <= 0 || rectangle.Height <= 0 {
return 0.0
}
return 2 * (rectangle.Width + rectangle.Height)
} | [
-0.018102869391441345,
-0.5447250008583069,
0.589996337890625,
0.2510410249233246,
-0.16477063298225403,
-0.5134205222129822,
-0.27262982726097107,
-0.35987767577171326,
0.7928789258003235,
0.26485949754714966,
0.7651598453521729,
-1.0863059759140015,
-0.7660667300224304,
0.331753432750701... |
func (r *Wallet) Deposit(amount Bitcoin) {
r.balance += amount
} | [
0.7289062142372131,
-0.15889513492584229,
0.4917091131210327,
-0.9560750126838684,
0.2676686644554138,
0.912595272064209,
-0.07716681808233261,
-1.1625466346740723,
0.11182808130979538,
-0.2942125201225281,
-0.29227423667907715,
-0.5950237512588501,
-0.40531912446022034,
1.2784252166748047... |
func (r *Wallet) Widthdraw(amount Bitcoin) error {
if r.balance < amount {
return ErrInsufficientFunds
}
r.balance -= amount
return nil
} | [
0.35825735330581665,
0.7122687697410583,
0.7808100581169128,
-1.4468913078308105,
0.19277969002723694,
0.5541237592697144,
-0.04840254411101341,
-0.7080920338630676,
1.1619876623153687,
-1.4081528186798096,
0.3188282251358032,
-0.16404280066490173,
-0.31431689858436584,
0.5635568499565125,... |
func (r *Wallet) Balance() Bitcoin {
return r.balance
} | [
0.7872998714447021,
-0.5853824615478516,
0.1804119497537613,
-0.350618451833725,
0.8916991353034973,
-0.15599891543388367,
-0.6793662905693054,
-1.3120938539505005,
0.7684459686279297,
-0.006360756698995829,
0.6519303917884827,
0.21027736365795135,
-1.214601755142212,
0.7482514977455139,
... |
func (r Dictionary) Search(word string) (string, error) {
if word == "" {
return "", ErrKeyWordEmpty
}
definition, ok := r[word]
if !ok {
return "", ErrWordNotFound
}
return definition, nil
} | [
0.059035774320364,
1.0079514980316162,
0.399117112159729,
0.19780777394771576,
-0.8201795220375061,
0.10051339864730835,
-0.09274084120988846,
-0.39343181252479553,
-0.07936351001262665,
0.5250845551490784,
0.2755535840988159,
0.021883876994252205,
-0.5369272232055664,
0.891391932964325,
... |
func (r Dictionary) Add(word string, definition string) error {
_, err := r.Search(word)
switch err {
case ErrWordNotFound:
r[word] = definition
case nil:
return ErrKeyWordDuplicate
default:
return err
}
return nil
} | [
-0.19884821772575378,
-0.02039189450442791,
0.5594379305839539,
0.3045653998851776,
0.1921255737543106,
0.24947166442871094,
-1.0270830392837524,
0.13720153272151947,
-0.2795092761516571,
0.8918201327323914,
0.261973112821579,
0.39969876408576965,
-0.5587145090103149,
1.0113590955734253,
... |
func (r Dictionary) Update(word string, definition string) error {
_, err := r.Search(word)
switch err {
case ErrWordNotFound:
return ErrKeyWordNotExist
case nil:
r[word] = definition
default:
return err
}
return nil
} | [
-0.1123502254486084,
-0.520828366279602,
0.5011032223701477,
0.15540973842144012,
-0.3536246418952942,
-0.08040411025285721,
-1.084694743156433,
0.14821457862854004,
-0.46223536133766174,
1.1959089040756226,
0.3161638081073761,
0.3659500777721405,
-0.8466057777404785,
0.5998823642730713,
... |
func (r Dictionary) Delete(word string) {
delete(r, word)
} | [
0.5954566597938538,
0.209819957613945,
0.024145694449543953,
-0.5958814024925232,
-0.6647319793701172,
0.17440705001354218,
0.038236699998378754,
0.9594724178314209,
0.1728174090385437,
0.8509244918823242,
-0.01719890907406807,
0.0833328440785408,
-1.2376899719238281,
0.752906084060669,
... |
func (r RomanNumeralList) ValueOf(symbol string) int {
for _, val := range r {
if val.Symbol == symbol {
return val.Value
}
}
return 0
} | [
-0.4140510857105255,
0.16870367527008057,
0.4699092209339142,
-0.39651718735694885,
-0.10004087537527084,
-0.7324985265731812,
0.10064038634300232,
-0.23302792012691498,
0.4931621849536896,
0.7242723703384399,
-0.5270934104919434,
-0.22977401316165924,
-0.06639125943183899,
0.7124651670455... |
func RomanNumerals(num int) string {
var rs strings.Builder
for _, n := range allRomanNumerals {
for num >= n.Value {
rs.WriteString(n.Symbol)
num -= n.Value
}
}
return rs.String()
} | [
-0.5225096344947815,
-0.14172613620758057,
0.2717866599559784,
-1.472119688987732,
-0.6731327772140503,
0.6441009044647217,
-0.4473194181919098,
-1.1514867544174194,
-0.0326060950756073,
0.14525353908538818,
-0.08427110314369202,
1.0306881666183472,
-0.8681154251098633,
-0.6181744337081909... |
func ConvertingToArabic(roman string) int {
total := 0
for range roman {
total++
}
return total
} | [
-0.24824635684490204,
-0.38757628202438354,
0.42356714606285095,
-0.05127489194273949,
-0.6572743058204651,
0.23292163014411926,
-0.04907562956213951,
-0.9853271245956421,
-0.06513494998216629,
0.4501429796218872,
-0.23674315214157104,
-0.03665386885404587,
0.36568185687065125,
-0.91667288... |
func CheckDetector(ctx context.Context, detectorID string, sfx *client.SignalFx) ([]*types.Result, error) {
det := getGlobalCache().getDetector(detectorID)
if det == nil {
if sfx == nil {
return nil, types.ErrMissingClient
}
d, err := sfx.GetDetectorByID(ctx, detectorID)
if err != nil {
return nil, err
... | [
-0.2368772327899933,
-0.05634864419698715,
0.4604471027851105,
0.49833616614341736,
-0.007476223167032003,
-0.1386190801858902,
-0.03677263855934143,
-0.11306361854076385,
0.4634542763233185,
0.5361841917037964,
0.15413248538970947,
0.2225567102432251,
-0.4785100519657135,
1.78826177120208... |
func NewStringProperty(name string, value string) Property {
p := stringProperty{
name: name,
value: value,
}
return p
} | [
0.4538482427597046,
-0.8857603669166565,
0.13091231882572174,
-0.41771891713142395,
-1.5366194248199463,
0.377682626247406,
-0.49015963077545166,
-0.1749756634235382,
-0.054491180926561356,
1.1629056930541992,
-1.091401219367981,
0.016005869954824448,
-0.8936856389045715,
-1.15477836132049... |
func NewVersionProperty(name string, value string) Property {
p := versionProperty{
stringProperty: stringProperty{
name: name,
value: value,
},
}
return p
} | [
0.38947078585624695,
-1.552431583404541,
0.2096487283706665,
0.21220140159130096,
-1.478719711303711,
0.7726320028305054,
-0.6901377439498901,
-0.46221184730529785,
0.08451854437589645,
1.6948318481445312,
-1.0304768085479736,
-0.055790722370147705,
-0.5504792928695679,
-1.141072154045105,... |
func (p stringProperty) Name() string {
return p.name
} | [
-0.2308555394411087,
-1.665748953819275,
0.3482585847377777,
0.016552800312638283,
-0.8964326977729797,
0.6930578351020813,
-0.2858886122703552,
-0.5367416143417358,
-0.42461857199668884,
1.0036312341690063,
0.11088301241397858,
-0.06129642575979233,
-0.5362750887870789,
-1.557587146759033... |
func (p stringProperty) Value() (string, error) {
return p.value, nil
} | [
0.22812393307685852,
-1.0279380083084106,
0.001230450812727213,
0.3131316304206848,
0.20075277984142303,
0.7710270285606384,
-0.025738466531038284,
-0.8804221153259277,
-0.07319775968790054,
0.18531686067581177,
0.9410513043403625,
0.363410085439682,
-0.6562786102294922,
-1.199569463729858... |
func (p stringProperty) CompareTo(other string) (int, error) {
value := p.value
if value < other {
return -1, nil
}
if value > other {
return 1, nil
}
return 0, nil
} | [
0.05212336406111717,
-0.9663679599761963,
0.7420747876167297,
-0.7572897672653198,
-0.16410502791404724,
-0.47057271003723145,
-0.4121994376182556,
-0.7279379963874817,
-0.6557213664054871,
-0.14714285731315613,
0.16287827491760254,
-0.022882821038365364,
-1.0005744695663452,
-0.2045808881... |
func (p stringProperty) Validate(string) error {
return nil
} | [
0.6490165591239929,
-0.9803311228752136,
0.3188208043575287,
0.22789649665355682,
-0.1512061208486557,
0.5942412614822388,
0.12003715336322784,
-0.5875797271728516,
-0.16043898463249207,
-0.5233442187309265,
0.3887456953525543,
0.05323340371251106,
-1.45456063747406,
-1.3973978757858276,
... |
func (p stringProperty) String() string {
v, err := p.Value()
if err != nil {
return fmt.Sprintf("invalid %v: %v", p.name, err)
}
return fmt.Sprintf("%v=%v", p.name, v)
} | [
0.008472412824630737,
-1.5784802436828613,
0.014375187456607819,
-0.5610461831092834,
-0.7327877283096313,
0.6416792869567871,
0.06142449751496315,
-0.8914296627044678,
-0.2724614143371582,
0.332582950592041,
0.38706931471824646,
0.5702561140060425,
-0.26533976197242737,
-0.742757022380828... |
func (p versionProperty) CompareTo(other string) (int, error) {
if err := p.Validate(other); err != nil {
return 0, fmt.Errorf("invailid value for %v: %v", p.name, err)
}
vValue := ensurePrefix(p.value, "v")
vOther := ensurePrefix(other, "v")
return semver.Compare(vValue, vOther), nil
} | [
-0.015225894749164581,
-0.9167247414588928,
0.731070339679718,
-0.24458058178424835,
-0.35387685894966125,
0.010014520026743412,
-0.22367817163467407,
-0.5254655480384827,
-0.22616402804851532,
0.5919762253761292,
-0.19272562861442566,
0.02384854666888714,
-0.43746450543403625,
0.148669421... |
func (p versionProperty) Validate(value string) error {
if !semver.IsValid(ensurePrefix(value, "v")) {
return fmt.Errorf("invailid value %v; expected a valid version string", value)
}
return nil
} | [
0.6040799021720886,
-0.7424204349517822,
0.1529514342546463,
0.5369762182235718,
-0.4864763617515564,
1.0950305461883545,
-0.1194595918059349,
-0.3173724114894867,
0.0665283277630806,
1.0674329996109009,
0.4230195879936218,
-0.5302417278289795,
-0.5323355197906494,
-0.3209684193134308,
0... |
func NewFileSystem(ctrl *gomock.Controller) *FileSystem {
mock := &FileSystem{ctrl: ctrl}
mock.recorder = &FileSystemMockRecorder{mock}
return mock
} | [
0.24092330038547516,
0.024664461612701416,
0.210487499833107,
0.319822758436203,
0.714293897151947,
-0.4332244396209717,
0.2982751131057739,
-0.7611420154571533,
0.6642324924468994,
-1.0697178840637207,
-0.4574032127857208,
-0.37287473678588867,
-0.27051278948783875,
1.059172511100769,
-... |
func (m *FileSystem) EXPECT() *FileSystemMockRecorder {
return m.recorder
} | [
0.16661891341209412,
-0.15742476284503937,
0.32358258962631226,
0.33568304777145386,
0.27946779131889343,
-0.098551906645298,
-0.026402341201901436,
0.011615932919085026,
0.3412773609161377,
-1.1197750568389893,
1.0071468353271484,
0.4000757038593292,
-0.45646631717681885,
0.97898608446121... |
func (m *FileSystem) Remove(file string) error {
ret := m.ctrl.Call(m, "Remove", file)
ret0, _ := ret[0].(error)
return ret0
} | [
-0.45846861600875854,
-0.36175647377967834,
0.3933037519454956,
0.7680217623710632,
0.6261669993400574,
0.003921642899513245,
0.6981664299964905,
-0.23956438899040222,
-0.5320155024528503,
-0.18217502534389496,
-0.33968499302864075,
-0.9540287256240845,
-0.9583628177642822,
1.5535794496536... |
func (mr *FileSystemMockRecorder) Remove(file interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Remove", reflect.TypeOf((*FileSystem)(nil).Remove), file)
} | [
-0.45481055974960327,
0.3393862545490265,
0.5697344541549683,
0.4376511871814728,
-0.3701517879962921,
-0.02521209605038166,
-0.1727452129125595,
-0.274745911359787,
0.7956079840660095,
0.6062118411064148,
0.4670143127441406,
0.014373417012393475,
-1.193000316619873,
1.731033205986023,
0... |
func (m *FileSystem) HomeDir() (string, error) {
ret := m.ctrl.Call(m, "HomeDir")
ret0, _ := ret[0].(string)
ret1, _ := ret[1].(error)
return ret0, ret1
} | [
-0.19668129086494446,
-0.948927104473114,
0.26136454939842224,
1.2454599142074585,
0.015419825911521912,
0.31878551840782166,
0.84478759765625,
-0.5280452966690063,
-0.5010634660720825,
-1.208788275718689,
0.026694197207689285,
-0.6950694918632507,
-1.001721739768982,
1.8651859760284424,
... |
func (mr *FileSystemMockRecorder) HomeDir() *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HomeDir", reflect.TypeOf((*FileSystem)(nil).HomeDir))
} | [
0.18885818123817444,
0.01808338239789009,
0.022129198536276817,
1.005218267440796,
-0.6564605236053467,
0.09185846894979477,
-0.27405545115470886,
-0.8134052157402039,
1.0325428247451782,
-0.30354270339012146,
1.1259088516235352,
0.4488207995891571,
-1.0931016206741333,
1.8908880949020386,... |
func (m *FileSystem) Open(file string) (io.Reader, error) {
ret := m.ctrl.Call(m, "Open", file)
ret0, _ := ret[0].(io.Reader)
ret1, _ := ret[1].(error)
return ret0, ret1
} | [
-1.1558806896209717,
-0.24224518239498138,
0.32125747203826904,
0.5473390221595764,
0.4136194586753845,
0.7715656161308289,
1.1856597661972046,
0.04069880023598671,
-1.067711591720581,
-0.3834857940673828,
-0.16290663182735443,
-1.197264313697815,
-0.37324997782707214,
0.9485909938812256,
... |
func (mr *FileSystemMockRecorder) Open(file interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Open", reflect.TypeOf((*FileSystem)(nil).Open), file)
} | [
-0.7433208227157593,
0.6965876221656799,
0.2764320969581604,
0.23538096249103546,
-0.38559678196907043,
0.9251669645309448,
0.39391669631004333,
0.014089702628552914,
0.2577384114265442,
0.23846744000911713,
0.6764901876449585,
0.30046379566192627,
-0.7180606126785278,
1.2112423181533813,
... |
func (m *FileSystem) Create(file string) (io.Writer, error) {
ret := m.ctrl.Call(m, "Create", file)
ret0, _ := ret[0].(io.Writer)
ret1, _ := ret[1].(error)
return ret0, ret1
} | [
-0.5183894634246826,
-0.10222846269607544,
0.1961100697517395,
1.2430393695831299,
1.3388783931732178,
0.38069939613342285,
1.162781000137329,
-0.9341412782669067,
-1.622531771659851,
-0.19524984061717987,
-0.02657484821975231,
-1.4255579710006714,
-0.12772949039936066,
1.7563632726669312,... |
func (mr *FileSystemMockRecorder) Create(file interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*FileSystem)(nil).Create), file)
} | [
-0.03494228422641754,
0.6630704998970032,
0.2722161114215851,
0.8175055384635925,
0.3603437840938568,
0.6752229928970337,
-0.3390941321849823,
-1.2864842414855957,
-0.3405306041240692,
0.4982411861419678,
0.9103410243988037,
-0.13232587277889252,
-0.5339294672012329,
2.139249801635742,
-... |
func (m *FileSystem) CreateDirIfNotExist(dir string) error {
ret := m.ctrl.Call(m, "CreateDirIfNotExist", dir)
ret0, _ := ret[0].(error)
return ret0
} | [
-0.14021103084087372,
-0.4399434030056,
0.25495219230651855,
0.08400050550699234,
1.5680551528930664,
0.1638564169406891,
0.7742882370948792,
-1.2102582454681396,
-0.9647610783576965,
0.014388993382453918,
-0.6139252781867981,
-0.4191955327987671,
-1.3253428936004639,
1.455077886581421,
... |
func (mr *FileSystemMockRecorder) CreateDirIfNotExist(dir interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateDirIfNotExist", reflect.TypeOf((*FileSystem)(nil).CreateDirIfNotExist), dir)
} | [
-0.1587550789117813,
-0.03038434311747551,
0.2260216921567917,
0.0986272320151329,
1.1179161071777344,
0.39828065037727356,
-0.31530699133872986,
-1.2299668788909912,
-0.07478979974985123,
0.6556814312934875,
0.2980577051639557,
0.3908790647983551,
-0.8260020017623901,
1.5503116846084595,
... |
func NewStack() *Stack {
return &Stack{}
} | [
0.4530617594718933,
0.13642582297325134,
0.03937060758471489,
1.0450835227966309,
-0.9515416026115417,
-0.7444746494293213,
0.6205960512161255,
-0.8633147478103638,
0.10816709697246552,
-0.5365800261497498,
-0.2539266049861908,
0.6885635852813721,
-0.053454432636499405,
-0.6296191215515137... |
func (s *Stack) Push(v interface{}) *Frame {
f := &Frame{
Value: v,
next: s.head,
}
s.head = f
s.size++
return f
} | [
-0.3896022140979767,
1.0598419904708862,
0.21939431130886078,
0.09350711107254028,
-1.0022543668746948,
-1.0278472900390625,
0.4433957636356354,
-0.9632566571235657,
0.8700319528579712,
-0.15545842051506042,
-1.2590712308883667,
0.8803552985191345,
-0.2914506196975708,
0.23464322090148926,... |
func (s *Stack) Pop() interface{} {
if s.head == nil {
return nil
}
f := s.head
s.head = s.head.next
s.size--
return f.Value
} | [
0.00355516723357141,
1.2768795490264893,
0.5978119969367981,
0.4534057676792145,
-0.8115079402923584,
-1.0991343259811401,
0.7217810153961182,
-0.4009329080581665,
0.16918475925922394,
0.507997989654541,
-1.1140587329864502,
-0.7133946418762207,
-0.5642773509025574,
-0.07381811738014221,
... |
func (s *Stack) Size() int {
return s.size
} | [
0.021755829453468323,
1.20984947681427,
0.18096676468849182,
0.00039540493162348866,
-0.42535915970802307,
-0.2975417673587799,
1.4712363481521606,
-0.05060012638568878,
0.011587784625589848,
-0.21552136540412903,
-1.1052405834197998,
-0.02434927225112915,
-0.5900079011917114,
0.7739608883... |
func (m *BuildDefinition) UnmarshalJSON(raw []byte) error {
// AO0
var aO0 BuildDefinitionReference
if err := swag.ReadJSON(raw, &aO0); err != nil {
return err
}
m.BuildDefinitionReference = aO0
// now for regular properties
var propsBuildDefinition struct {
BadgeEnabled bool `json:"badgeEnabled,omitempty"`... | [
-0.007979940623044968,
-0.7759017944335938,
0.7534054517745972,
-0.7286273241043091,
-0.07203755527734756,
-0.49987468123435974,
0.3323749005794525,
0.2261166274547577,
-0.004288529511541128,
0.4029556214809418,
-0.6611730456352234,
0.6446197628974915,
-0.38220205903053284,
0.2278599143028... |
func (m BuildDefinition) MarshalJSON() ([]byte, error) {
_parts := make([][]byte, 0, 1)
aO0, err := swag.WriteJSON(m.BuildDefinitionReference)
if err != nil {
return nil, err
}
_parts = append(_parts, aO0)
// now for regular properties
var propsBuildDefinition struct {
BadgeEnabled bool `json:"badgeEnabled... | [
0.2345781773328781,
-0.8003209829330444,
0.7927030920982361,
-0.09107022732496262,
0.3158006966114044,
-0.1690433919429779,
0.27432557940483093,
0.4414254128932953,
0.12212733179330826,
0.228549525141716,
-0.92238849401474,
0.8052387237548828,
-0.5342124104499817,
0.4089292883872986,
0.6... |
func (m *BuildDefinition) Validate(formats strfmt.Registry) error {
var res []error
// validation for a type composition with BuildDefinitionReference
if err := m.BuildDefinitionReference.Validate(formats); err != nil {
res = append(res, err)
}
if err := m.validateDemands(formats); err != nil {
res = append(... | [
0.3386419415473938,
-0.44047811627388,
0.6003462076187134,
0.2014884501695633,
0.7385733723640442,
0.34097638726234436,
0.8056108355522156,
-0.69647216796875,
-0.5323085784912109,
-0.4121919274330139,
-0.4167032241821289,
-0.1630847156047821,
-0.9501956701278687,
0.6029490232467651,
0.75... |
func Sum(input []float64) (sum float64) {
for _, v := range input {
var fuel float64
fuel += calculator(v, fuel)
sum += fuel
}
return sum
} | [
-1.0944651365280151,
-0.0028007652144879103,
0.29382914304733276,
0.9694867134094238,
0.1319853961467743,
-0.40653690695762634,
0.5505737066268921,
-0.5395991802215576,
-0.4671792685985565,
-0.45828303694725037,
0.16756603121757507,
-0.390148401260376,
-0.19805529713630676,
0.7470784187316... |
func (h *sentryWrapperHook) putServiceToTags(entry *logrus.Entry) *logrus.Entry {
serviceField, ok := entry.Data["service"]
if !ok {
// No 'service' field
return entry
}
serviceName, ok := serviceField.(string)
if !ok {
// Service field is not a string
return entry
}
serviceTag := raven.Tag{
Key: "... | [
0.049477867782115936,
0.8555722236633301,
0.39757803082466125,
-0.8870881795883179,
0.3756878077983856,
-0.26394325494766235,
-0.6692079901695251,
-0.6467037796974182,
-0.0571221262216568,
0.5004170536994934,
0.13531219959259033,
0.6772396564483643,
-0.48366478085517883,
0.7161986231803894... |
func acknowledgeMessage(wstream wstream.Stream, name string) {
packet := &wjson.CommPacketJson{
Time: 1323,
Type: "State",
Name: name,
Data: []float32{32.2323, 1222.22, 2323.11},
}
wstream.WriteCommPacketSync(packet)
} | [
0.17959854006767273,
-0.1252828687429428,
0.43799635767936707,
-1.7672456502914429,
-0.16449476778507233,
-0.1182406097650528,
-0.3362955152988434,
-0.14256946742534637,
0.10048400610685349,
1.0276718139648438,
-0.5608511567115784,
0.5308041572570801,
-0.6075869202613831,
0.903762698173523... |
func checkError(err error) {
if err != nil {
fmt.Fprintf(os.Stderr, "Error: %s", err.Error())
}
} | [
0.5722102522850037,
-0.27290964126586914,
0.35449308156967163,
0.4754769206047058,
0.10086797177791595,
0.43312200903892517,
-0.330594539642334,
0.5680509209632874,
0.2529696226119995,
0.45185574889183044,
0.40308666229248047,
0.8566384315490723,
0.15981613099575043,
1.1830486059188843,
... |
func (v Verifier) Verify(ctx context.Context, signedMsg *cryptopb.SignedMessage,
associatedData ...[]byte) (*signed.Message, error) {
l := metrics.VerifierLabels{}
hdr, err := signed.ExtractUnverifiedHeader(signedMsg)
if err != nil {
metrics.Verifier.Verify(l.WithResult(metrics.ErrValidate)).Inc()
return nil, ... | [
0.4392525851726532,
-0.3315926790237427,
0.6294958591461182,
0.6118834614753723,
0.4931233823299408,
-0.3718898892402649,
0.30917081236839294,
-0.33835092186927795,
-0.2566964328289032,
-0.01207202672958374,
-0.6863678097724915,
1.1909196376800537,
-0.4194676876068115,
1.0045418739318848,
... |
func (r *Redis) TryLock(key string, lrfn LockResourceFunc, lrfnIn []interface{}, opts ...LockOptions) (lrfnOut []interface{}, err error) {
l := newLockOption()
for _, opt := range opts {
opt(l)
}
for i := 0; i < l.retryTimes; i++ {
reply, err := r.SetNX(key, 1, l.autoExpire)
if err != nil || !reply {
time... | [
-0.01938091777265072,
0.6138786673545837,
0.8559214472770691,
0.48148903250694275,
0.3385567367076874,
-0.6358429789543152,
-0.4629851281642914,
-0.7536461353302002,
0.20253270864486694,
-0.10624957084655762,
0.012948808260262012,
0.08785131573677063,
-0.23016822338104248,
-0.1307204067707... |
func Execute(ctx context.Context) {
if err := NewPgcmCommand(ctx).Execute(); err != nil {
logger.Log("event", "execute.error", "error", err, "msg", "execution failed, exiting with error")
os.Exit(1)
}
} | [
0.33603519201278687,
-0.4886208474636078,
0.815988302230835,
0.8817970156669617,
1.1713519096374512,
0.7129432559013367,
-0.5991377234458923,
-0.8031096458435059,
-0.9758149981498718,
0.02451845444738865,
0.36476409435272217,
-0.2712253928184509,
-0.6469349265098572,
-0.10868081450462341,
... |
func computeConfigHash(content []byte) float64 {
sum := md5.Sum(content)
var bytes = make([]byte, 8)
copy(bytes, sum[0:6])
return float64(binary.LittleEndian.Uint64(bytes))
} | [
0.18530109524726868,
0.6366997361183167,
0.3510723114013672,
0.6991183161735535,
0.4593861401081085,
-0.2872314453125,
0.03390154242515564,
1.0456842184066772,
-0.020978057757019997,
0.8193697333335876,
-0.5516714453697205,
-0.37954413890838623,
-0.592065691947937,
0.7015867829322815,
0.... |
func main() {
var res uint64
var N int
fmt.Scanf("%v", &N)
x := make([]uint64, N)
y := make([]interface{}, len(x))
for i := range x {
y[i] = &x[i]
}
fmt.Scanln(y...)
for _,val := range x {
res += val
}
fmt.Printf("%d", res)
} | [
-0.42000484466552734,
0.9151856303215027,
0.717063307762146,
0.19156944751739502,
-0.09701626747846603,
-0.7184637188911438,
0.3009163737297058,
-0.3285893499851227,
0.305606871843338,
-0.5852709412574768,
-0.5263123512268066,
-0.03814128786325455,
0.3913686275482178,
0.049558669328689575,... |
func main() {
fmt.Println(first, second)
} | [
0.6941753029823303,
-1.0496876239776611,
0.6466925740242004,
0.3854256272315979,
0.7901515960693359,
0.22590823471546173,
0.18847763538360596,
-0.5773702263832092,
-1.449173092842102,
-1.1044230461120605,
-0.406145840883255,
1.2812167406082153,
0.13279177248477936,
0.2721709609031677,
-0... |
func RegisterSwitch(h bh.Hive, opts ...bh.AppOption) {
app := h.NewApp("Switch", opts...)
app.Handle(nom.PacketIn{}, LearningSwitch{})
} | [
-0.18015818297863007,
0.5529264211654663,
0.5405514240264893,
0.9383306503295898,
1.1232491731643677,
0.7992312908172607,
-0.892815351486206,
0.23662978410720825,
-0.012791386805474758,
-0.7159967422485352,
-1.300410270690918,
0.8259623050689697,
0.058952778577804565,
0.5087200999259949,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.