text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func Convert_v1beta1_ACMEIssuerDNS01ProviderCloudflare_To_acme_ACMEIssuerDNS01ProviderCloudflare(in *v1beta1.ACMEIssuerDNS01ProviderCloudflare, out *acme.ACMEIssuerDNS01ProviderCloudflare, s conversion.Scope) error {
return autoConvert_v1beta1_ACMEIssuerDNS01ProviderCloudflare_To_acme_ACMEIssuerDNS01ProviderCloudflare... | [
0.12643516063690186,
1.1567037105560303,
0.39981403946876526,
0.0980130061507225,
-0.5567166805267334,
0.16678668558597565,
-0.1472184956073761,
-0.0006472686072811484,
0.014627712778747082,
0.6794474720954895,
0.3975851237773895,
-0.07384470105171204,
-0.499601811170578,
0.506644964218139... |
func Convert_acme_ACMEIssuerDNS01ProviderCloudflare_To_v1beta1_ACMEIssuerDNS01ProviderCloudflare(in *acme.ACMEIssuerDNS01ProviderCloudflare, out *v1beta1.ACMEIssuerDNS01ProviderCloudflare, s conversion.Scope) error {
return autoConvert_acme_ACMEIssuerDNS01ProviderCloudflare_To_v1beta1_ACMEIssuerDNS01ProviderCloudflare... | [
0.049795594066381454,
1.0243251323699951,
0.48963454365730286,
0.07830531895160675,
-0.20174744725227356,
0.3707876205444336,
-0.3633463978767395,
0.06303182244300842,
0.12151742726564407,
0.5184422135353088,
0.28640443086624146,
-0.05040246248245239,
-0.4764633774757385,
0.440952241420745... |
func Convert_v1beta1_ACMEIssuerDNS01ProviderDigitalOcean_To_acme_ACMEIssuerDNS01ProviderDigitalOcean(in *v1beta1.ACMEIssuerDNS01ProviderDigitalOcean, out *acme.ACMEIssuerDNS01ProviderDigitalOcean, s conversion.Scope) error {
return autoConvert_v1beta1_ACMEIssuerDNS01ProviderDigitalOcean_To_acme_ACMEIssuerDNS01Provider... | [
-0.6577630043029785,
0.38502129912376404,
0.4242347478866577,
-0.6039534211158752,
-0.9124594330787659,
0.35649365186691284,
0.26593053340911865,
0.17033539712429047,
1.1265168190002441,
0.5340734720230103,
0.24399523437023163,
1.176916241645813,
0.292123943567276,
0.37721288204193115,
0... |
func Convert_acme_ACMEIssuerDNS01ProviderDigitalOcean_To_v1beta1_ACMEIssuerDNS01ProviderDigitalOcean(in *acme.ACMEIssuerDNS01ProviderDigitalOcean, out *v1beta1.ACMEIssuerDNS01ProviderDigitalOcean, s conversion.Scope) error {
return autoConvert_acme_ACMEIssuerDNS01ProviderDigitalOcean_To_v1beta1_ACMEIssuerDNS01Provider... | [
-0.5959112644195557,
0.25269633531570435,
0.5462807416915894,
-0.4522651433944702,
-0.602365255355835,
0.4738261103630066,
0.051041796803474426,
0.21187914907932281,
1.229059100151062,
0.42877036333084106,
0.14222075045108795,
1.3941818475723267,
0.2363053560256958,
0.2665899395942688,
0... |
func Convert_v1beta1_ACMEIssuerDNS01ProviderRFC2136_To_acme_ACMEIssuerDNS01ProviderRFC2136(in *v1beta1.ACMEIssuerDNS01ProviderRFC2136, out *acme.ACMEIssuerDNS01ProviderRFC2136, s conversion.Scope) error {
return autoConvert_v1beta1_ACMEIssuerDNS01ProviderRFC2136_To_acme_ACMEIssuerDNS01ProviderRFC2136(in, out, s)
} | [
0.41384318470954895,
0.4715280532836914,
0.329610139131546,
0.07706468552350998,
0.3030529022216797,
-0.6932053565979004,
-0.4360368251800537,
-0.10215573012828827,
0.8042932748794556,
0.3981325328350067,
0.09099093079566956,
-0.29611438512802124,
-0.3862653374671936,
0.4404587149620056,
... |
func Convert_acme_ACMEIssuerDNS01ProviderRFC2136_To_v1beta1_ACMEIssuerDNS01ProviderRFC2136(in *acme.ACMEIssuerDNS01ProviderRFC2136, out *v1beta1.ACMEIssuerDNS01ProviderRFC2136, s conversion.Scope) error {
return autoConvert_acme_ACMEIssuerDNS01ProviderRFC2136_To_v1beta1_ACMEIssuerDNS01ProviderRFC2136(in, out, s)
} | [
0.16361922025680542,
0.36362868547439575,
0.393783837556839,
0.059372592717409134,
0.7332973480224609,
-0.41966068744659424,
-0.6376062035560608,
-0.07666048407554626,
0.9781875014305115,
0.32724547386169434,
-0.010483067482709885,
-0.02820412814617157,
-0.27869850397109985,
0.395750761032... |
func Convert_v1beta1_ACMEIssuerDNS01ProviderRoute53_To_acme_ACMEIssuerDNS01ProviderRoute53(in *v1beta1.ACMEIssuerDNS01ProviderRoute53, out *acme.ACMEIssuerDNS01ProviderRoute53, s conversion.Scope) error {
return autoConvert_v1beta1_ACMEIssuerDNS01ProviderRoute53_To_acme_ACMEIssuerDNS01ProviderRoute53(in, out, s)
} | [
-0.9781054258346558,
0.6978909373283386,
0.058321885764598846,
0.5445107817649841,
-0.6670045852661133,
-0.091995470225811,
-0.005404251161962748,
0.5380697846412659,
0.9520285725593567,
0.7847573161125183,
0.6853205561637878,
0.42515119910240173,
-0.6527528166770935,
-0.309470534324646,
... |
func Convert_acme_ACMEIssuerDNS01ProviderRoute53_To_v1beta1_ACMEIssuerDNS01ProviderRoute53(in *acme.ACMEIssuerDNS01ProviderRoute53, out *v1beta1.ACMEIssuerDNS01ProviderRoute53, s conversion.Scope) error {
return autoConvert_acme_ACMEIssuerDNS01ProviderRoute53_To_v1beta1_ACMEIssuerDNS01ProviderRoute53(in, out, s)
} | [
-0.9929749369621277,
0.6276532411575317,
0.12061399221420288,
0.5999133586883545,
-0.2743871808052063,
0.2503098249435425,
-0.18582755327224731,
0.5986732840538025,
1.0292950868606567,
0.7225547432899475,
0.5141005516052246,
0.771729588508606,
-0.6856210231781006,
-0.31147584319114685,
0... |
func Convert_v1beta1_ACMEIssuerDNS01ProviderWebhook_To_acme_ACMEIssuerDNS01ProviderWebhook(in *v1beta1.ACMEIssuerDNS01ProviderWebhook, out *acme.ACMEIssuerDNS01ProviderWebhook, s conversion.Scope) error {
return autoConvert_v1beta1_ACMEIssuerDNS01ProviderWebhook_To_acme_ACMEIssuerDNS01ProviderWebhook(in, out, s)
} | [
0.5949808359146118,
0.4917687177658081,
0.25141099095344543,
0.5427426099777222,
-0.6896384954452515,
0.4966534972190857,
0.2623268663883209,
0.5649169683456421,
1.086879014968872,
0.6966139674186707,
0.37638214230537415,
0.40545549988746643,
0.04782743379473686,
0.19566598534584045,
-0.... |
func Convert_acme_ACMEIssuerDNS01ProviderWebhook_To_v1beta1_ACMEIssuerDNS01ProviderWebhook(in *acme.ACMEIssuerDNS01ProviderWebhook, out *v1beta1.ACMEIssuerDNS01ProviderWebhook, s conversion.Scope) error {
return autoConvert_acme_ACMEIssuerDNS01ProviderWebhook_To_v1beta1_ACMEIssuerDNS01ProviderWebhook(in, out, s)
} | [
0.5015819668769836,
0.37210357189178467,
0.3473236858844757,
0.5007776021957397,
-0.378206342458725,
0.6874500513076782,
0.08508417755365372,
0.5077714920043945,
1.1026301383972168,
0.49480026960372925,
0.3258683383464813,
0.43616169691085815,
0.033527057617902756,
0.1683388650417328,
0.... |
func Convert_v1beta1_ACMEIssuerStatus_To_acme_ACMEIssuerStatus(in *v1beta1.ACMEIssuerStatus, out *acme.ACMEIssuerStatus, s conversion.Scope) error {
return autoConvert_v1beta1_ACMEIssuerStatus_To_acme_ACMEIssuerStatus(in, out, s)
} | [
-0.19376404583454132,
-1.5135715007781982,
0.01248867902904749,
-0.11339136213064194,
-0.6863234043121338,
-0.41158053278923035,
-0.06595171242952347,
0.49042120575904846,
-0.14289020001888275,
0.6966708302497864,
-0.011562232859432697,
-0.17704731225967407,
-0.5397257804870605,
-0.2386706... |
func Convert_acme_ACMEIssuerStatus_To_v1beta1_ACMEIssuerStatus(in *acme.ACMEIssuerStatus, out *v1beta1.ACMEIssuerStatus, s conversion.Scope) error {
return autoConvert_acme_ACMEIssuerStatus_To_v1beta1_ACMEIssuerStatus(in, out, s)
} | [
-0.3297938406467438,
-1.6757844686508179,
0.2865275740623474,
-0.0325801707804203,
-0.6557375192642212,
0.0934458076953888,
-0.29615771770477295,
0.6785081624984741,
0.36852073669433594,
0.6680211424827576,
-0.07880058139562607,
0.26278138160705566,
-0.3429275453090668,
-0.4982772469520569... |
func Convert_v1beta1_AzureManagedIdentity_To_acme_AzureManagedIdentity(in *v1beta1.AzureManagedIdentity, out *acme.AzureManagedIdentity, s conversion.Scope) error {
return autoConvert_v1beta1_AzureManagedIdentity_To_acme_AzureManagedIdentity(in, out, s)
} | [
-0.44411006569862366,
-0.691946268081665,
0.387125700712204,
-0.23524931073188782,
0.11884090304374695,
0.4749934673309326,
0.19803763926029205,
0.3931877911090851,
0.5932590365409851,
0.3286781907081604,
0.5388516187667847,
0.0008062480483204126,
-0.328626424074173,
0.4104694724082947,
... |
func Convert_acme_AzureManagedIdentity_To_v1beta1_AzureManagedIdentity(in *acme.AzureManagedIdentity, out *v1beta1.AzureManagedIdentity, s conversion.Scope) error {
return autoConvert_acme_AzureManagedIdentity_To_v1beta1_AzureManagedIdentity(in, out, s)
} | [
-0.4265502989292145,
-0.7947972416877747,
0.46237269043922424,
-0.33740586042404175,
0.3830544352531433,
1.0166646242141724,
0.042838726192712784,
0.13030676543712616,
0.8737400770187378,
0.20057520270347595,
0.49731168150901794,
0.27975764870643616,
-0.1114509329199791,
0.0598857961595058... |
func Convert_v1beta1_CertificateDNSNameSelector_To_acme_CertificateDNSNameSelector(in *v1beta1.CertificateDNSNameSelector, out *acme.CertificateDNSNameSelector, s conversion.Scope) error {
return autoConvert_v1beta1_CertificateDNSNameSelector_To_acme_CertificateDNSNameSelector(in, out, s)
} | [
-0.40025612711906433,
0.2464035004377365,
0.10295779258012772,
-0.675469696521759,
-0.5980492234230042,
-0.4292213022708893,
0.3341083824634552,
-0.6698552370071411,
0.0679258182644844,
-0.06006111204624176,
-0.7298974990844727,
0.6057894229888916,
0.1596464216709137,
-0.21664060652256012,... |
func Convert_acme_CertificateDNSNameSelector_To_v1beta1_CertificateDNSNameSelector(in *acme.CertificateDNSNameSelector, out *v1beta1.CertificateDNSNameSelector, s conversion.Scope) error {
return autoConvert_acme_CertificateDNSNameSelector_To_v1beta1_CertificateDNSNameSelector(in, out, s)
} | [
-0.7829345464706421,
0.15942244231700897,
0.24725231528282166,
-0.7511070966720581,
-0.4474894106388092,
0.1518569141626358,
-0.058312609791755676,
-0.8210314512252808,
0.4402448832988739,
-0.23925210535526276,
-0.701540470123291,
0.6924500465393066,
0.3856585621833801,
-0.4484288990497589... |
func Convert_v1beta1_Challenge_To_acme_Challenge(in *v1beta1.Challenge, out *acme.Challenge, s conversion.Scope) error {
return autoConvert_v1beta1_Challenge_To_acme_Challenge(in, out, s)
} | [
-0.9161856174468994,
-0.7764317989349365,
0.11319132894277573,
-0.019530894234776497,
-0.25177013874053955,
-0.881295919418335,
0.6179810762405396,
0.2272738665342331,
-0.1451762616634369,
1.0128182172775269,
0.2887515723705292,
0.5364166498184204,
-0.03717793896794319,
0.00685938401147723... |
func Convert_acme_Challenge_To_v1beta1_Challenge(in *acme.Challenge, out *v1beta1.Challenge, s conversion.Scope) error {
return autoConvert_acme_Challenge_To_v1beta1_Challenge(in, out, s)
} | [
-0.47390055656433105,
-0.7303978204727173,
0.07908231765031815,
0.30845150351524353,
-0.4994347393512726,
-0.5174359679222107,
0.4309406578540802,
-0.14529931545257568,
0.5289580821990967,
0.9312912821769714,
0.5719041228294373,
0.7726094126701355,
0.3256692588329315,
-0.37756815552711487,... |
func Convert_v1beta1_ChallengeList_To_acme_ChallengeList(in *v1beta1.ChallengeList, out *acme.ChallengeList, s conversion.Scope) error {
return autoConvert_v1beta1_ChallengeList_To_acme_ChallengeList(in, out, s)
} | [
-0.5934489965438843,
-0.35263791680336,
0.2261803299188614,
0.27886825799942017,
0.23715946078300476,
-0.5218848586082458,
0.9505869150161743,
-0.24036498367786407,
-0.13214111328125,
1.1830800771713257,
-0.0883013978600502,
-0.33891379833221436,
0.30187997221946716,
-0.12807558476924896,
... |
func Convert_acme_ChallengeList_To_v1beta1_ChallengeList(in *acme.ChallengeList, out *v1beta1.ChallengeList, s conversion.Scope) error {
return autoConvert_acme_ChallengeList_To_v1beta1_ChallengeList(in, out, s)
} | [
-0.4368651211261749,
-0.5459036827087402,
0.23069046437740326,
0.5819852352142334,
0.11128713190555573,
-0.18662060797214508,
0.6467483639717102,
-0.5620934963226318,
0.5105554461479187,
0.9574083089828491,
-0.10014116764068604,
-0.17294062674045563,
0.6185003519058228,
-0.4011648297309875... |
func Convert_v1beta1_ChallengeSpec_To_acme_ChallengeSpec(in *v1beta1.ChallengeSpec, out *acme.ChallengeSpec, s conversion.Scope) error {
return autoConvert_v1beta1_ChallengeSpec_To_acme_ChallengeSpec(in, out, s)
} | [
-0.019163373857736588,
-0.2672397792339325,
0.25733956694602966,
-0.6831323504447937,
-0.17194335162639618,
-0.2804182469844818,
0.5167065262794495,
0.3088526129722595,
-0.4636765718460083,
1.0553815364837646,
0.4744423031806946,
0.42261743545532227,
0.8706099390983582,
-0.3890861868858337... |
func Convert_acme_ChallengeSpec_To_v1beta1_ChallengeSpec(in *acme.ChallengeSpec, out *v1beta1.ChallengeSpec, s conversion.Scope) error {
return autoConvert_acme_ChallengeSpec_To_v1beta1_ChallengeSpec(in, out, s)
} | [
0.19128531217575073,
-0.5063568353652954,
0.4071376323699951,
-0.5469598174095154,
-0.13863226771354675,
0.2574782967567444,
0.4196239411830902,
0.03340698406100273,
0.017628470435738564,
0.9531092047691345,
0.4828697144985199,
0.6748574376106262,
1.1034947633743286,
-0.774906575679779,
... |
func Convert_v1beta1_ChallengeStatus_To_acme_ChallengeStatus(in *v1beta1.ChallengeStatus, out *acme.ChallengeStatus, s conversion.Scope) error {
return autoConvert_v1beta1_ChallengeStatus_To_acme_ChallengeStatus(in, out, s)
} | [
-0.2083379030227661,
-0.4988742470741272,
0.016214052215218544,
-0.6293784379959106,
-0.18201451003551483,
-0.5086448788642883,
-0.10441390424966812,
0.2956392765045166,
-0.21087048947811127,
0.618708074092865,
-0.13752663135528564,
0.08659610152244568,
0.4044942557811737,
-0.4057941436767... |
func Convert_acme_ChallengeStatus_To_v1beta1_ChallengeStatus(in *acme.ChallengeStatus, out *v1beta1.ChallengeStatus, s conversion.Scope) error {
return autoConvert_acme_ChallengeStatus_To_v1beta1_ChallengeStatus(in, out, s)
} | [
-0.21985433995723724,
-0.7939434051513672,
0.17770257592201233,
-0.6510205864906311,
-0.09796005487442017,
0.10354781150817871,
-0.2693021297454834,
0.10949888080358505,
0.30960792303085327,
0.6613532304763794,
-0.07849305123090744,
0.4025295674800873,
0.6079864501953125,
-0.83980524539947... |
func Convert_v1beta1_Order_To_acme_Order(in *v1beta1.Order, out *acme.Order, s conversion.Scope) error {
return autoConvert_v1beta1_Order_To_acme_Order(in, out, s)
} | [
-0.824108898639679,
-0.5568134784698486,
0.24739472568035126,
0.053752679377794266,
-0.17001809179782867,
-0.9443264007568359,
0.15765976905822754,
0.3898075222969055,
-0.18555676937103271,
0.6430596709251404,
-0.0137159563601017,
0.7096791863441467,
0.14277692139148712,
0.2708806693553924... |
func Convert_acme_Order_To_v1beta1_Order(in *acme.Order, out *v1beta1.Order, s conversion.Scope) error {
return autoConvert_acme_Order_To_v1beta1_Order(in, out, s)
} | [
-0.4889228045940399,
-0.6415241956710815,
0.21329177916049957,
0.5120893716812134,
-0.32643574476242065,
-0.41559627652168274,
-0.1289212703704834,
-0.10000152140855789,
0.5412237644195557,
0.5415604710578918,
0.24311482906341553,
0.92032390832901,
0.6920554637908936,
-0.24702982604503632,... |
func Convert_v1beta1_OrderList_To_acme_OrderList(in *v1beta1.OrderList, out *acme.OrderList, s conversion.Scope) error {
return autoConvert_v1beta1_OrderList_To_acme_OrderList(in, out, s)
} | [
-0.8441295027732849,
-0.11646976321935654,
0.4932805895805359,
0.05540326610207558,
0.02817600779235363,
-0.36041462421417236,
1.1539605855941772,
-0.23926039040088654,
-0.15888841450214386,
1.3611551523208618,
0.5846570134162903,
0.33357974886894226,
0.0013475418090820312,
0.4232224822044... |
func Convert_acme_OrderList_To_v1beta1_OrderList(in *acme.OrderList, out *v1beta1.OrderList, s conversion.Scope) error {
return autoConvert_acme_OrderList_To_v1beta1_OrderList(in, out, s)
} | [
-0.7176303267478943,
-0.21425242722034454,
0.5302869081497192,
0.36532044410705566,
0.04315076023340225,
-0.039193350821733475,
0.7177287936210632,
-0.5552809238433838,
0.4970451295375824,
1.1315996646881104,
0.47992685437202454,
0.40839624404907227,
0.2971547245979309,
0.00148883904330432... |
func Convert_v1beta1_OrderSpec_To_acme_OrderSpec(in *v1beta1.OrderSpec, out *acme.OrderSpec, s conversion.Scope) error {
return autoConvert_v1beta1_OrderSpec_To_acme_OrderSpec(in, out, s)
} | [
-0.33671027421951294,
-0.2176448106765747,
0.5462096333503723,
-0.5574935078620911,
-0.3293531835079193,
-0.47757968306541443,
0.8084352612495422,
-0.10280970484018326,
-0.27312082052230835,
1.0445255041122437,
1.1337193250656128,
1.1729084253311157,
0.6138346195220947,
0.0821366012096405,... |
func Convert_acme_OrderSpec_To_v1beta1_OrderSpec(in *acme.OrderSpec, out *v1beta1.OrderSpec, s conversion.Scope) error {
return autoConvert_acme_OrderSpec_To_v1beta1_OrderSpec(in, out, s)
} | [
-0.1870478242635727,
-0.38258641958236694,
0.639262855052948,
-0.40366819500923157,
-0.27838650345802307,
0.07012549787759781,
0.5124794840812683,
-0.3815920352935791,
0.29640284180641174,
0.9509336352348328,
1.1127301454544067,
1.4089000225067139,
0.9130311012268066,
-0.29373595118522644,... |
func Convert_v1beta1_OrderStatus_To_acme_OrderStatus(in *v1beta1.OrderStatus, out *acme.OrderStatus, s conversion.Scope) error {
return autoConvert_v1beta1_OrderStatus_To_acme_OrderStatus(in, out, s)
} | [
-0.6936314702033997,
-0.6338570713996887,
0.34949246048927307,
-0.6086784601211548,
-0.18835972249507904,
-0.6167828440666199,
0.2321387231349945,
0.2957537770271301,
0.006146718747913837,
0.7969552874565125,
0.3200044631958008,
1.2569047212600708,
0.20054931938648224,
0.3050718307495117,
... |
func Convert_acme_OrderStatus_To_v1beta1_OrderStatus(in *acme.OrderStatus, out *v1beta1.OrderStatus, s conversion.Scope) error {
return autoConvert_acme_OrderStatus_To_v1beta1_OrderStatus(in, out, s)
} | [
-0.6836522817611694,
-0.9255300760269165,
0.4751221835613251,
-0.5507203340530396,
-0.12995649874210358,
0.02524808794260025,
-0.0773402750492096,
0.07934745401144028,
0.5445234179496765,
0.8369579315185547,
0.30295443534851074,
1.5505906343460083,
0.3869363069534302,
-0.14544981718063354,... |
func Logout(w http.ResponseWriter, r *http.Request) {
//Get user id of the session
ctx, cancel := context.WithTimeout(context.Background(), time.Second)
defer cancel()
cookie, err := r.Cookie("sessionId")
if err != nil || cookie.Value != "" {
token, _ := url.QueryUnescape(cookie.Value)
_, err = AuthClie... | [
-0.4386877417564392,
-0.7587156891822815,
0.5819818377494812,
-0.1608288735151291,
-0.5576480627059937,
-0.12641187012195587,
0.11733486503362656,
0.21330703794956207,
0.8100401163101196,
0.930907130241394,
0.10216876119375229,
0.695733904838562,
-0.24818435311317444,
-0.5368021726608276,
... |
func EntityToUtf8(entity string) string {
var ok bool
if ok = reg_entnamed.MatchString(entity); ok {
return namedEntityToUtf8(entity[1 : len(entity)-1])
}
if ok = reg_entnumeric.MatchString(entity); !ok {
return "&" + entity[2:len(entity)-1] + ";"
}
var err os.Error
var num int
entity = entity[2 : le... | [
-0.8197037577629089,
-0.6573016047477722,
0.7129631638526917,
-0.6331433057785034,
-0.5329981446266174,
-0.5290424823760986,
0.3934495151042938,
-0.34115058183670044,
0.3726922273635864,
0.98927903175354,
0.7879660725593567,
0.1157938688993454,
-0.33582234382629395,
0.05340743809938431,
... |
func Utf8ToEntity(entity string) string {
if rune, size := utf8.DecodeRuneInString(entity); size != 0 {
return fmt.Sprintf("&#%d;", rune)
}
return entity
} | [
-0.1012275218963623,
-1.0133851766586304,
0.3607504665851593,
-1.6083433628082275,
0.6094518899917603,
0.5339127779006958,
0.2880752682685852,
0.9653804302215576,
0.7505846619606018,
0.7206122279167175,
0.36842837929725647,
-0.19101274013519287,
0.06427298486232758,
-0.2597543001174927,
... |
func New(name string) *Transaction {
return &Transaction{Name: name}
} | [
0.6415824890136719,
-0.5933705568313599,
0.0519392229616642,
-0.32414156198501587,
-1.4446049928665161,
-0.929991602897644,
-0.6652490496635437,
-0.2535175681114197,
-0.42801451683044434,
0.4492679834365845,
-1.5060882568359375,
-0.09242773056030273,
0.7590063214302063,
-0.4042093753814697... |
func SetStorage(s Storage) {
defaultStorage = s
} | [
0.20334690809249878,
0.7605509757995605,
0.12180063873529434,
1.6837832927703857,
0.7544244527816772,
-0.06282363831996918,
0.8824865818023682,
0.10804431140422821,
0.6337244510650635,
-0.6958950757980347,
-0.4641913175582886,
-0.7763981223106384,
-0.5691867470741272,
0.8319754600524902,
... |
func (tx *Transaction) ExecuteAsync() (err error) {
tx.RetryAt = time.Now()
tx.Timeout = tx.timeout()
if _, err := tx.storage().SaveTransaction(tx); err != nil {
return fmt.Errorf("save transaction failed: %v", err)
}
return nil
} | [
-0.33631980419158936,
-0.02788318321108818,
0.6794679164886475,
0.040726207196712494,
1.0235002040863037,
-0.5790822505950928,
-1.148809552192688,
-0.3159354031085968,
0.009829268790781498,
1.1897889375686646,
-0.33220750093460083,
-0.48084208369255066,
0.2815227210521698,
-1.0114718675613... |
func RetryTimeoutTransactions(count int) (transactions []*Transaction, results []Result, errs []error, err error) {
transactions, err = defaultStorage.GetTimeoutTransactions(count)
if err != nil {
return nil, nil, nil, fmt.Errorf("get timeout transactions err: %v", err)
}
for _, tx := range transactions {
resu... | [
0.04121074825525284,
0.23443548381328583,
0.48137861490249634,
0.22213393449783325,
-0.07135730981826782,
-0.7120352983474731,
-0.20055992901325226,
-0.3180616796016693,
-0.36499759554862976,
0.9811158776283264,
-0.48266980051994324,
-1.008038878440857,
-0.6021023392677307,
-0.478870719671... |
func (tx *Transaction) ExecuteRetry() (result Result, err error) {
tx.Times++
retryTime := tx.timer().CalcRetryTime(tx.Times, tx.timeout())
if err := tx.storage().UpdateTransactionRetryTime(tx, tx.Times, retryTime); err != nil {
return Uncertain, fmt.Errorf("set transaction retry time err: %v", err)
}
return tx... | [
-0.29993560910224915,
0.5571850538253784,
0.6723937392234802,
0.03943900391459465,
0.29053202271461487,
-0.8765294551849365,
-0.7306556105613708,
-0.2543145418167114,
0.3001406788825989,
0.5500338077545166,
-0.18487979471683502,
-0.559737503528595,
-0.31058236956596375,
-0.7975764274597168... |
func (tx *Transaction) Execute() (result Result, err error) {
tx.Times = 1
tx.RetryAt = tx.timer().CalcRetryTime(0, tx.timeout())
tx.Timeout = tx.timeout()
if tx.ID, err = tx.storage().SaveTransaction(tx); err != nil {
return Fail, fmt.Errorf("save transaction failed: %v", err)
}
return tx.execute()
} | [
-0.2928890883922577,
0.44458436965942383,
0.6223083734512329,
0.24117490649223328,
0.6517254114151001,
-0.7770368456840515,
-1.2618310451507568,
-0.33525294065475464,
-0.20569220185279846,
1.3391683101654053,
-0.9471295475959778,
-1.4132726192474365,
-0.7174558639526367,
-0.919915616512298... |
func (tx *Transaction) do() (result Result, undoOffset int, err error) {
result, undoOffset, err = tx.doer().DoNormal(tx)
if result != Success {
return result, undoOffset, fmt.Errorf("doNormal failed: %v", err)
}
return tx.doer().DoUncertain(tx)
} | [
-0.277363657951355,
0.7644593715667725,
0.6845135688781738,
-0.2779124975204468,
-0.6925598382949829,
0.29655468463897705,
-0.28593719005584717,
-0.7780720591545105,
-0.46048128604888916,
0.05042024701833725,
0.09113050997257233,
0.2835671603679657,
0.13092254102230072,
-0.1937525123357772... |
func (tx *Transaction) doNext() (done bool, err error) {
return tx.doer().DoNext(tx)
} | [
-0.6637712717056274,
1.454535961151123,
0.6338438987731934,
0.7496923804283142,
-0.4402654469013214,
-0.19296476244926453,
-1.0814032554626465,
-0.2945534884929657,
-0.2681698203086853,
0.14372117817401886,
-0.6090618968009949,
-0.47472769021987915,
0.1883191466331482,
0.05392196774482727,... |
func (tx *Transaction) undo(undoOffset int) error {
return tx.doer().Undo(tx, undoOffset)
} | [
-0.3802463412284851,
0.017521800473332405,
0.3563699424266815,
-0.6287603974342346,
-0.46218201518058777,
0.6420983672142029,
0.10927627980709076,
1.330528736114502,
-0.44052186608314514,
-0.3933072090148926,
-0.6548994183540344,
0.35490643978118896,
0.865119218826294,
-0.9056548476219177,... |
func (tx *Transaction) saveResult(result Result) error {
cost := time.Since(tx.startAt)
if err := tx.storage().SaveTransactionResult(tx, cost, Fail); err != nil {
return fmt.Errorf("save transaction result failed: %v, %v, %v", err, cost, Fail)
}
return nil
} | [
-0.3580854833126068,
0.9302873611450195,
0.5515734553337097,
0.4281623959541321,
0.27595072984695435,
-0.7762095332145691,
0.40135592222213745,
-0.407787024974823,
-0.13693398237228394,
0.5878576040267944,
-1.6258487701416016,
-1.442263126373291,
-0.5501167178153992,
-0.456541508436203,
... |
func ExampleVaultCertificatesClient_Create() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
client, err := armrecoveryservices.NewVaultCertificatesClient("77777777-d41f-4550-9f70-7708a3a2283b", cred, nil)... | [
0.8458245396614075,
-0.2516319453716278,
0.4967285990715027,
-0.41021963953971863,
0.2775927484035492,
-0.14736303687095642,
-0.12318449467420578,
-0.46130940318107605,
-0.27083975076675415,
0.16208356618881226,
-0.4514995813369751,
0.19020572304725647,
0.05229412764310837,
-0.696064233779... |
func TestSingleRegion(t *testing.T) {
runtime.LockOSThread()
must(buildGo("test/sum.go", "test/sum", true, true), t)
regions := []string{
"main.sum",
}
events := []perf.Configurator{
perf.Instructions,
perf.BranchInstructions,
perf.BranchMisses,
}
expected := TotalMetrics{
NamedMetrics{
Name: "main... | [
0.47354602813720703,
0.7546160221099854,
0.6073477268218994,
-0.4547496736049652,
0.9944167733192444,
0.41477805376052856,
1.5199984312057495,
0.05796514078974724,
0.3866064250469208,
-0.17482733726501465,
-0.22298654913902283,
-0.2118174135684967,
-0.6844974160194397,
0.06726948171854019,... |
func connectForPipes(pipeaddr string, socksaddr string) error {
server, err := socks5.New(&socks5.Config{})
if err != nil {
return err
}
//
log.Println("Connecting to far end with 5 sec timeout")
serveraddr := strings.Split(pipeaddr, "\\")[0]
pipename := strings.Split(pipeaddr, "\\")[1]
conn, err := npipe... | [
0.05626453459262848,
-0.4936368465423584,
0.9749640822410583,
-0.48496660590171814,
-0.5808432698249817,
0.008223315700888634,
0.6832642555236816,
-0.05133362114429474,
-0.3464546203613281,
0.0385180227458477,
0.049847375601530075,
1.0050123929977417,
-0.31726568937301636,
0.92809140682220... |
func ClientListenForClientSocks(address string) error {
log.Println("Waiting for socks clients")
ln, err := net.Listen("tcp", address)
if err != nil {
return err
}
for {
conn, err := ln.Accept()
if err != nil {
return err
}
// TODO dial socks5 through yamux and connect to conn
if session == nil {
... | [
0.995324969291687,
-1.0275174379348755,
0.8321763873100281,
-0.7322520017623901,
-0.40611353516578674,
-0.043447185307741165,
1.155613660812378,
-0.36323562264442444,
0.1789046972990036,
-0.4533301293849945,
0.007799624465405941,
0.9417334198951721,
0.6102030873298645,
1.0959422588348389,
... |
func NewProposalHandler(k *Keeper) govTypes.Handler {
return func(ctx sdk.Context, proposal *govTypes.Proposal) (err sdk.Error) {
switch c := proposal.Content.(type) {
case types.DelistProposal:
return handleDelistProposal(ctx, k, proposal)
default:
errMsg := fmt.Sprintf("unrecognized param proposal conten... | [
-0.5055558085441589,
-0.5215389132499695,
0.3516191244125366,
0.3867934048175812,
-1.2806087732315063,
0.14401018619537354,
-0.5137177109718323,
0.2875511348247528,
0.4139649271965027,
1.2107727527618408,
0.35176849365234375,
-0.38666218519210815,
-0.8698593974113464,
0.42716315388679504,
... |
func HostPort(addr string, port interface{}) string {
host := addr
if strings.Count(addr, ":") > 0 {
host = fmt.Sprintf("[%s]", addr)
}
// TODO check for NATS case
if v, ok := port.(string); ok {
if v == "" {
return fmt.Sprintf("%s", host)
}
}
return fmt.Sprintf("%s:%v", host, port)
} | [
0.4440661072731018,
-0.5338281393051147,
0.5984823703765869,
-0.6409808397293091,
-0.5673401355743408,
0.030635841190814972,
-0.23122987151145935,
0.3823091983795166,
-0.4022475779056549,
0.5125756859779358,
0.8442797064781189,
0.4763910174369812,
-0.06000657007098198,
-0.5026589035987854,... |
func CopyToNamespace(ns string, oConfigMaps ...*v1.ConfigMap) []*v1.ConfigMap {
var configMaps []*v1.ConfigMap
for _, s := range oConfigMaps {
x := s.DeepCopy()
x.ObjectMeta = metav1.ObjectMeta{Name: s.Name, Namespace: ns}
configMaps = append(configMaps, x)
}
return configMaps
} | [
-1.728533148765564,
-1.0601246356964111,
0.443509042263031,
0.7478898167610168,
-0.4620763957500458,
0.5006071329116821,
-0.577647864818573,
-0.45959463715553284,
1.3141326904296875,
1.257698655128479,
-0.5827019214630127,
0.3225693106651306,
0.2371312528848648,
0.33017686009407043,
0.04... |
func ToRuntimeObjects(configMaps ...*v1.ConfigMap) []client.Object {
var objs []client.Object
for _, secret := range configMaps {
if secret == nil {
continue
}
objs = append(objs, secret)
}
return objs
} | [
-1.1127934455871582,
-0.7580256462097168,
0.6407874822616577,
0.9199854731559753,
1.0444598197937012,
-0.06683622300624847,
-0.14609690010547638,
0.16554996371269226,
-0.3782437741756439,
1.2517880201339722,
-1.039138913154602,
-0.5160551071166992,
-1.1901198625564575,
-0.20403480529785156... |
func (e *EthRedeemScript) Serialize() ([]byte, error) {
var buf bytes.Buffer
encoder := gob.NewEncoder(&buf)
err := encoder.Encode(e)
return buf.Bytes(), err
} | [
-0.25106409192085266,
0.5433294177055359,
0.6239621639251709,
-0.6268905401229858,
1.0553052425384521,
-0.5889877676963806,
-0.22401708364486694,
-0.7298476099967957,
0.1885421872138977,
0.9151393175125122,
-0.7407689690589905,
0.7515115737915039,
-0.721377432346344,
0.9200541973114014,
... |
func (e *EthRedeemScript) Deserialize(b []byte) error {
buf := bytes.NewBuffer(b)
d := gob.NewDecoder(buf)
err := d.Decode(e)
return err
} | [
0.08564107120037079,
0.5749781131744385,
0.4917396903038025,
-0.7891267538070679,
1.1306023597717285,
-0.7128023505210876,
-0.3942379355430603,
-0.08059622347354889,
-0.055180832743644714,
0.4269302487373352,
-0.5004754066467285,
0.3271973729133606,
-0.6095600128173828,
0.2308063507080078,... |
func (e *EthRedeemScript) ScriptHash() ([32]byte, error) {
serializedTimeout := make([]byte, 4)
binary.BigEndian.PutUint32(serializedTimeout, e.Timeout)
ser := append(e.TxnID[:], append([]byte{e.Threshold},
append(serializedTimeout[:], append(e.Buyer.Bytes(),
append(e.Vendor.Bytes(), append(e.Moderator.Bytes()... | [
1.0391515493392944,
-0.30466732382774353,
0.7459954023361206,
-0.11608801782131195,
-0.051610417664051056,
-0.3093743622303009,
-0.0891413688659668,
-0.6452372074127197,
0.6225630640983582,
1.1574488878250122,
-0.5864896774291992,
1.2995928525924683,
-0.2516067624092102,
-0.322626054286956... |
func newDistccClientClaims(c *K8ccV1alpha1Client, namespace string) *distccClientClaims {
return &distccClientClaims{
client: c.RESTClient(),
ns: namespace,
}
} | [
0.8138469457626343,
-0.3021309971809387,
0.18325291574001312,
-0.9702514410018921,
-0.7059160470962524,
0.8817682266235352,
-0.5848619341850281,
-0.6619911193847656,
-0.12399326264858246,
-0.05028046667575836,
0.17399545013904572,
0.7729452848434448,
-0.28181809186935425,
-0.00693513639271... |
func (c *distccClientClaims) Get(name string, options v1.GetOptions) (result *v1alpha1.DistccClientClaim, err error) {
result = &v1alpha1.DistccClientClaim{}
err = c.client.Get().
Namespace(c.ns).
Resource("distccclientclaims").
Name(name).
VersionedParams(&options, scheme.ParameterCodec).
Do().
Into(resu... | [
-0.0005326914833858609,
-0.02250330150127411,
0.2447213977575302,
-0.8375548124313354,
0.16804905235767365,
0.6640602946281433,
-0.4740617871284485,
-0.7322399020195007,
-0.7295438051223755,
0.1503162533044815,
0.451725035905838,
1.1754248142242432,
-0.5111734867095947,
0.12680551409721375... |
func (c *distccClientClaims) List(opts v1.ListOptions) (result *v1alpha1.DistccClientClaimList, err error) {
var timeout time.Duration
if opts.TimeoutSeconds != nil {
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
}
result = &v1alpha1.DistccClientClaimList{}
err = c.client.Get().
Namespace(c.ns).
... | [
0.10020244121551514,
-0.20825651288032532,
0.19603288173675537,
-0.1301439255475998,
0.30843666195869446,
0.7489054799079895,
-0.34944912791252136,
0.14935846626758575,
-0.3000050187110901,
0.16147392988204956,
-0.2097502201795578,
0.8655887246131897,
-0.25688931345939636,
0.42675188183784... |
func (c *distccClientClaims) Watch(opts v1.ListOptions) (watch.Interface, error) {
var timeout time.Duration
if opts.TimeoutSeconds != nil {
timeout = time.Duration(*opts.TimeoutSeconds) * time.Second
}
opts.Watch = true
return c.client.Get().
Namespace(c.ns).
Resource("distccclientclaims").
VersionedParam... | [
0.5695438981056213,
-0.11685438454151154,
0.46001940965652466,
-0.47447648644447327,
-0.05835166946053505,
0.9074925184249878,
-0.030937014147639275,
-0.02141222544014454,
-0.35884010791778564,
-0.058099132031202316,
-0.032285820692777634,
1.7004562616348267,
0.18526899814605713,
-0.197888... |
func (c *distccClientClaims) Create(distccClientClaim *v1alpha1.DistccClientClaim) (result *v1alpha1.DistccClientClaim, err error) {
result = &v1alpha1.DistccClientClaim{}
err = c.client.Post().
Namespace(c.ns).
Resource("distccclientclaims").
Body(distccClientClaim).
Do().
Into(result)
return
} | [
-0.1367752104997635,
0.20109923183918,
0.14574016630649567,
-0.4236169755458832,
0.051910318434238434,
1.2299937009811401,
-0.07390738278627396,
-0.8818758130073547,
-0.8980218768119812,
-0.24802327156066895,
0.12166444957256317,
-0.06484541296958923,
-0.480131059885025,
0.7165886163711548... |
func (c *distccClientClaims) Update(distccClientClaim *v1alpha1.DistccClientClaim) (result *v1alpha1.DistccClientClaim, err error) {
result = &v1alpha1.DistccClientClaim{}
err = c.client.Put().
Namespace(c.ns).
Resource("distccclientclaims").
Name(distccClientClaim.Name).
Body(distccClientClaim).
Do().
In... | [
-0.08566547185182571,
-0.5224377512931824,
0.10417050123214722,
-0.9864746928215027,
-0.5271899104118347,
1.171644926071167,
0.14571891725063324,
-0.4958190321922302,
-0.6360275149345398,
0.13454386591911316,
0.1580909639596939,
0.4105500280857086,
-0.4138338267803192,
0.12698502838611603,... |
func (c *distccClientClaims) Delete(name string, options *v1.DeleteOptions) error {
return c.client.Delete().
Namespace(c.ns).
Resource("distccclientclaims").
Name(name).
Body(options).
Do().
Error()
} | [
1.0727241039276123,
0.20384036004543304,
0.4628393352031708,
-0.4781070351600647,
0.28012439608573914,
1.2886292934417725,
-0.08526648581027985,
-0.7040137648582458,
-0.11310847103595734,
0.37769627571105957,
0.1434452384710312,
0.7896010279655457,
-0.8206397294998169,
-0.05031237751245499... |
func (c *distccClientClaims) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error {
var timeout time.Duration
if listOptions.TimeoutSeconds != nil {
timeout = time.Duration(*listOptions.TimeoutSeconds) * time.Second
}
return c.client.Delete().
Namespace(c.ns).
Resource("distccclientcl... | [
-0.11141809821128845,
-0.22563597559928894,
0.8557446002960205,
-0.10645442456007004,
0.2612450122833252,
0.46045103669166565,
0.1233493909239769,
-0.19159460067749023,
-0.3178282380104065,
-0.027441753074526787,
0.3157621920108795,
0.9758415222167969,
-0.13030223548412323,
0.8246418833732... |
func (c *distccClientClaims) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.DistccClientClaim, err error) {
result = &v1alpha1.DistccClientClaim{}
err = c.client.Patch(pt).
Namespace(c.ns).
Resource("distccclientclaims").
SubResource(subresources...).
Name(name).... | [
0.19576984643936157,
-0.23745399713516235,
0.12465914338827133,
-0.7969754934310913,
-0.9648768305778503,
2.0583369731903076,
-0.4102020859718323,
-0.3159004747867584,
-0.2600972354412079,
-0.09097400307655334,
0.2951924204826355,
1.0925250053405762,
-0.48071086406707764,
0.014738346450030... |
func Compile(resolved *resolver.ResolvedProgram) (compiledProg *Program, err error) {
defer func() {
// The compiler uses panic with a *compileError to signal compile
// errors internally, and they're caught here. This avoids the
// need to check errors everywhere.
if r := recover(); r != nil {
// Convert t... | [
0.15959155559539795,
0.032946616411209106,
0.8233859539031982,
0.18170583248138428,
-0.3311070203781128,
-0.3841311037540436,
0.3038715720176697,
-0.150269016623497,
-0.18010373413562775,
-0.5063620209693909,
-0.4373551309108734,
0.10785814374685287,
-0.39474520087242126,
0.332507222890853... |
func incrAmount(op lexer.Token) Opcode {
if op == lexer.INCR {
return 1
} else {
return -1 // DECR
}
} | [
0.42138877511024475,
0.6540350914001465,
0.47600027918815613,
0.7045154571533203,
-1.4852361679077148,
-0.7883145213127136,
0.5337839722633362,
0.017342546954751015,
0.06750888377428055,
0.28020086884498596,
-0.22877131402492523,
0.5604982972145081,
-0.20240522921085358,
0.3538687825202942... |
func (c *compiler) assign(target ast.Expr) {
switch target := target.(type) {
case *ast.VarExpr:
scope, index := c.scalarInfo(target.Name)
switch scope {
case resolver.Global:
c.add(AssignGlobal, opcodeInt(index))
case resolver.Local:
c.add(AssignLocal, opcodeInt(index))
case resolver.Special:
c.ad... | [
-1.5231364965438843,
-0.9833984375,
0.6757170557975769,
-0.27071642875671387,
0.16251441836357117,
-0.22607927024364471,
0.0208089891821146,
0.45553529262542725,
-0.029216162860393524,
0.4046938121318817,
-0.13064129650592804,
1.0849833488464355,
0.25806695222854614,
0.8024930953979492,
... |
func (c *compiler) patchBreaks() {
breaks := c.breaks[len(c.breaks)-1]
for _, mark := range breaks {
c.patchForward(mark)
}
c.breaks = c.breaks[:len(c.breaks)-1]
} | [
-0.4251672923564911,
0.5517476797103882,
0.35255908966064453,
-0.6314486861228943,
-0.2196473479270935,
1.0444833040237427,
0.8605950474739075,
-0.04691925272345543,
-0.24261775612831116,
-0.636475682258606,
0.09003251045942307,
0.04349496215581894,
-0.7206238508224487,
0.5752518177032471,... |
func (c *compiler) patchContinues() {
continues := c.continues[len(c.continues)-1]
for _, mark := range continues {
c.patchForward(mark)
}
c.continues = c.continues[:len(c.continues)-1]
} | [
0.5984914898872375,
-1.1048816442489624,
0.5455537438392639,
-1.3353644609451294,
-0.5331130623817444,
1.0999555587768555,
0.42256784439086914,
0.299996554851532,
-0.18059419095516205,
0.34391865134239197,
0.5351134538650513,
0.6096906661987305,
-1.2116186618804932,
0.16260220110416412,
... |
func (c *compiler) jumpForward(jumpOp Opcode, args ...Opcode) int {
c.add(jumpOp)
c.add(args...)
c.add(0)
return len(c.code)
} | [
-0.3899773061275482,
1.5381437540054321,
0.5917003154754639,
-0.534442663192749,
-0.01390149723738432,
-0.21416904032230377,
0.11640836298465729,
-0.16341517865657806,
-0.8463337421417236,
-0.6462467312812805,
-0.17219704389572144,
-0.30279141664505005,
0.11607787758111954,
-0.017692072317... |
func (c *compiler) patchForward(mark int) {
offset := len(c.code) - mark
c.code[mark-1] = opcodeInt(offset)
} | [
0.004631299525499344,
0.268577516078949,
0.4430144131183624,
-1.521016240119934,
0.014831310138106346,
0.5484228134155273,
0.9673208594322205,
-0.03978738561272621,
-0.3914126455783844,
-0.9874707460403442,
-0.08119937777519226,
1.0786570310592651,
0.015604124404489994,
-0.0978602692484855... |
func (c *compiler) labelBackward() int {
return len(c.code)
} | [
-0.43041932582855225,
-0.49195608496665955,
0.7941195368766785,
-1.4953398704528809,
0.5769618153572083,
1.4038772583007812,
-0.07477569580078125,
0.08555503934621811,
-1.1232554912567139,
0.13368180394172668,
-0.13549073040485382,
0.30532169342041016,
-0.5805574059486389,
0.54293465614318... |
func (c *compiler) jumpBackward(label int, jumpOp Opcode, args ...Opcode) {
offset := label - (len(c.code) + len(args) + 2)
c.add(jumpOp)
c.add(args...)
c.add(opcodeInt(offset))
} | [
-0.30140000581741333,
0.5105372667312622,
0.9831705689430237,
-0.5404639840126038,
0.714227020740509,
0.7238743901252747,
-0.48296111822128296,
-0.45800095796585083,
-0.9184066653251648,
-0.06482469290494919,
-0.03016142174601555,
0.08889717608690262,
-0.21180130541324615,
-0.6175585389137... |
func (c *compiler) condition(expr ast.Expr, invert bool) Opcode {
jumpOp := func(normal, inverted Opcode) Opcode {
if invert {
return inverted
}
return normal
}
switch cond := expr.(type) {
case *ast.BinaryExpr:
// Optimize binary comparison expressions like "x < 10" into just
// JumpLess instead of t... | [
-0.06308410316705704,
-0.34315335750579834,
0.7328208088874817,
-0.08926574140787125,
-1.315592885017395,
0.28742271661758423,
0.4550365209579468,
0.38202279806137085,
-0.4724465310573578,
0.21474207937717438,
0.4964142143726349,
0.08458968997001648,
-0.1889611780643463,
0.3061639964580536... |
func (c *compiler) concatOp(expr *ast.BinaryExpr) {
var values []ast.Expr
for {
values = append(values, expr.Right)
left, isBinary := expr.Left.(*ast.BinaryExpr)
if !isBinary || left.Op != lexer.CONCAT {
break
}
expr = left
}
values = append(values, expr.Left)
// values are appended right to left
//... | [
0.007893996313214302,
0.6375982761383057,
1.0051872730255127,
1.2096335887908936,
-1.0459098815917969,
-0.47976014018058777,
-0.35401174426078796,
-0.29944536089897156,
0.027033168822526932,
0.7139801979064941,
0.3154926002025604,
-0.9489668607711792,
0.03451095521450043,
1.414831399917602... |
func (c *compiler) numIndex(n float64) int {
if index, ok := c.indexes.nums[n]; ok {
return index // reuse existing constant
}
index := len(c.program.Nums)
c.program.Nums = append(c.program.Nums, n)
c.indexes.nums[n] = index
return index
} | [
-0.17511841654777527,
0.317404180765152,
0.49057313799858093,
-0.29029691219329834,
0.05967232212424278,
-0.0786958560347557,
0.8340399265289307,
0.5122256875038147,
0.8399018049240112,
-0.620728611946106,
-1.1246074438095093,
0.6191457509994507,
-0.008845271542668343,
0.1491842269897461,
... |
func (c *compiler) strIndex(s string) int {
if index, ok := c.indexes.strs[s]; ok {
return index // reuse existing constant
}
index := len(c.program.Strs)
c.program.Strs = append(c.program.Strs, s)
c.indexes.strs[s] = index
return index
} | [
-0.3062974214553833,
-0.5273130536079407,
0.6534976363182068,
-1.335221529006958,
-0.5136625170707703,
-0.12708787620067596,
0.8613588213920593,
0.14100943505764008,
0.08872222900390625,
-0.2717091739177704,
-0.3251207768917084,
0.6762421131134033,
-1.1004778146743774,
-0.45119497179985046... |
func (c *compiler) regexIndex(r string) int {
if index, ok := c.indexes.regexes[r]; ok {
return index // reuse existing constant
}
index := len(c.program.Regexes)
c.program.Regexes = append(c.program.Regexes, regexp.MustCompile(AddRegexFlags(r)))
c.indexes.regexes[r] = index
return index
} | [
-0.4161732792854309,
-0.15664008259773254,
0.649224042892456,
-0.16688406467437744,
0.11113709956407547,
-0.005720639601349831,
1.1108452081680298,
1.219876766204834,
0.5229371786117554,
-0.2132021188735962,
-0.864048957824707,
0.44970351457595825,
-0.6245280504226685,
-0.1563778966665268,... |
func AddRegexFlags(regex string) string {
// "s" flag lets . match \n (multi-line matching like other AWKs)
return "(?s:" + regex + ")"
} | [
0.5081568360328674,
-0.03815543279051781,
0.5071512460708618,
-0.1107092797756195,
0.011070242151618004,
-0.3641902208328247,
-0.700812578201294,
1.1519759893417358,
0.6384286284446716,
-1.4838696718215942,
-0.7148601412773132,
0.13962088525295258,
0.1664258986711502,
0.08544348180294037,
... |
func (c *compiler) index(index []ast.Expr) {
for _, expr := range index {
if e, ok := expr.(*ast.NumExpr); ok && e.Value == float64(int(e.Value)) {
// If index expression is integer constant, optimize to string "n"
// to avoid toString() at runtime.
s := strconv.Itoa(int(e.Value))
c.expr(&ast.StrExpr{Val... | [
-0.4847508370876312,
-0.10327862948179245,
0.44179707765579224,
0.13647159934043884,
-0.09542832523584366,
-0.5481120944023132,
1.024246335029602,
0.9049307703971863,
-0.19786575436592102,
0.6533196568489075,
-0.024228595197200775,
0.361786812543869,
0.06461521238088608,
0.4621304273605346... |
func (o GetImagesResultOutput) Id() pulumi.StringOutput {
return o.ApplyT(func(v GetImagesResult) string { return v.Id }).(pulumi.StringOutput)
} | [
0.4691745936870575,
-0.37523186206817627,
0.19746921956539154,
-0.14047418534755707,
0.9254836440086365,
0.09217776358127594,
0.46689730882644653,
0.18626350164413452,
1.1619925498962402,
-0.004656249191612005,
-0.33321043848991394,
0.3135901391506195,
-0.028541618958115578,
-0.44033780694... |
func (o GetImagesResultOutput) Images() GetImagesImageArrayOutput {
return o.ApplyT(func(v GetImagesResult) []GetImagesImage { return v.Images }).(GetImagesImageArrayOutput)
} | [
-0.960101842880249,
0.11209635436534882,
0.5175847411155701,
0.21974295377731323,
0.8741222023963928,
-0.937737762928009,
0.4000469744205475,
-0.7893492579460144,
0.8326038122177124,
-0.3181469738483429,
0.24929268658161163,
-0.15746091306209564,
0.8074731230735779,
0.531456708908081,
-0... |
func NewMcbAppEndpoints() []*api.Endpoint {
return []*api.Endpoint{}
} | [
-0.009380708448588848,
-0.9138593673706055,
0.43915310502052307,
1.3143573999404907,
-0.8223976492881775,
0.14878225326538086,
-0.21101973950862885,
0.6570494174957275,
0.8459526300430298,
-0.07715955376625061,
-1.1249672174453735,
-0.2719455659389496,
-0.8354490995407104,
1.17598104476928... |
func NewMcbGateEndpoints() []*api.Endpoint {
return []*api.Endpoint{}
} | [
0.2807364761829376,
-0.3849690556526184,
0.3694482445716858,
1.363740086555481,
-0.4004843235015869,
-0.46647828817367554,
-0.17413607239723206,
0.2477351278066635,
0.2526257336139679,
0.6280528903007507,
-1.1500040292739868,
0.11832107603549957,
-1.439158320426941,
1.0356850624084473,
0... |
func UnmarshalEventXML(rawXML []byte) (Event, error) {
var event Event
decoder := xml.NewDecoder(newXMLSafeReader(rawXML))
err := decoder.Decode(&event)
return event, err
} | [
0.8367589712142944,
-0.17578591406345367,
0.6689200401306152,
-1.0628844499588013,
-1.1416863203048706,
-0.12193125486373901,
-0.523947536945343,
0.9141947627067566,
0.026100678369402885,
0.634425699710846,
0.49595820903778076,
-0.2896941006183624,
0.24804049730300903,
-0.4745686948299408,... |
func (t *TimeCreated) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
attrs := struct {
SystemTime string `xml:"SystemTime,attr"`
RawTime uint64 `xml:"RawTime,attr"`
}{}
err := d.DecodeElement(&attrs, &start)
if err != nil {
return err
}
if attrs.SystemTime != "" {
// This works but XML ... | [
-0.2320481836795807,
0.6463647484779358,
0.5417332649230957,
-0.10215654969215393,
-0.4590730369091034,
0.18175464868545532,
-0.43969377875328064,
0.5453499555587769,
-0.3036847412586212,
-0.257522314786911,
-0.07189198583364487,
-0.6859793663024902,
0.46341854333877563,
0.2964197695255279... |
func (u *UserData) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
// Assume that UserData has the same general key-value structure as
// EventData does.
in := struct {
Pairs []KeyValue `xml:",any"`
}{}
// Read tokens until we find the first StartElement then unmarshal it.
for {
t, err := d.Toke... | [
-0.33961987495422363,
0.5879218578338623,
0.6122434735298157,
-0.44232985377311707,
-1.714691400527954,
-0.19451946020126343,
0.3444017469882965,
0.6555021405220032,
-0.29167020320892334,
-0.26586809754371643,
-0.15983116626739502,
0.2787722051143646,
-0.21397151052951813,
-0.4143042564392... |
func (kv *KeyValue) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
elem := struct {
XMLName xml.Name
Name string `xml:"Name,attr"`
Value string `xml:",chardata"`
}{}
err := d.DecodeElement(&elem, &start)
if err != nil {
return err
}
kv.Key = elem.XMLName.Local
if elem.Name != "" {
... | [
-0.44648340344429016,
0.24268300831317902,
0.7436749339103699,
-0.83195960521698,
-1.9805734157562256,
-0.20879755914211273,
-0.6149941086769104,
0.8561246991157532,
-0.878259003162384,
0.009949845261871815,
-0.26703017950057983,
0.25700241327285767,
0.19987352192401886,
-0.069207623600959... |
func New(c *controller.Controller) *Server {
s := &Server{
e: echo.New(),
c: c,
}
// Middleware
s.e.Use(middleware.Logger())
s.e.Use(middleware.Recover())
s.populateRoutes()
return s
} | [
-0.2288454920053482,
-0.5666557550430298,
0.44149672985076904,
-0.01872248575091362,
0.12367749214172363,
0.10114303976297379,
-0.006700045429170132,
-0.02035353146493435,
0.606428325176239,
-0.43603000044822693,
-0.5902411341667175,
0.4330292344093323,
0.3913877010345459,
1.01380133628845... |
func (s *Server) ListenAndServe(addr string) error {
srv := http.Server{
Addr: addr,
Handler: s,
}
return srv.ListenAndServe()
} | [
0.1657182276248932,
-0.8923441171646118,
0.23739424347877502,
-0.7968961596488953,
-0.7855286598205566,
0.20030653476715088,
-0.903845489025116,
0.9167962074279785,
0.6744627952575684,
-0.543377161026001,
-0.5767807960510254,
0.528647243976593,
0.08271993696689606,
0.9489840269088745,
0.... |
func ToCandName(b []byte) CandName {
var c CandName
if len(b) > 12 {
b = b[len(b)-12:]
}
copy(c[12-len(b):], b)
return c
} | [
0.6597328782081604,
-0.0672101080417633,
0.6425172686576843,
-0.23780420422554016,
-1.0134769678115845,
0.3888818621635437,
-0.06101073697209358,
-0.3259442150592804,
1.2516539096832275,
1.0860563516616821,
-0.6448237895965576,
0.5333124995231628,
-0.024588529020547867,
-0.1047382056713104... |
func (l *DelegateList) Deserialize(buf []byte) error {
pb := &stakingpb.Delegates{}
if err := proto.Unmarshal(buf, pb); err != nil {
return errors.Wrap(err, "failed to unmarshal delegate list")
}
*l = (*l)[:0]
for _, v := range pb.Delegates {
*l = append(*l, fromProto(v))
}
return nil
} | [
0.3468993604183197,
0.27911800146102905,
0.3842729926109314,
-0.23889820277690887,
0.07736257463693619,
0.1547577977180481,
-0.7246277928352356,
1.216854453086853,
-0.31892141699790955,
0.22223936021327972,
-0.9063778519630432,
-0.21433362364768982,
-1.168877124786377,
0.882993757724762,
... |
func (m DelegateMap) Contains(name CandName) bool {
_, ok := m[name]
return ok
} | [
0.03386284038424492,
-0.22113512456417084,
0.30182772874832153,
-0.6465142965316772,
-0.7272424697875977,
0.3116524815559387,
-0.7604295611381531,
0.05083557963371277,
0.4464868903160095,
-0.4177704453468323,
-0.2852312922477722,
0.6069711446762085,
0.05067393183708191,
0.5802229642868042,... |
func (m DelegateMap) Serialize() ([]byte, error) {
l := make(DelegateList, 0, len(m))
for _, v := range m {
l = append(l, v)
}
sort.Sort(l)
return proto.Marshal(l.toProto())
} | [
0.05327118560671806,
0.3120581805706024,
0.6560457944869995,
-0.026658374816179276,
0.2854442298412323,
0.40057194232940674,
-0.47487878799438477,
0.030923670157790184,
0.435922235250473,
-0.30825552344322205,
-0.4590319097042084,
0.44148027896881104,
-0.9619054198265076,
1.085895419120788... |
func (m DelegateMap) Deserialize(buf []byte) error {
pb := &stakingpb.Delegates{}
if err := proto.Unmarshal(buf, pb); err != nil {
return errors.Wrap(err, "failed to unmarshal delegate list")
}
for k := range m {
delete(m, k)
}
for _, v := range pb.Delegates {
m[ToCandName(v.CanName)] = fromProto(v)
}
r... | [
0.3690446615219116,
-0.2438952773809433,
0.47735896706581116,
-0.1222190335392952,
-0.09521140903234482,
0.12377215921878815,
-0.22460906207561493,
0.99471515417099,
-0.48061591386795044,
-0.35890281200408936,
-0.6064774394035339,
-0.05769789591431618,
-1.0249874591827393,
0.56273818016052... |
func (sw *SimpleWebServer) Serve() error {
if sw.running {
return fmt.Errorf("already running")
}
sw.running = true
go func() {
_ = sw.ListenAndServe()
}()
return nil
} | [
0.0898790955543518,
-0.21901904046535492,
0.3348848819732666,
0.4551760256290436,
0.3851533830165863,
0.5439498424530029,
0.4065398871898651,
-0.0694618970155716,
-0.5076206922531128,
-0.41583725810050964,
-1.33062744140625,
0.01788582094013691,
-0.7019760608673096,
0.9263408780097961,
1... |
func (sw *SimpleWebServer) Shutdown(ctx context.Context) error {
if !sw.running {
return fmt.Errorf("not started")
}
sw.running = false
return sw.Server.Shutdown(ctx)
} | [
-0.5245436429977417,
0.20567524433135986,
0.47483396530151367,
0.362014502286911,
-0.26890191435813904,
1.328032374382019,
0.4696858525276184,
0.641285240650177,
1.1198440790176392,
-0.2837187647819519,
-0.42887455224990845,
0.43479394912719727,
-0.956918478012085,
0.4573707580566406,
0.... |
func EnablePprofEndpoints(ws WebServer) {
ws.HandleFunc("/debug/pprof/", pprof.Index)
ws.HandleFunc("/debug/pprof/cmdline", pprof.Cmdline)
ws.HandleFunc("/debug/pprof/profile", pprof.Profile)
ws.HandleFunc("/debug/pprof/symbol", pprof.Symbol)
ws.HandleFunc("/debug/pprof/trace", pprof.Trace)
} | [
0.11197063326835632,
-0.18614262342453003,
0.8284439444541931,
-0.25423717498779297,
0.1376788467168808,
0.4722577929496765,
0.04439864680171013,
0.2543236315250397,
0.3853243887424469,
-0.7216477394104004,
-0.3410809338092804,
0.6041557788848877,
-0.5443835258483887,
0.49655574560165405,
... |
func EnableExpVarEndpoints(ws WebServer) {
ws.HandleFunc("/debug/vars", expvar.Handler().ServeHTTP)
} | [
-0.32121315598487854,
-0.44426384568214417,
0.3946356773376465,
-0.0037350396160036325,
-0.22668159008026123,
0.7829223275184631,
-0.07916901260614395,
0.6442905068397522,
0.28250643610954285,
0.009698388166725636,
-0.44961461424827576,
0.6231657862663269,
-0.3620704114437103,
0.4869524538... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.