text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func NewDeleteRule(edgeId string, ruleId int) *DeleteEdgeFirewallRuleAPI {
this := new(DeleteEdgeFirewallRuleAPI)
this.BaseAPI = api.NewBaseAPI(http.MethodDelete, fmt.Sprintf(
"/api/4.0/edges/%s/firewall/config/rules/%d", edgeId, ruleId,
), nil, nil)
return this
} | [
-0.3449690639972687,
-0.24912425875663757,
0.3090360164642334,
-0.45920392870903015,
0.8969053626060486,
0.02891521528363228,
-0.6361135840415955,
0.18714356422424316,
-0.0980936735868454,
0.03334544599056244,
0.07409754395484924,
-0.06886932998895645,
-1.0136924982070923,
1.10502445697784... |
func (ca DeleteEdgeFirewallRuleAPI) GetResponse() string {
return ca.ResponseObject().(string)
} | [
0.7543272972106934,
-0.6158915162086487,
0.3292038142681122,
0.5622287392616272,
1.2652130126953125,
-0.2652224898338318,
0.015548467636108398,
-0.5717286467552185,
1.228767991065979,
0.39795997738838196,
0.26062631607055664,
-0.9859542846679688,
-0.9074298739433289,
-0.12284158170223236,
... |
func NewWindowsUniversalAppX()(*WindowsUniversalAppX) {
m := &WindowsUniversalAppX{
MobileLobApp: *NewMobileLobApp(),
}
odataTypeValue := "#microsoft.graph.windowsUniversalAppX";
m.SetOdataType(&odataTypeValue);
return m
} | [
0.2021315097808838,
-0.1627572476863861,
0.19930970668792725,
0.46711573004722595,
-1.040000319480896,
0.5624027252197266,
-0.22011300921440125,
0.526654064655304,
0.6244999170303345,
-0.21387995779514313,
-0.3506540358066559,
0.8107703924179077,
-0.09946969896554947,
0.059587255120277405,... |
func CreateWindowsUniversalAppXFromDiscriminatorValue(parseNode i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.Parsable, error) {
return NewWindowsUniversalAppX(), nil
} | [
0.689838707447052,
-0.12065498530864716,
0.4273875057697296,
0.21159130334854126,
-1.3608804941177368,
0.6682167649269104,
0.15129710733890533,
0.8675819635391235,
0.6199585795402527,
-0.4485664367675781,
0.022959822788834572,
0.31091320514678955,
0.3483215868473053,
0.9330599308013916,
... |
func (m *WindowsUniversalAppX) GetApplicableArchitectures()(*WindowsArchitecture) {
return m.applicableArchitectures
} | [
0.14242255687713623,
0.10660608112812042,
0.34383058547973633,
1.0503531694412231,
-0.713946521282196,
0.6524164080619812,
0.6141297817230225,
0.6005231142044067,
1.4343738555908203,
-0.7456292510032654,
0.23151743412017822,
0.8771635293960571,
0.3627640902996063,
0.4799996018409729,
0.9... |
func (m *WindowsUniversalAppX) GetApplicableDeviceTypes()(*WindowsDeviceType) {
return m.applicableDeviceTypes
} | [
-0.0906209945678711,
0.2766399681568146,
0.31687891483306885,
1.1891698837280273,
-0.6112278699874878,
0.5071444511413574,
0.665692925453186,
0.6511774659156799,
1.0642350912094116,
-0.31612423062324524,
-0.34995850920677185,
0.39990895986557007,
-0.025934893637895584,
0.9356418251991272,
... |
func (m *WindowsUniversalAppX) GetFieldDeserializers()(map[string]func(i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.ParseNode)(error)) {
res := m.MobileLobApp.GetFieldDeserializers()
res["applicableArchitectures"] = i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.SetEnumVa... | [
0.21661865711212158,
-0.10725969821214676,
0.6121245622634888,
-0.5964344143867493,
-0.32640525698661804,
-0.1344633847475052,
0.13058212399482727,
0.5151925086975098,
-0.1911563277244568,
-0.6231728196144104,
-1.0608277320861816,
-0.012617288157343864,
-0.8552343845367432,
-0.149870187044... |
func (m *WindowsUniversalAppX) GetIdentityName()(*string) {
return m.identityName
} | [
-0.08839236199855804,
-0.38680464029312134,
0.3461717665195465,
1.6052231788635254,
-0.06828157603740692,
1.0707427263259888,
0.35580694675445557,
0.4932093620300293,
0.6675969958305359,
-0.2798592150211334,
-0.21439601480960846,
-0.07161970436573029,
-0.8473640084266663,
-0.30913779139518... |
func (m *WindowsUniversalAppX) GetIdentityPublisherHash()(*string) {
return m.identityPublisherHash
} | [
0.461182564496994,
-0.6675590872764587,
0.0660356655716896,
1.2149391174316406,
-0.18287073075771332,
0.8834797143936157,
-0.6449220776557922,
1.4823768138885498,
-0.08921599388122559,
-0.19792138040065765,
-0.12174266576766968,
0.3059343099594116,
-2.068265199661255,
0.26955556869506836,
... |
func (m *WindowsUniversalAppX) GetIdentityResourceIdentifier()(*string) {
return m.identityResourceIdentifier
} | [
0.2388785034418106,
-1.1233290433883667,
0.3577558994293213,
0.02624525874853134,
-0.2613869309425354,
1.3271849155426025,
0.5636710524559021,
0.6737608313560486,
1.2264864444732666,
-0.4175954759120941,
-0.7082932591438293,
-0.4113765060901642,
-1.2617764472961426,
0.12336620688438416,
... |
func (m *WindowsUniversalAppX) GetIdentityVersion()(*string) {
return m.identityVersion
} | [
0.050834521651268005,
-0.4929661154747009,
0.0817079097032547,
0.9779245853424072,
0.4829567074775696,
0.9807494282722473,
0.6796945333480835,
0.3388414680957794,
0.534878671169281,
-0.5941358208656311,
-0.6148367524147034,
0.7422767877578735,
-0.9542089104652405,
0.12503375113010406,
0.... |
func (m *WindowsUniversalAppX) GetIsBundle()(*bool) {
return m.isBundle
} | [
0.3286000192165375,
0.6769330501556396,
0.5276813507080078,
1.1624863147735596,
0.3197725713253021,
0.3752794861793518,
0.15155819058418274,
0.5292161107063293,
0.05888628959655762,
-0.70238196849823,
-0.1211320236325264,
1.2042241096496582,
-1.7374316453933716,
0.2337792068719864,
-0.63... |
func (m *WindowsUniversalAppX) GetMinimumSupportedOperatingSystem()(WindowsMinimumOperatingSystemable) {
return m.minimumSupportedOperatingSystem
} | [
-0.6963618397712708,
0.302791029214859,
0.40453392267227173,
0.4729746878147125,
-1.0751965045928955,
0.695387065410614,
-0.6516714096069336,
0.21546170115470886,
0.5399010181427002,
-1.0544629096984863,
0.164425328373909,
-0.494543194770813,
-1.1501058340072632,
-0.25549837946891785,
-0... |
func (m *WindowsUniversalAppX) Serialize(writer i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.SerializationWriter)(error) {
err := m.MobileLobApp.Serialize(writer)
if err != nil {
return err
}
if m.GetApplicableArchitectures() != nil {
cast := (*m.GetApplicableArchite... | [
-0.18859520554542542,
-0.15277700126171112,
0.6282840371131897,
0.5189802646636963,
-0.2570658028125763,
0.3666965067386627,
0.3823581635951996,
0.2632884681224823,
0.3748571276664734,
0.020960571244359016,
-0.4659965932369232,
0.032494526356458664,
-0.3374631106853485,
0.39709168672561646... |
func (m *WindowsUniversalAppX) SetApplicableArchitectures(value *WindowsArchitecture)() {
m.applicableArchitectures = value
} | [
0.24881820380687714,
0.7057769298553467,
0.1946634203195572,
0.2513669729232788,
-0.7057937979698181,
0.8511790633201599,
1.2023433446884155,
0.5463597774505615,
0.8937710523605347,
-0.2909814417362213,
0.24859075248241425,
0.05617046356201172,
0.5881619453430176,
0.8453191518783569,
0.7... |
func (m *WindowsUniversalAppX) SetApplicableDeviceTypes(value *WindowsDeviceType)() {
m.applicableDeviceTypes = value
} | [
-0.12724512815475464,
1.0243406295776367,
0.13795068860054016,
0.2670205235481262,
-0.8435757756233215,
0.6409112811088562,
0.954223096370697,
0.31005212664604187,
0.4239969253540039,
0.1313057690858841,
-0.19822527468204498,
-0.5347957015037537,
0.020390158519148827,
1.0700383186340332,
... |
func (m *WindowsUniversalAppX) SetIdentityName(value *string)() {
m.identityName = value
} | [
-0.5753734111785889,
-0.33695507049560547,
0.1606324017047882,
1.216482162475586,
-0.1805831491947174,
1.098471999168396,
0.7818212509155273,
0.19106732308864594,
0.42694276571273804,
0.296688973903656,
-0.8414967060089111,
-0.9793158769607544,
-0.4320457875728607,
0.09766241908073425,
0... |
func (m *WindowsUniversalAppX) SetIdentityPublisherHash(value *string)() {
m.identityPublisherHash = value
} | [
0.5153663158416748,
-0.7731837630271912,
0.09564895182847977,
0.902919352054596,
-0.2494039535522461,
1.256864070892334,
-0.3159101605415344,
1.4506663084030151,
-0.24602971971035004,
0.025784220546483994,
-0.377573162317276,
0.18706226348876953,
-1.4978030920028687,
0.6437045335769653,
... |
func (m *WindowsUniversalAppX) SetIdentityResourceIdentifier(value *string)() {
m.identityResourceIdentifier = value
} | [
0.03448932245373726,
-1.2745153903961182,
0.25450074672698975,
-0.285189688205719,
-0.15803872048854828,
1.3779250383377075,
1.100076675415039,
0.545952320098877,
0.8566821813583374,
-0.016805104911327362,
-0.8896853923797607,
-0.8437356352806091,
-0.6593518257141113,
0.669143795967102,
... |
func (m *WindowsUniversalAppX) SetIdentityVersion(value *string)() {
m.identityVersion = value
} | [
-0.2300596535205841,
-0.3461865782737732,
0.13159966468811035,
0.5157164931297302,
0.35851162672042847,
1.0372951030731201,
0.9671834707260132,
0.19948366284370422,
0.08408819884061813,
-0.021520357578992844,
-0.8936511874198914,
-0.35340481996536255,
-0.7136596441268921,
0.610688924789428... |
func (m *WindowsUniversalAppX) SetIsBundle(value *bool)() {
m.isBundle = value
} | [
0.06901484727859497,
0.8716427087783813,
0.4775814116001129,
0.7675765156745911,
-0.1393759846687317,
0.5352479219436646,
0.8361289501190186,
0.35286015272140503,
-0.4396187961101532,
0.034417904913425446,
-0.035591792315244675,
0.2312290072441101,
-1.0731879472732544,
0.8200175166130066,
... |
func (m *WindowsUniversalAppX) SetMinimumSupportedOperatingSystem(value WindowsMinimumOperatingSystemable)() {
m.minimumSupportedOperatingSystem = value
} | [
-0.7089211344718933,
0.2838013172149658,
0.29851290583610535,
0.27121010422706604,
-1.1371172666549683,
0.7964605093002319,
-0.3748093545436859,
-0.016889112070202827,
0.2951081693172455,
-0.6268137693405151,
-0.05850231274962425,
-0.7686300873756409,
-1.0018209218978882,
-0.11756652593612... |
func (s CreateUserInput) String() string {
return awsutil.Prettify(s)
} | [
0.3146708011627197,
-0.05381391569972038,
0.03656821325421333,
-0.14851433038711548,
-0.7325202226638794,
1.5582863092422485,
0.8895160555839539,
-1.4581981897354126,
-0.11418148130178452,
-0.5589560270309448,
-0.05376596748828888,
0.9937884211540222,
0.3765164911746979,
-0.401862621307373... |
func (s *CreateUserInput) Validate() error {
invalidParams := aws.ErrInvalidParams{Context: "CreateUserInput"}
if s.AccountId == nil {
invalidParams.Add(aws.NewErrParamRequired("AccountId"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
} | [
0.03306276723742485,
0.6324727535247803,
0.33205777406692505,
0.403704434633255,
0.053533755242824554,
0.8886371850967407,
0.39834868907928467,
-0.4755450189113617,
-0.14143292605876923,
-0.06465314328670502,
0.5961108207702637,
-0.02176053449511528,
-0.903200626373291,
0.9770818948745728,... |
func (s CreateUserInput) MarshalFields(e protocol.FieldEncoder) error {
e.SetValue(protocol.HeaderTarget, "Content-Type", protocol.StringValue("application/json"), protocol.Metadata{})
if s.Email != nil {
v := *s.Email
metadata := protocol.Metadata{}
e.SetValue(protocol.BodyTarget, "Email", protocol.QuotedVal... | [
0.13454081118106842,
0.4409097731113434,
0.4866162836551666,
-0.5798600316047668,
0.04006402567028999,
0.9310340881347656,
0.3882770538330078,
-0.3564477264881134,
-0.09189250320196152,
-0.20719070732593536,
-0.37274637818336487,
0.32363778352737427,
-0.6695639491081238,
-0.022265836596488... |
func (s CreateUserOutput) String() string {
return awsutil.Prettify(s)
} | [
0.947180986404419,
-0.5150048732757568,
-0.035834815353155136,
-0.037577416747808456,
-1.0838148593902588,
0.5703577399253845,
1.0525106191635132,
-1.3991315364837646,
-0.5878200531005859,
-0.5503528714179993,
0.24200189113616943,
0.5531532168388367,
0.3943234086036682,
-0.5624566078186035... |
func (s CreateUserOutput) MarshalFields(e protocol.FieldEncoder) error {
if s.User != nil {
v := s.User
metadata := protocol.Metadata{}
e.SetFields(protocol.BodyTarget, "User", v, metadata)
}
return nil
} | [
0.3549047112464905,
0.7260901927947998,
-0.02150391973555088,
-0.13119830191135406,
0.16127611696720123,
0.7861767411231995,
0.4621258080005646,
0.21706406772136688,
0.1749500334262848,
-0.32400181889533997,
-0.5785436034202576,
-0.1176748275756836,
-0.7628180384635925,
-0.1510625183582306... |
func (r CreateUserRequest) Send(ctx context.Context) (*CreateUserResponse, error) {
r.Request.SetContext(ctx)
err := r.Request.Send()
if err != nil {
return nil, err
}
resp := &CreateUserResponse{
CreateUserOutput: r.Request.Data.(*CreateUserOutput),
response: &aws.Response{Request: r.Request},
}
... | [
-0.6615310907363892,
-0.21473374962806702,
0.06521286815404892,
0.43049538135528564,
-0.2377575933933258,
0.18589769303798676,
0.02375124767422676,
-1.5620990991592407,
0.18175609409809113,
-0.35246703028678894,
-0.3289490044116974,
0.37269070744514465,
-0.6599860191345215,
-0.174438029527... |
func (r *CreateUserResponse) SDKResponseMetdata() *aws.Response {
return r.response
} | [
0.3413444459438324,
-0.4824719727039337,
0.14667007327079773,
-0.12319065630435944,
-0.36574119329452515,
0.9025520086288452,
-0.4902995824813843,
-0.8906028866767883,
0.7385396957397461,
-0.3663060963153839,
-0.6667438745498657,
-0.3631035089492798,
-0.06669113039970398,
-0.91112840175628... |
func Convert(curr, new int, number string) string {
var nums []int
for _, c := range number {
if c < 'A' {
nums = append(nums, int(c-'0'))
} else {
nums = append(nums, 10+int(c-'A'))
}
}
dec := toDecimal(curr, nums)
res := fromDecimal(new, dec)
return str.Reverse(res)
} | [
0.17307698726654053,
-0.8498122692108154,
0.6420162320137024,
-0.7380486130714417,
-0.19766627252101898,
-0.5538029074668884,
-0.66041499376297,
-0.026864660903811455,
-0.31868284940719604,
0.5847036242485046,
0.6423505544662476,
0.08264723420143127,
0.3651980459690094,
-0.3460867702960968... |
func fromDecimal(new, dec int) string {
res := ""
if dec == 0 {
return "0"
}
for dec != 0 {
newC := dec % new
if newC < 10 {
res += string('0' + newC)
} else {
res += string('A' + newC - 10)
}
dec /= new
}
return res
} | [
0.5622647404670715,
-0.5302728414535522,
0.5896005630493164,
-0.5294168591499329,
-0.9560269117355347,
-0.010643037967383862,
-0.787312388420105,
-0.972254753112793,
-0.41927939653396606,
-0.36753302812576294,
0.7867098450660706,
-0.18291056156158447,
0.2864300012588501,
-0.199494764208793... |
func main() {
var counter uint64
var wg sync.WaitGroup
const gs = 50
wg.Add(50)
//number of goroutines
for i := 0; i < gs; i++ {
go func() {
atomic.AddUint64(&counter, 1)
r := atomic.LoadUint64(&counter)
fmt.Println(r)
wg.Done()
}()
}
wg.Wait()
fmt.Println(counter) // should be 50
} | [
0.10453779995441437,
1.2942790985107422,
0.6603102087974548,
0.11290348321199417,
0.0731421560049057,
0.3111925423145294,
0.5397993922233582,
0.018766969442367554,
-0.5463990569114685,
0.05198771506547928,
-0.29414495825767517,
0.5571873784065247,
-0.47103646397590637,
0.7225254774093628,
... |
func main() {
var profile string
target := os.Args[1]
if v, ok := os.LookupEnv("AWS_PROFILE"); ok {
profile = v
} else {
if len(os.Args) > 1 {
profile = os.Args[1]
target = os.Args[2]
}
}
s := session.Must(session.NewSessionWithOptions(
session.Options{
Profile: profile,
SharedConf... | [
-0.15961860120296478,
-0.2297281175851822,
0.8461088538169861,
0.33436062932014465,
0.4020945727825165,
0.5081062316894531,
0.8332043886184692,
-0.7063813805580139,
0.20492032170295715,
0.0672367587685585,
-0.5379185676574707,
1.0878349542617798,
-0.056986477226018906,
-0.5676826238632202,... |
func NewInlineResponse200115Company() *InlineResponse200115Company {
this := InlineResponse200115Company{}
return &this
} | [
-0.24241594970226288,
-0.7863839268684387,
0.011224052868783474,
0.15969988703727722,
0.21379287540912628,
0.11217784881591797,
0.6913427710533142,
0.5151858925819397,
0.1949450671672821,
-0.1726575493812561,
-0.43969935178756714,
-0.5734591484069824,
-1.0532978773117065,
0.223121389746665... |
func NewInlineResponse200115CompanyWithDefaults() *InlineResponse200115Company {
this := InlineResponse200115Company{}
return &this
} | [
-0.25538021326065063,
-0.28565675020217896,
0.14165470004081726,
0.2717723250389099,
1.1837528944015503,
0.11693110316991806,
0.005881007295101881,
0.27213770151138306,
0.2512107193470001,
-0.5525113344192505,
-0.7223713397979736,
-1.5485851764678955,
-1.2113338708877563,
0.228082537651062... |
func (o *InlineResponse200115Company) GetName() string {
if o == nil || o.Name == nil {
var ret string
return ret
}
return *o.Name
} | [
0.13985449075698853,
0.3442882299423218,
0.08852557092905045,
1.0050245523452759,
-0.09144997596740723,
-0.7468121647834778,
0.8248782753944397,
-0.40618187189102173,
0.6865283250808716,
0.24094651639461517,
-0.39247044920921326,
-1.7719310522079468,
-0.7914339303970337,
0.4537041783332824... |
func (o *InlineResponse200115Company) GetNameOk() (*string, bool) {
if o == nil || o.Name == nil {
return nil, false
}
return o.Name, true
} | [
-0.23840637505054474,
0.030265994369983673,
0.3816910684108734,
0.7021540999412537,
-0.3423425853252411,
0.41383907198905945,
0.15090492367744446,
-0.17642740905284882,
0.11426407843828201,
1.1549222469329834,
-1.049615740776062,
-1.0752259492874146,
-0.015830708667635918,
0.34077584743499... |
func (o *InlineResponse200115Company) HasName() bool {
if o != nil && o.Name != nil {
return true
}
return false
} | [
0.01866866834461689,
0.1466113030910492,
0.18146046996116638,
0.6275278329849243,
0.26598045229911804,
-0.38978034257888794,
0.2774318754673004,
-0.01438151765614748,
0.39217624068260193,
0.4810744524002075,
-0.6983896493911743,
-1.4746674299240112,
-0.712907612323761,
-0.10725835710763931... |
func (o *InlineResponse200115Company) SetName(v string) {
o.Name = &v
} | [
-0.25939828157424927,
-0.1569736897945404,
-0.2572101652622223,
0.347708523273468,
-1.1429535150527954,
-0.34789079427719116,
0.11302614957094193,
-0.7706480026245117,
0.13468961417675018,
0.7348427176475525,
-0.3842664361000061,
0.23462793231010437,
-0.693094789981842,
-0.6176868677139282... |
func Speed(distance float64, startT, endT int64) int {
distInMiles := distance * 0.00062137
startTime := time.Unix(startT, 0)
endTime := time.Unix(endT, 0)
speed := distInMiles/math.Abs(endTime.Sub(startTime).Hours())
//fmt.Println("Distance in Miles: ", distInMiles)
//fmt.Println("Time Difference: ", math.Abs(... | [
0.43679729104042053,
-0.029952486976981163,
0.706750214099884,
-0.07993420958518982,
-0.817681074142456,
0.8447442054748535,
0.25423455238342285,
0.38385728001594543,
-1.2439929246902466,
0.4530927240848541,
-0.3156721591949463,
0.6917299628257751,
-0.3774570822715759,
0.3520296812057495,
... |
func GetClient(willTimedout bool)(*etcdClient.Client, err){
var(
err error
client *etcdClient.Client
)
etcdClient.New(etcdClient.Config{
})
return err, client
} | [
0.810636043548584,
0.2145165205001831,
0.20384788513183594,
-0.4570613503456116,
-0.6567522287368774,
0.5493290424346924,
-0.5325002074241638,
-0.02108640968799591,
-0.1348806917667389,
-0.28246498107910156,
0.3373176157474518,
0.7472502589225769,
0.20456011593341827,
-0.7203947901725769,
... |
func DaskSchedulerService(dcontext dtypes.DaskContext) (*corev1.Service, error) {
const schedulerService = `
apiVersion: v1
kind: Service
metadata:
name: dask-scheduler-{{ .Name }}
namespace: {{ .Namespace }}
labels:
app.kubernetes.io/name: dask-scheduler
app.kubernetes.io/instance: "{{ .Name }}"
ap... | [
-0.7863139510154724,
0.01347406581044197,
0.7231995463371277,
-0.8515139818191528,
-0.5974600911140442,
-0.4479220509529114,
-0.11720141023397446,
-0.08638784289360046,
-0.353850781917572,
0.03591376915574074,
0.19165219366550446,
1.092349886894226,
-0.1898050606250763,
0.3070344030857086,... |
func DaskSchedulerDeployment(dcontext dtypes.DaskContext) (*appsv1.Deployment, error) {
const schedulerDeployment = `
apiVersion: apps/v1
kind: Deployment
metadata:
name: dask-scheduler-{{ .Name }}
namespace: {{ .Namespace }}
labels:
app.kubernetes.io/name: dask-scheduler
app.kubernetes.io/instance: "{{... | [
0.12489566206932068,
0.006639651022851467,
1.0536937713623047,
-0.20098049938678741,
-0.2674415707588196,
-0.31436267495155334,
0.4086840748786926,
0.8907179832458496,
-0.2463212013244629,
-0.17703023552894592,
0.2191874384880066,
0.5058645606040955,
1.3820610046386719,
0.11938245594501495... |
func DaskSchedulerNetworkPolicy(dcontext dtypes.DaskContext) (*networkingv1.NetworkPolicy, error) {
const schedulerNetworkPolicy = `
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: dask-scheduler-networkpolicy-{{ .Name }}
namespace: {{ .Namespace }}
labels:
app.kubernetes.io/name: dask-s... | [
-0.041142359375953674,
0.06359080970287323,
0.8565954566001892,
-0.4073781371116638,
0.17988239228725433,
0.38194796442985535,
-0.026583703234791756,
0.3050414025783539,
-0.10653512179851532,
-0.11855026334524155,
0.353386789560318,
-0.23748266696929932,
-0.20497804880142212,
0.22405995428... |
func ValidateTLSConfig(config *schema.TLS, configDefault *schema.TLS) (err error) {
if configDefault == nil {
return errors.New("must provide configDefault")
}
if config == nil {
return
}
if config.ServerName == "" {
config.ServerName = configDefault.ServerName
}
if config.MinimumVersion.Value == 0 {
... | [
-0.1494496613740921,
-0.16262054443359375,
0.567295253276825,
-0.2240620255470276,
-0.32032498717308044,
0.2938651442527771,
-0.47267624735832214,
-0.23243674635887146,
-0.3960775136947632,
0.9272906184196472,
-1.271871566772461,
0.033832766115665436,
0.31384801864624023,
0.678701281547546... |
func (m Map) Set(k Name, v interface{}) error {
switch v.(type) {
case nil:
m[k] = New(k, nil) // use default value
case uint8:
m[k] = New(k, []byte{v.(uint8)})
case int:
m[k] = New(k, []byte{uint8(v.(int))})
case string:
m[k] = New(k, []byte(v.(string)))
case []byte:
m[k] = New(k, []byte(v.([]byte)))
... | [
-0.9382064938545227,
-0.21804285049438477,
0.657971978187561,
-0.9126584529876709,
-0.8070913553237915,
0.12101547420024872,
-0.7222177386283875,
-0.3120778501033783,
-0.06617426127195358,
0.29249781370162964,
-1.1170340776443481,
0.6508162021636963,
-0.1435299515724182,
0.5501825213432312... |
func (n *Interface) Attributes() map[string]interface{} {
return map[string]interface{}{
"PhpDocComment": n.PhpDocComment,
}
} | [
-0.47699230909347534,
-0.7802040576934814,
0.2694225013256073,
-1.3159840106964111,
0.7243592143058777,
0.21055561304092407,
-0.35674014687538147,
-0.5648144483566284,
0.07691134512424469,
-0.4383904039859772,
0.12596599757671356,
-0.4533993601799011,
-0.12377500534057617,
1.07970857620239... |
func (n *Interface) Walk(v walker.Visitor) {
if v.EnterNode(n) == false {
return
}
if n.InterfaceName != nil {
vv := v.GetChildrenVisitor("InterfaceName")
n.InterfaceName.Walk(vv)
}
if n.Extends != nil {
vv := v.GetChildrenVisitor("Extends")
n.Extends.Walk(vv)
}
if n.Stmts != nil {
vv := v.GetChil... | [
-1.131409764289856,
1.2104191780090332,
0.7368245720863342,
-0.4011802673339844,
-0.3213140666484833,
0.5564923286437988,
1.6079320907592773,
-0.4275471866130829,
-0.05559206008911133,
-0.5257896184921265,
-0.6903136372566223,
-0.35451486706733704,
-0.29427778720855713,
1.3243474960327148,... |
func Connect(uri string) {
clientOptions := options.Client().ApplyURI(uri)
client, err := mongo.Connect(context.TODO(), clientOptions)
if err != nil {
log.Fatal(err)
}
if err := client.Ping(context.TODO(), nil); err != nil {
log.Fatal(err)
}
UserCollection = client.Database("obscura7").Collection("users"... | [
-0.10356808453798294,
0.29190027713775635,
0.6701854467391968,
0.6488838791847229,
0.26433664560317993,
1.3516080379486084,
-0.38846805691719055,
-1.1119135618209839,
-0.5753642916679382,
0.32270631194114685,
0.00991574116051197,
-0.009548118337988853,
-0.18623243272304535,
-0.069120645523... |
func GetBusiness(name string) ([]*BusiInfo, error) {
if name == "" {
return busiInfos, nil
}
for i, busiInfo := range busiInfos {
if busiInfo.Name == name {
return busiInfos[i : i+1], nil
}
}
return nil, i18n.BusinessNotFoundErr(name)
} | [
-1.217294454574585,
-0.13964518904685974,
0.589589536190033,
1.518781065940857,
-0.12026920169591904,
0.0919327437877655,
0.1331801563501358,
-0.46641507744789124,
-0.037646710872650146,
0.1530483365058899,
-1.0109378099441528,
0.4053855836391449,
-1.1806825399398804,
0.544231653213501,
... |
func AddBusiness(busiInfo *BusiInfo) error {
if busiInfo == nil || busiInfo.Name == "" {
return i18n.BusinessEmptyErr("nil")
}
busiInfo.Status = "NOTOPEN"
busiInfos = append(busiInfos, busiInfo)
return nil
} | [
-1.5598715543746948,
0.15107016265392303,
0.7127469778060913,
1.1034165620803833,
-0.22137762606143951,
1.0998762845993042,
0.033012598752975464,
0.3632982671260834,
0.26900070905685425,
-0.8792986273765564,
-0.3326786160469055,
-0.0023993151262402534,
-1.6386960744857788,
0.75048530101776... |
func StartBusiness(name string, channelID string) error {
if name == "" {
return i18n.BusinessEmptyErr("nil")
}
for _, binfo := range busiInfos {
if name == binfo.Name {
binfo.ChannelID = channelID
return nil
}
}
return i18n.BusinessNotFoundErr(name)
} | [
-0.2434300035238266,
-0.5466379523277283,
0.4241024851799011,
0.833143949508667,
0.18828265368938446,
0.13509723544120789,
-0.017524121329188347,
0.21228908002376556,
-0.21492810547351837,
0.047795698046684265,
-0.4816282391548157,
1.0991007089614868,
-1.138946533203125,
1.0334187746047974... |
func UpgradeBusiness(busiInfo *BusiInfo) error {
if busiInfo == nil || busiInfo.Name == "" {
return i18n.BusinessEmptyErr("nil")
}
for _, binfo := range busiInfos {
if busiInfo.Name == binfo.Name {
binfo.Chaincode = busiInfo.Chaincode
if busiInfo.Version <= binfo.Version {
return i18n.BusinessVersionT... | [
-1.1050983667373657,
-0.885776698589325,
0.7980180978775024,
1.0022505521774292,
0.004943325184285641,
0.15381503105163574,
-0.11264457553625107,
-0.1293978989124298,
-0.1741366684436798,
0.1879623383283615,
-0.8510295152664185,
0.2656037509441376,
-0.9731791019439697,
0.30980992317199707,... |
func (oe *OnceError) Set(e error) {
if e != nil {
oe.lock.Lock()
if oe.err == nil {
oe.err = e
}
oe.lock.Unlock()
}
} | [
-0.7403571009635925,
0.05739503353834152,
0.12863430380821228,
-0.2440672516822815,
0.36479565501213074,
0.06339257955551147,
0.3012799322605133,
0.12799401581287384,
0.4052865505218506,
-0.20302733778953552,
-0.1798306554555893,
0.16958045959472656,
-0.3475501537322998,
1.2591197490692139... |
func (oe *OnceError) Get() error {
oe.lock.Lock()
defer oe.lock.Unlock()
return oe.err
} | [
-0.8509590029716492,
-0.10066962242126465,
0.20762620866298676,
-0.09430308640003204,
0.39026618003845215,
-0.23819027841091156,
0.43118754029273987,
-0.484058678150177,
-0.2678668200969696,
-0.8458585739135742,
0.5795815587043762,
0.8988412022590637,
-1.0043730735778809,
-0.13745000958442... |
func ReportSingleApp(appName, infoFlag string) {
if err := common.VerifyAppName(appName); err != nil {
common.LogFail(err.Error())
}
resources, err := common.PropertyGetAll("resource", appName)
if err != nil {
return
}
flags := []string{}
infoFlags := map[string]string{}
for key, value := range resources ... | [
0.6771737337112427,
-0.5391906499862671,
1.1342006921768188,
0.1777649223804474,
0.1811055988073349,
0.8889508247375488,
0.4245551526546478,
-0.17643670737743378,
-0.6458733081817627,
0.17220427095890045,
0.38550806045532227,
0.14172594249248505,
-0.07333740592002869,
0.8259758353233337,
... |
func GetResourceValue(appName string, processType string, resourceType string, key string) (string, error) {
resources, err := common.PropertyGetAll("resource", appName)
if err != nil {
return "", err
}
defaultValue := ""
for k, value := range resources {
if k == propertyKey("_default_", resourceType, key) {
... | [
0.22459851205348969,
-0.30610814690589905,
0.6630702614784241,
0.21116819977760315,
0.24586085975170135,
-0.5563955307006836,
-0.6863967776298523,
-0.3176751434803009,
-0.7441603541374207,
0.647365152835846,
0.8568390011787415,
0.23092778027057648,
-0.4239003360271454,
0.7097201943397522,
... |
func Right(str string, length int, pad string) string {
return str + times(pad, length-len(str))
} | [
1.1474635601043701,
0.46236228942871094,
0.5873609781265259,
-0.4851226806640625,
-1.0858291387557983,
1.137099266052246,
-1.6058380603790283,
-1.243501901626587,
0.16237981617450714,
-0.022978898137807846,
0.23634390532970428,
0.8104806542396545,
-0.03513901308178902,
-0.34736189246177673... |
func exists(path string) (bool, error) {
_, err := os.Stat(path)
if err == nil {
return true, nil
}
if os.IsNotExist(err) {
return false, nil
}
return true, err
} | [
-0.8568156957626343,
-0.3621275722980499,
0.7559777498245239,
-0.625164270401001,
0.6407709121704102,
0.9334520697593689,
-0.47478029131889343,
-0.03640573099255562,
-0.07248914986848831,
-0.41435757279396057,
-0.3668273687362671,
-0.22544513642787933,
0.2728641927242279,
0.346545904874801... |
func (c *Client) JobFromID(ctx context.Context, id string) (*Job, error) {
job, err := c.service.getJob(ctx, c.projectID, id)
if err != nil {
return nil, err
}
job.c = c
return job, nil
} | [
0.5221842527389526,
-0.4757941961288452,
0.07089535146951675,
-0.14215460419654846,
-0.47714048624038696,
0.8644195795059204,
-1.386022686958313,
-0.5347575545310974,
-0.0004501954244915396,
-0.39720937609672546,
0.04759739339351654,
0.35433197021484375,
-0.8437069654464722,
-0.23850309848... |
func setJobRef(job *bq.Job, jobID, projectID string) {
if jobID == "" {
return
}
// We don't check whether projectID is empty; the server will return an
// error when it encounters the resulting JobReference.
job.JobReference = &bq.JobReference{
JobId: jobID,
ProjectId: projectID,
}
} | [
0.5925900936126709,
0.41549327969551086,
0.18581563234329224,
-0.09945834428071976,
0.18085454404354095,
0.5563644766807556,
-0.49611741304397583,
0.05937366560101509,
-0.5566388368606567,
0.1087220087647438,
-0.2788456976413727,
1.1311920881271362,
-1.035998821258545,
1.0035427808761597,
... |
func (s *JobStatus) Done() bool {
return s.State == Done
} | [
-0.26058468222618103,
0.42986804246902466,
0.3450806736946106,
0.5834148526191711,
0.020512554794549942,
0.23289908468723297,
-1.020609974861145,
0.16019195318222046,
-0.1381811648607254,
-0.6569713354110718,
-1.3030282258987427,
0.030092595145106316,
0.5237371325492859,
0.2656652331352234... |
func (s *JobStatus) Err() error {
return s.err
} | [
0.3866520822048187,
-0.2617206573486328,
-0.24929161369800568,
1.166975736618042,
-1.0694929361343384,
1.204819679260254,
-0.31757447123527527,
0.8593303561210632,
-0.13640417158603668,
-1.647708773612976,
0.23054248094558716,
0.43821457028388977,
0.6248961687088013,
0.9489915370941162,
... |
func (j *Job) Status(ctx context.Context) (*JobStatus, error) {
js, err := j.c.service.jobStatus(ctx, j.projectID, j.jobID)
if err != nil {
return nil, err
}
// Fill in the client field of Tables in the statistics.
if js.Statistics != nil {
if qs, ok := js.Statistics.Details.(*QueryStatistics); ok {
for _, ... | [
0.2716441750526428,
0.4604640007019043,
0.14356286823749542,
-0.2968446910381317,
-0.2771865427494049,
-0.04880767688155174,
0.12138450890779495,
-0.4685061573982239,
0.18649333715438843,
-0.3165941834449768,
0.13137046992778778,
0.9048874974250793,
0.16957901418209076,
0.90367591381073,
... |
func (j *Job) Cancel(ctx context.Context) error {
return j.c.service.jobCancel(ctx, j.projectID, j.jobID)
} | [
0.9568825960159302,
0.2620328664779663,
0.19184546172618866,
0.4538533389568329,
-0.5683205127716064,
0.6566985845565796,
-0.3377721905708313,
0.11419906467199326,
-0.33564022183418274,
0.00014573194494005293,
0.20651213824748993,
0.8666025996208191,
-0.409453809261322,
0.5327346324920654,... |
func (j *Job) Wait(ctx context.Context) (*JobStatus, error) {
if j.isQuery {
// We can avoid polling for query jobs.
if _, err := j.c.service.waitForQuery(ctx, j.projectID, j.jobID); err != nil {
return nil, err
}
// Note: extra RPC even if you just want to wait for the query to finish.
js, err := j.Statu... | [
-0.3277069628238678,
0.6217105388641357,
0.529789924621582,
-0.672723650932312,
0.32750147581100464,
0.5690532326698303,
-0.21837888658046722,
-0.7548320889472961,
0.11040784418582916,
-0.24324145913124084,
-0.21259914338588715,
0.43037471175193787,
0.010950636118650436,
0.0089398082345724... |
func (j *Job) Read(ctx context.Context) (*RowIterator, error) {
if !j.isQuery {
return nil, errors.New("bigquery: cannot read from a non-query job")
}
var projectID string
if j.destinationTable != nil {
projectID = j.destinationTable.ProjectId
} else {
projectID = j.c.projectID
}
schema, err := j.c.servic... | [
0.05438511073589325,
0.3023233115673065,
0.3507058322429657,
-0.06994041800498962,
-0.8780732750892639,
0.1699075549840927,
-0.2601332664489746,
-0.13219662010669708,
-0.8897001147270203,
0.11780545860528946,
1.10836660861969,
0.9490628838539124,
0.10749239474534988,
0.28609758615493774,
... |
func errnoErr(e syscall.Errno) error {
switch e {
case 0:
return nil
case errnoERROR_IO_PENDING:
return errERROR_IO_PENDING
}
// TODO: add more here, after collecting data on the common
// error values see on Windows. (perhaps when running
// all.bat?)
return e
} | [
-0.11503598093986511,
-0.6496804356575012,
0.3273605704307556,
0.6873082518577576,
-0.8192781209945679,
-0.19719597697257996,
0.24358360469341278,
0.12273427098989487,
0.43817389011383057,
-0.5756725668907166,
0.13334745168685913,
-0.5084919333457947,
-0.026515766978263855,
1.7038335800170... |
func Add(a int, b int) int {
return a + b
} | [
-0.5020919442176819,
-0.6494167447090149,
0.549136221408844,
-0.4926835298538208,
-0.4210246503353119,
0.8518465161323547,
-0.5425138473510742,
-0.23587417602539062,
0.14778922498226166,
-0.22810840606689453,
0.33038756251335144,
1.0249221324920654,
-0.5950599312782288,
0.00163314968813210... |
func createTransaction(request Request) (Transaction, error) {
amount, err := strconv.ParseFloat(request.Load_amount[1:], 64)
transaction := Transaction{
Id: TransactionId(request.Id),
Customer_id: CustomerId(request.Customer_id),
Amount: amount,
Time: request.Time,
}
return transactio... | [
0.5359362959861755,
-0.60130375623703,
0.532532274723053,
-0.15742626786231995,
0.32912689447402954,
-0.3725416958332062,
-0.6897422075271606,
-0.871134877204895,
-0.18862412869930267,
0.09419809281826019,
-0.18851707875728607,
-0.6711623072624207,
-0.13134130835533142,
0.20430868864059448... |
func shouldLoadFund(transaction Transaction, customers map[CustomerId][]Transaction) bool {
loadFundTime, err := time.Parse(time.RFC3339, transaction.Time)
if err != nil {
return false
}
year, month, day := loadFundTime.UTC().Date()
_, week := loadFundTime.UTC().ISOWeek()
loadedAmoutOnTheDay := 0.0
loadedTim... | [
0.12917691469192505,
0.274408757686615,
0.8314938545227051,
-0.49048033356666565,
-1.113270878791809,
-0.38971206545829773,
-0.5435255765914917,
-0.43346381187438965,
0.10854754596948624,
-0.6780018210411072,
0.6403948664665222,
-0.5356096625328064,
0.09920860826969147,
0.7912650108337402,... |
func TestTestComand_Validate(t *testing.T) {
dur, _ := time.ParseDuration("2s")
ctx, _ := context.WithTimeout(context.Background(), dur)
com := base.NewTestCommand("test")
props := com.Properties()
if validProp, err := props.Get(base_test.PROPERTY_ID_OPERATIONVALID); err != nil {
t.Error("TestCommand Propertie... | [
0.5115974545478821,
-0.564281165599823,
0.7795615196228027,
0.5747194886207581,
0.277639240026474,
0.5081413388252258,
0.5020198225975037,
-0.0948200449347496,
0.08607728779315948,
-0.6622004508972168,
0.6153629422187805,
-0.42527297139167786,
-0.9306578636169434,
-0.13683922588825226,
0... |
func TestTestComand_Exec_Success(t *testing.T) {
dur, _ := time.ParseDuration("2s")
ctx, _ := context.WithTimeout(context.Background(), dur)
com := base.NewTestCommand("test")
props := com.Properties()
if successProp, err := props.Get(base_test.PROPERTY_ID_OPERATIONSUCCESS); err != nil {
t.Error("TestCommand P... | [
0.4883197844028473,
-0.3175850808620453,
0.5747225880622864,
0.8232487440109253,
0.2716439366340637,
0.9344916939735413,
0.6034567356109619,
-0.14097502827644348,
-0.12810778617858887,
-0.5334815382957458,
0.34154024720191956,
-0.4166874289512634,
-0.30379652976989746,
-0.12919069826602936... |
func TestTestComand_Exec_Value(t *testing.T) {
// com := NewTestCommand()
} | [
-0.3133380711078644,
-0.9050516486167908,
0.46310412883758545,
0.938656747341156,
1.0544986724853516,
0.4167017340660095,
1.41786789894104,
-0.5777264833450317,
0.42774778604507446,
-1.012680172920227,
-0.3267648220062256,
0.437214195728302,
-0.422812819480896,
0.6887413263320923,
-0.567... |
func main() {
host := uploadServer()
page := rod.New().MustConnect().MustPage(host)
page.MustElement(`input[name="upload"]`).MustSetFiles("./main.go")
page.MustElement(`input[name="submit"]`).MustClick()
log.Printf(
"original size: %d, upload size: %s",
size("./main.go"),
page.MustElement("#result").MustT... | [
0.07853241264820099,
0.9216708540916443,
0.826048731803894,
0.39368897676467896,
0.4546416699886322,
0.20944784581661224,
0.6269516944885254,
0.22926314175128937,
-0.703382670879364,
0.11070570349693298,
-0.14175011217594147,
0.27940842509269714,
-0.48571592569351196,
0.5517038106918335,
... |
func size(file string) int {
fi, err := os.Stat(file)
if err != nil {
panic(err)
}
return int(fi.Size())
} | [
0.4392280578613281,
0.7978748679161072,
0.46225011348724365,
-0.5515360832214355,
-0.5327889323234558,
0.7310305237770081,
1.0890144109725952,
-0.020621752366423607,
-0.981624186038971,
0.2088642567396164,
0.49136799573898315,
-0.007889572530984879,
-0.3380696177482605,
0.38357633352279663... |
func (sc Funcs) Deposit(ctx wasmlib.ScFuncClientContext) *DepositCall {
return &DepositCall{Func: wasmlib.NewScFunc(ctx, HScName, HFuncDeposit)}
} | [
0.04470451921224594,
0.39417436718940735,
0.3649907112121582,
-0.15140478312969208,
-0.10916043817996979,
-0.1949962079524994,
0.32169806957244873,
-0.7256507873535156,
-0.35287216305732727,
-0.9419661164283752,
0.04487337917089462,
0.8834794163703918,
0.052055004984140396,
0.8260975480079... |
func (sc Funcs) FoundryCreateNew(ctx wasmlib.ScFuncClientContext) *FoundryCreateNewCall {
f := &FoundryCreateNewCall{Func: wasmlib.NewScFunc(ctx, HScName, HFuncFoundryCreateNew)}
f.Params.Proxy = wasmlib.NewCallParamsProxy(&f.Func.ScView)
wasmlib.NewCallResultsProxy(&f.Func.ScView, &f.Results.Proxy)
return f
} | [
-0.1611846536397934,
-0.2132626324892044,
0.25977325439453125,
-0.22854304313659668,
0.14975309371948242,
-0.6138205528259277,
0.32559776306152344,
-0.49996840953826904,
-0.08916148543357849,
-0.9205295443534851,
-0.11640965193510056,
0.48608577251434326,
0.3971162736415863,
0.596844971179... |
func (sc Funcs) FoundryDestroy(ctx wasmlib.ScFuncClientContext) *FoundryDestroyCall {
f := &FoundryDestroyCall{Func: wasmlib.NewScFunc(ctx, HScName, HFuncFoundryDestroy)}
f.Params.Proxy = wasmlib.NewCallParamsProxy(&f.Func.ScView)
return f
} | [
-0.07508739084005356,
0.17090989649295807,
0.17837630212306976,
-0.531769871711731,
0.6304407715797424,
-1.1300632953643799,
0.22427120804786682,
0.31303802132606506,
0.5327075719833374,
-0.37042737007141113,
-0.1576603353023529,
0.8090234398841858,
-0.5335134863853455,
0.5273343920707703,... |
func (sc Funcs) FoundryModifySupply(ctx wasmlib.ScFuncClientContext) *FoundryModifySupplyCall {
f := &FoundryModifySupplyCall{Func: wasmlib.NewScFunc(ctx, HScName, HFuncFoundryModifySupply)}
f.Params.Proxy = wasmlib.NewCallParamsProxy(&f.Func.ScView)
return f
} | [
-0.6736029982566833,
0.021581120789051056,
0.47840413451194763,
-0.40127426385879517,
-0.277608722448349,
-1.5817320346832275,
0.22568459808826447,
0.5498564839363098,
0.9886350035667419,
0.3382822573184967,
-0.19263121485710144,
0.9487236142158508,
-0.33607038855552673,
0.4909779727458954... |
func (sc Funcs) TransferAccountToChain(ctx wasmlib.ScFuncClientContext) *TransferAccountToChainCall {
f := &TransferAccountToChainCall{Func: wasmlib.NewScFunc(ctx, HScName, HFuncTransferAccountToChain)}
f.Params.Proxy = wasmlib.NewCallParamsProxy(&f.Func.ScView)
return f
} | [
0.42292067408561707,
-0.13598355650901794,
0.47337213158607483,
0.05469987168908119,
0.4002542197704315,
-0.07661564648151398,
1.0818911790847778,
-0.07263898849487305,
0.37699252367019653,
-0.19169914722442627,
-0.23755230009555817,
1.4544578790664673,
0.0876045823097229,
-0.2574984133243... |
func (sc Funcs) TransferAllowanceTo(ctx wasmlib.ScFuncClientContext) *TransferAllowanceToCall {
f := &TransferAllowanceToCall{Func: wasmlib.NewScFunc(ctx, HScName, HFuncTransferAllowanceTo)}
f.Params.Proxy = wasmlib.NewCallParamsProxy(&f.Func.ScView)
return f
} | [
1.0485073328018188,
0.04621315002441406,
0.8729227185249329,
-0.9203243851661682,
-0.6059761643409729,
-0.25679343938827515,
0.35497522354125977,
0.16358843445777893,
0.6601508259773254,
0.33746615052223206,
0.5779022574424744,
1.2013102769851685,
0.4041796028614044,
-0.047445882111787796,... |
func (sc Funcs) Withdraw(ctx wasmlib.ScFuncClientContext) *WithdrawCall {
return &WithdrawCall{Func: wasmlib.NewScFunc(ctx, HScName, HFuncWithdraw)}
} | [
-0.10874462872743607,
0.6325129866600037,
0.6042712330818176,
-0.23764841258525848,
-0.2955242693424225,
-0.3587304353713989,
-0.06239296868443489,
-0.5626973509788513,
0.35949575901031494,
-1.2694144248962402,
-0.05934242904186249,
0.9289482831954956,
-0.10660523176193237,
0.3344814479351... |
func (sc Funcs) AccountFoundries(ctx wasmlib.ScViewClientContext) *AccountFoundriesCall {
f := &AccountFoundriesCall{Func: wasmlib.NewScView(ctx, HScName, HViewAccountFoundries)}
f.Params.Proxy = wasmlib.NewCallParamsProxy(f.Func)
wasmlib.NewCallResultsProxy(f.Func, &f.Results.Proxy)
return f
} | [
0.11437243223190308,
0.613887369632721,
0.36579522490501404,
0.21582697331905365,
0.47469037771224976,
-0.5976511836051941,
1.381453037261963,
-0.45552217960357666,
0.40195849537849426,
-0.8932259678840637,
0.6828368902206421,
1.3996022939682007,
0.4137871265411377,
0.6238686442375183,
-... |
func (sc Funcs) AccountNFTAmount(ctx wasmlib.ScViewClientContext) *AccountNFTAmountCall {
f := &AccountNFTAmountCall{Func: wasmlib.NewScView(ctx, HScName, HViewAccountNFTAmount)}
f.Params.Proxy = wasmlib.NewCallParamsProxy(f.Func)
wasmlib.NewCallResultsProxy(f.Func, &f.Results.Proxy)
return f
} | [
-0.2703530192375183,
0.1913231611251831,
0.35141557455062866,
-0.2598109841346741,
-0.3994489908218384,
-0.7138516306877136,
0.9594705700874329,
-0.42271649837493896,
0.40109360218048096,
-0.15841475129127502,
-0.16610491275787354,
1.1743216514587402,
0.3691667914390564,
0.7578063011169434... |
func (sc Funcs) AccountNFTAmountInCollection(ctx wasmlib.ScViewClientContext) *AccountNFTAmountInCollectionCall {
f := &AccountNFTAmountInCollectionCall{Func: wasmlib.NewScView(ctx, HScName, HViewAccountNFTAmountInCollection)}
f.Params.Proxy = wasmlib.NewCallParamsProxy(f.Func)
wasmlib.NewCallResultsProxy(f.Func, &f... | [
-0.25768712162971497,
-0.18340401351451874,
0.46292954683303833,
-0.39390724897384644,
-0.5044345259666443,
0.03652225807309151,
0.7004159092903137,
-0.8646390438079834,
-0.2100551724433899,
-0.06424389034509659,
-0.20929494500160217,
0.8034284114837646,
0.11952533572912216,
1.040403604507... |
func (sc Funcs) AccountNFTs(ctx wasmlib.ScViewClientContext) *AccountNFTsCall {
f := &AccountNFTsCall{Func: wasmlib.NewScView(ctx, HScName, HViewAccountNFTs)}
f.Params.Proxy = wasmlib.NewCallParamsProxy(f.Func)
wasmlib.NewCallResultsProxy(f.Func, &f.Results.Proxy)
return f
} | [
-0.2491401880979538,
0.5387651324272156,
0.32016634941101074,
0.07798522710800171,
-0.127693310379982,
-0.7229970097541809,
0.6700057983398438,
-1.0386009216308594,
0.8832864761352539,
-0.3352873623371124,
0.2898317873477936,
1.1190143823623657,
0.23534034192562103,
0.604096531867981,
-0... |
func (sc Funcs) AccountNFTsInCollection(ctx wasmlib.ScViewClientContext) *AccountNFTsInCollectionCall {
f := &AccountNFTsInCollectionCall{Func: wasmlib.NewScView(ctx, HScName, HViewAccountNFTsInCollection)}
f.Params.Proxy = wasmlib.NewCallParamsProxy(f.Func)
wasmlib.NewCallResultsProxy(f.Func, &f.Results.Proxy)
ret... | [
-0.09257099032402039,
0.21511691808700562,
0.5051199197769165,
-0.027193035930395126,
-0.6257293224334717,
-0.45585760474205017,
0.8473655581474304,
-0.6595048904418945,
0.3130403757095337,
-0.33752354979515076,
0.006093904841691256,
1.0255566835403442,
-0.020819704979658127,
0.83716922998... |
func (sc Funcs) Accounts(ctx wasmlib.ScViewClientContext) *AccountsCall {
f := &AccountsCall{Func: wasmlib.NewScView(ctx, HScName, HViewAccounts)}
wasmlib.NewCallResultsProxy(f.Func, &f.Results.Proxy)
return f
} | [
-0.08072131872177124,
0.9631661772727966,
0.5145571827888489,
-0.28492772579193115,
-0.29370054602622986,
-0.5457612872123718,
0.23520289361476898,
-0.5083299875259399,
0.5830622911453247,
-0.8977015018463135,
0.6326053738594055,
1.1888383626937866,
-0.07189594209194183,
0.2986085414886474... |
func (sc Funcs) Balance(ctx wasmlib.ScViewClientContext) *BalanceCall {
f := &BalanceCall{Func: wasmlib.NewScView(ctx, HScName, HViewBalance)}
f.Params.Proxy = wasmlib.NewCallParamsProxy(f.Func)
wasmlib.NewCallResultsProxy(f.Func, &f.Results.Proxy)
return f
} | [
-0.0010498588671907783,
0.3174983561038971,
0.5973579287528992,
-0.048957858234643936,
0.3143368065357208,
-0.6648926734924316,
-0.2276885211467743,
-1.090827226638794,
0.6381452083587646,
-0.49019336700439453,
0.8389617800712585,
0.8585742115974426,
-0.48333486914634705,
0.721887886524200... |
func (sc Funcs) BalanceBaseToken(ctx wasmlib.ScViewClientContext) *BalanceBaseTokenCall {
f := &BalanceBaseTokenCall{Func: wasmlib.NewScView(ctx, HScName, HViewBalanceBaseToken)}
f.Params.Proxy = wasmlib.NewCallParamsProxy(f.Func)
wasmlib.NewCallResultsProxy(f.Func, &f.Results.Proxy)
return f
} | [
-0.015286085195839405,
-0.43117213249206543,
0.6664847731590271,
-0.2526125907897949,
0.4899425804615021,
-0.22693085670471191,
0.04849623888731003,
-0.1044500321149826,
0.20761117339134216,
-0.5950283408164978,
-0.6737275123596191,
1.1974014043807983,
-0.5384392738342285,
0.29945096373558... |
func (sc Funcs) BalanceNativeToken(ctx wasmlib.ScViewClientContext) *BalanceNativeTokenCall {
f := &BalanceNativeTokenCall{Func: wasmlib.NewScView(ctx, HScName, HViewBalanceNativeToken)}
f.Params.Proxy = wasmlib.NewCallParamsProxy(f.Func)
wasmlib.NewCallResultsProxy(f.Func, &f.Results.Proxy)
return f
} | [
-0.31727921962738037,
-0.5610114932060242,
0.6135185360908508,
-0.3180343508720398,
-0.23258088529109955,
-0.095657579600811,
-0.7446658611297607,
-0.5138617157936096,
-0.11450912803411484,
-0.6134071350097656,
-0.6088823080062866,
0.8185827136039734,
-0.0274210125207901,
0.444427043199539... |
func (sc Funcs) FoundryOutput(ctx wasmlib.ScViewClientContext) *FoundryOutputCall {
f := &FoundryOutputCall{Func: wasmlib.NewScView(ctx, HScName, HViewFoundryOutput)}
f.Params.Proxy = wasmlib.NewCallParamsProxy(f.Func)
wasmlib.NewCallResultsProxy(f.Func, &f.Results.Proxy)
return f
} | [
0.5881044268608093,
0.12097515910863876,
0.33711206912994385,
-0.5221841931343079,
-0.13023436069488525,
-1.6578038930892944,
0.7258756160736084,
-0.45091012120246887,
0.2142072468996048,
-0.7485601305961609,
-0.34734678268432617,
0.7975588440895081,
-0.21914294362068176,
0.738591670989990... |
func (sc Funcs) GetAccountNonce(ctx wasmlib.ScViewClientContext) *GetAccountNonceCall {
f := &GetAccountNonceCall{Func: wasmlib.NewScView(ctx, HScName, HViewGetAccountNonce)}
f.Params.Proxy = wasmlib.NewCallParamsProxy(f.Func)
wasmlib.NewCallResultsProxy(f.Func, &f.Results.Proxy)
return f
} | [
0.10166879743337631,
0.46693262457847595,
0.8543601632118225,
0.8742049932479858,
0.040636707097291946,
-0.97076016664505,
1.2543914318084717,
-0.5158712267875671,
0.4636771082878113,
-0.6775644421577454,
0.9775992631912231,
1.2451245784759521,
-0.1331452876329422,
-0.11010143905878067,
... |
func (sc Funcs) GetNativeTokenIDRegistry(ctx wasmlib.ScViewClientContext) *GetNativeTokenIDRegistryCall {
f := &GetNativeTokenIDRegistryCall{Func: wasmlib.NewScView(ctx, HScName, HViewGetNativeTokenIDRegistry)}
wasmlib.NewCallResultsProxy(f.Func, &f.Results.Proxy)
return f
} | [
-0.13995343446731567,
0.3728362023830414,
0.2973676025867462,
-0.11658947914838791,
-0.23757703602313995,
-0.3681240975856781,
-0.8250062465667725,
-0.0884144976735115,
-0.17423589527606964,
-0.9864317774772644,
-0.45616114139556885,
1.8491214513778687,
-0.04283500462770462,
0.268520683050... |
func (sc Funcs) NftData(ctx wasmlib.ScViewClientContext) *NftDataCall {
f := &NftDataCall{Func: wasmlib.NewScView(ctx, HScName, HViewNftData)}
f.Params.Proxy = wasmlib.NewCallParamsProxy(f.Func)
wasmlib.NewCallResultsProxy(f.Func, &f.Results.Proxy)
return f
} | [
0.05324804410338402,
1.0294257402420044,
0.4935387372970581,
-0.6160567998886108,
-0.566944420337677,
0.1785685271024704,
-0.7324150800704956,
-1.0322808027267456,
-0.025074098259210587,
-1.0512064695358276,
0.018954966217279434,
1.4316235780715942,
-0.3455163836479187,
1.3614856004714966,... |
func (sc Funcs) TotalAssets(ctx wasmlib.ScViewClientContext) *TotalAssetsCall {
f := &TotalAssetsCall{Func: wasmlib.NewScView(ctx, HScName, HViewTotalAssets)}
wasmlib.NewCallResultsProxy(f.Func, &f.Results.Proxy)
return f
} | [
-0.03142906725406647,
0.7012178301811218,
0.7654674053192139,
-0.6876282691955566,
-0.1849287748336792,
-0.9530938863754272,
1.1478265523910522,
-0.2975945770740509,
0.8382316827774048,
-0.473986953496933,
-0.15456148982048035,
0.7597829103469849,
-0.24694636464118958,
-0.4679013788700104,... |
func getClientTLSConfig() (*tls.Config, error) {
// XXX Add flags for server cert path.
caCert, err := ioutil.ReadFile("./certs/server.cert")
if err != nil {
return nil, errors.Wrap(err, "Creating TLS config failed")
}
certPool := x509.NewCertPool()
certPool.AppendCertsFromPEM(caCert)
return &tls.Config{RootCA... | [
1.4694265127182007,
-0.0507204607129097,
0.4389135539531708,
-0.17307431995868683,
-1.1739928722381592,
0.2726227343082428,
0.36639246344566345,
-0.33552056550979614,
-0.7922840714454651,
0.35395440459251404,
-0.9881196022033691,
0.4129801392555237,
0.36877357959747314,
0.9239037036895752,... |
func NewClient(address string, port uint16, path string) (*Client, error) {
// XXX Other directory checks ? eg. permissions of directory (and contained files/dirs) ?
if !isDirectory(path) {
return nil, fmt.Errorf("%s: Path not a directory", path)
}
absPath, err := filepath.Abs(path)
if err != nil {
return nil,... | [
0.7587043642997742,
-0.24088038504123688,
0.7090138792991638,
-0.4396635890007019,
-1.0208156108856201,
-0.15189674496650696,
0.932012140750885,
-0.3074203431606293,
0.06104413792490959,
0.24963214993476868,
0.33814719319343567,
0.4143266975879669,
0.2469109743833542,
-0.3356004059314728,
... |
func (c *Client) serverConnect() (*rpc.Client, error) {
conn, err := tls.Dial("tcp", c.server, c.config)
if err != nil {
return nil, err
}
// XXX Replace with NewClientWithCodec() to use a custom RPC encoder,
// to not buffer file content in Request.Data
return rpc.NewClient(conn), nil
} | [
-0.2312125712633133,
-0.8803649544715881,
0.3418404757976532,
-0.45357373356819153,
-0.2550998330116272,
0.3959195911884308,
-0.3156587481498718,
-0.781955361366272,
-1.0005308389663696,
1.0286470651626587,
-0.4076293110847473,
0.1988363116979599,
-1.0770046710968018,
0.2139301598072052,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.