text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func Operation(value, requiredValue string, operation oval.Operation) bool {
switch operation {
case oval.OpEquals:
return value == requiredValue
case oval.OpNotEquals:
return value != requiredValue
case oval.OpCaseInsensitiveEquals:
return strings.EqualFold(value, requiredValue)
case oval.OpCaseInsensitiveN... | [
-1.3641722202301025,
-0.1536741703748703,
0.5854015946388245,
-0.17017561197280884,
-1.0119125843048096,
1.427602767944336,
0.547025203704834,
-0.06095535680651665,
0.7021759152412415,
1.0028396844863892,
-0.02795279584825039,
-0.5755144953727722,
-0.4563942551612854,
-0.629902184009552,
... |
func NewDiffer() *differ.Service {
return differ.New(&Differ{})
} | [
-0.4220649003982544,
-0.9137296676635742,
0.19200031459331512,
0.5013402104377747,
-0.8209150433540344,
0.6694599390029907,
-0.2176348716020584,
-0.8571107387542725,
0.008569769561290741,
-1.64752197265625,
-0.08164595067501068,
0.7039294242858887,
-0.6002776026725769,
0.9799937009811401,
... |
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client {
return &Client{transport: transport, formats: formats}
} | [
-0.053929269313812256,
-1.4649492502212524,
-0.09012952446937561,
-0.8262796401977539,
-0.550800621509552,
0.6438911557197571,
0.3526709973812103,
-0.1351967602968216,
-0.9943568110466003,
-0.7430494427680969,
-0.3152836263179779,
0.610390305519104,
0.2375689148902893,
0.0706297904253006,
... |
func (a *Client) AuthorizeCodeGrantFlowBasedCredentialV1(params *AuthorizeCodeGrantFlowBasedCredentialV1Params) (*AuthorizeCodeGrantFlowBasedCredentialV1OK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewAuthorizeCodeGrantFlowBasedCredentialV1Params()
}
result, err := a.trans... | [
-0.22425119578838348,
-0.23216168582439423,
0.7810161113739014,
0.11306824535131454,
0.023900574073195457,
-0.002577106701210141,
0.8768671154975891,
0.42429688572883606,
-0.8830983638763428,
0.41626232862472534,
0.659730076789856,
1.7036833763122559,
-0.5489929914474487,
0.678988099098205... |
func (a *Client) CodeGrantFlowBasedCredentialV1(params *CodeGrantFlowBasedCredentialV1Params) error {
// TODO: Validate the params before sending
if params == nil {
params = NewCodeGrantFlowBasedCredentialV1Params()
}
_, err := a.transport.Submit(&runtime.ClientOperation{
ID: "codeGrantFlowBase... | [
-0.11651294678449631,
-0.4331422448158264,
0.8504000306129456,
0.03330313414335251,
0.12314284592866898,
0.37542545795440674,
0.7068660259246826,
0.5609390735626221,
-0.7024164795875549,
0.38910141587257385,
0.013179694302380085,
1.6376265287399292,
-0.31245481967926025,
0.6218258738517761... |
func (a *Client) CodeGrantFlowOnExistingCredentialV1(params *CodeGrantFlowOnExistingCredentialV1Params) error {
// TODO: Validate the params before sending
if params == nil {
params = NewCodeGrantFlowOnExistingCredentialV1Params()
}
_, err := a.transport.Submit(&runtime.ClientOperation{
ID: "co... | [
-0.1951822191476822,
-0.9076907634735107,
0.78907310962677,
-0.14785897731781006,
0.028436675667762756,
0.24539361894130707,
0.5353100299835205,
0.21623536944389343,
-0.5219775438308716,
0.19663284718990326,
-0.49403807520866394,
1.637302279472351,
-0.2932978868484497,
0.74671471118927,
... |
func (a *Client) CreateCredentialV1(params *CreateCredentialV1Params) (*CreateCredentialV1OK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewCreateCredentialV1Params()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
ID: "createCredentialV1",
... | [
-0.9923097491264343,
-0.3840363323688507,
0.6237736940383911,
0.46080830693244934,
0.22418451309204102,
0.8020697236061096,
0.48195794224739075,
0.0814136490225792,
-0.3347148001194,
1.1170125007629395,
-0.47740715742111206,
0.9403796195983887,
-1.0355098247528076,
0.04535653069615364,
-... |
func (a *Client) DeleteCredentialByNameV1(params *DeleteCredentialByNameV1Params) (*DeleteCredentialByNameV1OK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewDeleteCredentialByNameV1Params()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
ID: ... | [
-1.0054351091384888,
-0.7557924389839172,
0.6572613716125488,
0.1299566775560379,
-0.7513707280158997,
0.2541165351867676,
0.4354170858860016,
-0.6218522191047668,
-0.16584129631519318,
1.3273957967758179,
-0.6816597580909729,
0.8062353730201721,
-0.8939906358718872,
0.07774235308170319,
... |
func (a *Client) DeleteCredentialByResourceCrnV1(params *DeleteCredentialByResourceCrnV1Params) (*DeleteCredentialByResourceCrnV1OK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewDeleteCredentialByResourceCrnV1Params()
}
result, err := a.transport.Submit(&runtime.ClientOpera... | [
-0.12523327767848969,
-0.8745360970497131,
0.4958959221839905,
0.7714466452598572,
0.14208461344242096,
0.4934752881526947,
0.7600274682044983,
-0.5231735706329346,
-0.01548861525952816,
0.2702994644641876,
-0.2939947545528412,
0.3015562891960144,
-0.4722168743610382,
0.22415485978126526,
... |
func (a *Client) DeleteCredentialsV1(params *DeleteCredentialsV1Params) (*DeleteCredentialsV1OK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewDeleteCredentialsV1Params()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
ID: "deleteCredentialsV1... | [
-1.1129735708236694,
-0.4233787953853607,
0.6569096446037292,
0.5555663704872131,
-0.002474547363817692,
-0.04153205081820488,
0.8001586198806763,
0.2095424383878708,
0.004923216067254543,
0.6095125079154968,
0.025551460683345795,
1.5109657049179077,
-1.0272341966629028,
0.2883928418159485... |
func (a *Client) GetCreateCredentialForCli(params *GetCreateCredentialForCliParams) (*GetCreateCredentialForCliOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewGetCreateCredentialForCliParams()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
ID: ... | [
-0.6327588558197021,
0.12412497401237488,
0.6173350214958191,
0.16713127493858337,
0.011507860384881496,
0.6049866080284119,
0.04467596113681793,
-0.9606215953826904,
-0.939191997051239,
0.0333169549703598,
-0.6572335362434387,
0.8097094297409058,
-0.29469338059425354,
0.1788458377122879,
... |
func (a *Client) GetCredentialByEnvironmentCrnV1(params *GetCredentialByEnvironmentCrnV1Params) (*GetCredentialByEnvironmentCrnV1OK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewGetCredentialByEnvironmentCrnV1Params()
}
result, err := a.transport.Submit(&runtime.ClientOpera... | [
-0.14311407506465912,
-0.3783605694770813,
0.8874174952507019,
0.6734198331832886,
0.7551681399345398,
0.5110923647880554,
0.6412487030029297,
-0.4424222409725189,
-0.9197952747344971,
0.8986992239952087,
-0.07164384424686432,
0.6299889087677002,
-0.7298589944839478,
0.1740177720785141,
... |
func (a *Client) GetCredentialByEnvironmentNameV1(params *GetCredentialByEnvironmentNameV1Params) (*GetCredentialByEnvironmentNameV1OK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewGetCredentialByEnvironmentNameV1Params()
}
result, err := a.transport.Submit(&runtime.ClientO... | [
-0.9394340515136719,
-0.627685546875,
0.8216255903244019,
0.532443106174469,
-0.04350771754980087,
0.6971849799156189,
0.45500490069389343,
-0.4148120582103729,
-0.6574227809906006,
1.5194123983383179,
0.017927441745996475,
0.6601435542106628,
-0.6579069495201111,
0.14084678888320923,
-0... |
func (a *Client) GetCredentialByNameV1(params *GetCredentialByNameV1Params) (*GetCredentialByNameV1OK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewGetCredentialByNameV1Params()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
ID: "getCredenti... | [
-1.1435039043426514,
-0.43877753615379333,
0.7782297134399414,
0.4154893159866333,
-0.4583897292613983,
0.044606830924749374,
0.1617586612701416,
-0.7442830204963684,
-0.4016547203063965,
1.4982587099075317,
-0.6532465815544128,
0.77663654088974,
-0.8463855981826782,
0.06887814402580261,
... |
func (a *Client) GetCredentialByResourceCrnV1(params *GetCredentialByResourceCrnV1Params) (*GetCredentialByResourceCrnV1OK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewGetCredentialByResourceCrnV1Params()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
ID: ... | [
-0.17864680290222168,
-0.3995850682258606,
0.6309700608253479,
0.8537051677703857,
0.4276631772518158,
0.21564915776252747,
0.49026817083358765,
-0.7177239656448364,
-0.338828444480896,
0.43141186237335205,
-0.35198086500167847,
0.33030733466148376,
-0.548634946346283,
0.12094788998365402,... |
func (a *Client) GetPrerequisitesForCloudPlatform(params *GetPrerequisitesForCloudPlatformParams) (*GetPrerequisitesForCloudPlatformOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewGetPrerequisitesForCloudPlatformParams()
}
result, err := a.transport.Submit(&runtime.ClientO... | [
-1.238182783126831,
0.5444644093513489,
0.5886061787605286,
-0.2164582759141922,
-0.14354413747787476,
0.615480363368988,
0.3214260935783386,
-0.7749452590942383,
-0.3893674314022064,
-0.5846183896064758,
-0.8957377672195435,
0.8845111727714539,
-1.157726526260376,
1.3866971731185913,
0.... |
func (a *Client) InteractiveLoginCredentialV1(params *InteractiveLoginCredentialV1Params) (*InteractiveLoginCredentialV1OK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewInteractiveLoginCredentialV1Params()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
ID: ... | [
-0.3933175504207611,
-0.9235296249389648,
0.8723239302635193,
-0.0563853494822979,
-0.8385149836540222,
0.1126004233956337,
0.5448904633522034,
0.22538135945796967,
-0.11474347114562988,
0.7414928078651428,
-0.39865851402282715,
1.1122291088104248,
-1.3314788341522217,
-1.2652521133422852,... |
func (a *Client) ListCredentialsV1(params *ListCredentialsV1Params) (*ListCredentialsV1OK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewListCredentialsV1Params()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
ID: "listCredentialsV1",
Metho... | [
-1.0969423055648804,
-0.26530367136001587,
0.7771157622337341,
0.36647218465805054,
0.13163438439369202,
-0.22373361885547638,
-0.20582588016986847,
0.106906458735466,
-0.009751137346029282,
1.1533162593841553,
-0.14712214469909668,
1.383160948753357,
-0.6075876951217651,
0.327661544084548... |
func (a *Client) PutCredentialV1(params *PutCredentialV1Params) (*PutCredentialV1OK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewPutCredentialV1Params()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
ID: "putCredentialV1",
Method: ... | [
-1.1815861463546753,
-0.7104128003120422,
0.730079710483551,
-0.02918621525168419,
-0.20750460028648376,
0.6258354783058167,
0.6767387390136719,
0.29570430517196655,
-0.3928973376750946,
1.4811381101608276,
-0.4917792081832886,
1.1665353775024414,
-1.332624077796936,
-0.5803642868995667,
... |
func (a *Client) VerifyCredentialByCrn(params *VerifyCredentialByCrnParams) (*VerifyCredentialByCrnOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewVerifyCredentialByCrnParams()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
ID: "verifyCrede... | [
0.14082537591457367,
-0.36774295568466187,
0.7070740461349487,
0.6315872669219971,
0.2486698031425476,
-0.07494132965803146,
0.20863695442676544,
-0.9553306698799133,
0.1324411928653717,
-0.1713186651468277,
-1.314965844154358,
0.9309301972389221,
-0.8156415820121765,
0.560709536075592,
... |
func (a *Client) VerifyCredentialByName(params *VerifyCredentialByNameParams) (*VerifyCredentialByNameOK, error) {
// TODO: Validate the params before sending
if params == nil {
params = NewVerifyCredentialByNameParams()
}
result, err := a.transport.Submit(&runtime.ClientOperation{
ID: "verifyC... | [
-0.6529261469841003,
-0.6365268230438232,
0.6031220555305481,
-0.18208636343479156,
-0.5761768221855164,
0.080649234354496,
0.33028995990753174,
-1.2336986064910889,
-0.2004842609167099,
0.9856026768684387,
-1.5056051015853882,
0.7044167518615723,
-0.9035232067108154,
0.46407726407051086,
... |
func (a *Client) SetTransport(transport runtime.ClientTransport) {
a.transport = transport
} | [
0.43289124965667725,
-0.16396044194698334,
0.06502870470285416,
0.17467869818210602,
-0.022012455388903618,
0.3327627182006836,
1.1535402536392212,
-0.7375835180282593,
0.32833772897720337,
-1.0833802223205566,
-1.4707483053207397,
0.4919946491718292,
-0.44076064229011536,
0.62663459777832... |
func ScanDriverValue(destPtr any, value driver.Value) error {
if destPtr == nil {
return errors.New("can't scan nil destPtr")
}
if destScanner, ok := destPtr.(sql.Scanner); ok {
return destScanner.Scan(value)
}
dest := reflect.ValueOf(destPtr)
if dest.Kind() != reflect.Ptr {
return fmt.Errorf("can't scan ... | [
-0.9454343914985657,
-0.5361261367797852,
1.0523645877838135,
-0.22825214266777039,
-0.7773401141166687,
-0.5514938235282898,
0.05555213242769241,
-0.7012090086936951,
0.040962208062410355,
0.8540751934051514,
0.8413737416267395,
0.46836555004119873,
-0.14198331534862518,
0.658715724945068... |
func TestEtcdctlCommands(t *testing.T) {
// setup
cs := framework.NewClientSet("")
pod, err := cs.CoreV1Interface.Pods("").List(context.TODO(), metav1.ListOptions{LabelSelector: "k8s-app=etcd"})
require.NoError(t, err)
podName := pod.Items[0].Name
testCases := []struct {
command string
skip bo... | [
0.3501213788986206,
-0.2797987163066864,
0.7735361456871033,
-0.7011898756027222,
0.6122819781303406,
0.4136820137500763,
-0.1879464089870453,
0.06182439625263214,
-0.17656546831130981,
-0.5018875002861023,
-0.15064173936843872,
-0.4123099148273468,
-0.1942465752363205,
-0.3013892769813537... |
func NewAddressGroup(ctx *pulumi.Context,
name string, args *AddressGroupArgs, opts ...pulumi.ResourceOption) (*AddressGroup, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.AddressGroupId == nil {
return nil, errors.New("invalid value for required argument ... | [
-0.839361310005188,
1.2519075870513916,
0.09317987412214279,
-0.3024241328239441,
-0.39614078402519226,
0.4542868435382843,
-0.20841939747333527,
-0.3890034556388855,
-0.24541336297988892,
0.4746860861778259,
-0.08642850071191788,
-0.7463226318359375,
-0.423899382352829,
0.6944005489349365... |
func GetAddressGroup(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *AddressGroupState, opts ...pulumi.ResourceOption) (*AddressGroup, error) {
var resource AddressGroup
err := ctx.ReadResource("google-native:networksecurity/v1beta1:AddressGroup", name, id, state, &resource, opts...)
if err != nil {
r... | [
-0.3489282727241516,
1.0852640867233276,
-0.04913799837231636,
-0.29169130325317383,
-0.5500665903091431,
-0.13846427202224731,
-0.6007593870162964,
-0.8411856889724731,
0.9472953081130981,
-0.25383105874061584,
0.39831119775772095,
0.46412208676338196,
-0.13449236750602722,
-0.35035425424... |
func (o AddressGroupOutput) AddressGroupId() pulumi.StringOutput {
return o.ApplyT(func(v *AddressGroup) pulumi.StringOutput { return v.AddressGroupId }).(pulumi.StringOutput)
} | [
0.14739546179771423,
0.8429340124130249,
-0.0411917120218277,
-0.19502468407154083,
-0.7393569946289062,
0.6121275424957275,
0.19706861674785614,
-0.04710274934768677,
0.9322438836097717,
-0.08898089081048965,
0.6500869393348694,
0.7337353229522705,
-0.10033794492483139,
-0.283367544412612... |
func (o AddressGroupOutput) Capacity() pulumi.IntOutput {
return o.ApplyT(func(v *AddressGroup) pulumi.IntOutput { return v.Capacity }).(pulumi.IntOutput)
} | [
-0.2993479371070862,
0.6736088395118713,
0.24530191719532013,
-0.10783397406339645,
-0.9707954525947571,
-0.2552071809768677,
0.98589026927948,
-0.36451584100723267,
0.11406484991312027,
0.17100770771503448,
0.4718486964702606,
0.10832573473453522,
0.1626632660627365,
-0.9130280613899231,
... |
func (o AddressGroupOutput) CreateTime() pulumi.StringOutput {
return o.ApplyT(func(v *AddressGroup) pulumi.StringOutput { return v.CreateTime }).(pulumi.StringOutput)
} | [
0.08982167392969131,
0.7875145673751831,
0.3381490111351013,
-0.7678162455558777,
0.018341107293963432,
0.5517292618751526,
-0.40812012553215027,
-0.6269599199295044,
0.20908419787883759,
0.9844753742218018,
-0.08376277983188629,
-0.07838243246078491,
-0.043655797839164734,
-0.409127652645... |
func (o AddressGroupOutput) Description() pulumi.StringOutput {
return o.ApplyT(func(v *AddressGroup) pulumi.StringOutput { return v.Description }).(pulumi.StringOutput)
} | [
-0.15539056062698364,
0.936797559261322,
0.04149504378437996,
-0.4488893747329712,
-0.7401066422462463,
0.16330115497112274,
-0.36078959703445435,
-0.34487080574035645,
0.25214171409606934,
0.43185070157051086,
0.7046308517456055,
0.8832463026046753,
-0.1488288938999176,
-0.541053771972656... |
func (o AddressGroupOutput) Items() pulumi.StringArrayOutput {
return o.ApplyT(func(v *AddressGroup) pulumi.StringArrayOutput { return v.Items }).(pulumi.StringArrayOutput)
} | [
-1.1722228527069092,
0.5592767596244812,
0.19556577503681183,
-0.25246432423591614,
0.24422474205493927,
0.23056308925151825,
-0.337255597114563,
-0.41877835988998413,
0.303731769323349,
0.09834705293178558,
-0.17195768654346466,
0.2567965090274811,
0.06457121670246124,
-0.6269370317459106... |
func (o AddressGroupOutput) Labels() pulumi.StringMapOutput {
return o.ApplyT(func(v *AddressGroup) pulumi.StringMapOutput { return v.Labels }).(pulumi.StringMapOutput)
} | [
-0.8888183832168579,
0.07374530285596848,
0.24376173317432404,
-1.0040504932403564,
-0.8893588781356812,
0.6099012494087219,
-0.34901201725006104,
-0.11516992002725601,
0.44346436858177185,
0.17490240931510925,
-0.004584547132253647,
-0.05454165115952492,
0.22366435825824738,
-0.5156919360... |
func (o AddressGroupOutput) RequestId() pulumi.StringPtrOutput {
return o.ApplyT(func(v *AddressGroup) pulumi.StringPtrOutput { return v.RequestId }).(pulumi.StringPtrOutput)
} | [
-0.2953645884990692,
0.38330110907554626,
0.1959018111228943,
0.09579110145568848,
-0.4804672598838806,
0.6956101655960083,
-0.03999151289463043,
-0.27389752864837646,
1.240164041519165,
-0.21462561190128326,
0.8217308521270752,
0.9342654347419739,
-0.24157002568244934,
-0.4580663442611694... |
func (o AddressGroupOutput) SelfLink() pulumi.StringOutput {
return o.ApplyT(func(v *AddressGroup) pulumi.StringOutput { return v.SelfLink }).(pulumi.StringOutput)
} | [
-0.11507689207792282,
0.1865329146385193,
0.39236804842948914,
-0.16557516157627106,
-0.4109075665473938,
0.028778664767742157,
1.0504436492919922,
-0.27049487829208374,
0.910705029964447,
-0.9687842130661011,
-0.25012558698654175,
1.3258137702941895,
-0.2308773547410965,
-0.67510867118835... |
func (o AddressGroupOutput) Type() pulumi.StringOutput {
return o.ApplyT(func(v *AddressGroup) pulumi.StringOutput { return v.Type }).(pulumi.StringOutput)
} | [
-0.10750037431716919,
1.3840909004211426,
-0.01574333757162094,
-0.18807348608970642,
-0.24154618382453918,
0.19683650135993958,
0.31714072823524475,
-0.7094259858131409,
0.5392749905586243,
0.09180880337953568,
0.4863627851009369,
0.6472659111022949,
-0.34285250306129456,
-0.4580149948596... |
func (o AddressGroupOutput) UpdateTime() pulumi.StringOutput {
return o.ApplyT(func(v *AddressGroup) pulumi.StringOutput { return v.UpdateTime }).(pulumi.StringOutput)
} | [
-0.3743809461593628,
0.3287823498249054,
0.3116956949234009,
-0.3657001852989197,
-0.9027584195137024,
0.38996344804763794,
-0.47468534111976624,
-0.12904436886310577,
0.23893073201179504,
1.2484465837478638,
0.030010756105184555,
0.07709537446498871,
-0.15166763961315155,
-0.7651984691619... |
func Asset(name string) ([]byte, error) {
cannonicalName := strings.Replace(name, "\\", "/", -1)
if f, ok := _bindata[cannonicalName]; ok {
a, err := f()
if err != nil {
return nil, fmt.Errorf("Asset %s can't read by error: %v", name, err)
}
return a.bytes, nil
}
return nil, fmt.Errorf("Asset %s not foun... | [
-0.7961483001708984,
-1.2313168048858643,
0.633165180683136,
-0.6093899011611938,
-1.546921730041504,
-0.11101024597883224,
0.12971386313438416,
-1.3390334844589233,
-1.1358720064163208,
0.4855233430862427,
0.3090141713619232,
0.32495471835136414,
-0.6009681224822998,
-0.44264674186706543,... |
func MustAsset(name string) []byte {
a, err := Asset(name)
if err != nil {
panic("asset: Asset(" + name + "): " + err.Error())
}
return a
} | [
-0.012778956443071365,
0.11985661834478378,
0.4091298282146454,
-0.5268413424491882,
-0.8276715278625488,
0.4719155430793762,
-0.8186293840408325,
-1.5736604928970337,
0.16388541460037231,
0.6357062458992004,
-0.5354578495025635,
0.35693347454071045,
0.0057142809964716434,
-0.0248885955661... |
func AssetInfo(name string) (os.FileInfo, error) {
cannonicalName := strings.Replace(name, "\\", "/", -1)
if f, ok := _bindata[cannonicalName]; ok {
a, err := f()
if err != nil {
return nil, fmt.Errorf("AssetInfo %s can't read by error: %v", name, err)
}
return a.info, nil
}
return nil, fmt.Errorf("Asset... | [
0.371969997882843,
-1.1052993535995483,
0.5630446076393127,
-0.922572672367096,
-1.356387734413147,
0.0033556853886693716,
0.6777529716491699,
-0.8006685972213745,
-1.2748286724090576,
0.3115358352661133,
0.2636086046695709,
0.26388120651245117,
0.0635773167014122,
-0.3988074064254761,
0... |
func AssetNames() []string {
names := make([]string, 0, len(_bindata))
for name := range _bindata {
names = append(names, name)
}
return names
} | [
-0.7293784618377686,
-0.8460342288017273,
0.7321816682815552,
-0.39323121309280396,
-0.48951536417007446,
0.7661203145980835,
-0.5028699636459351,
-0.8655748963356018,
-0.4145073890686035,
0.8099913597106934,
0.16903363168239594,
1.163049578666687,
-0.028152840211987495,
0.0342608317732811... |
func RestoreAsset(dir, name string) error {
data, err := Asset(name)
if err != nil {
return err
}
info, err := AssetInfo(name)
if err != nil {
return err
}
err = os.MkdirAll(_filePath(dir, filepath.Dir(name)), os.FileMode(0755))
if err != nil {
return err
}
err = ioutil.WriteFile(_filePath(dir, name), d... | [
0.3437124192714691,
-0.3622540235519409,
0.6770355701446533,
-1.2592030763626099,
-0.006139514967799187,
-0.04453148692846298,
-0.0072639440186321735,
-0.43950510025024414,
-0.20619122684001923,
-0.2510169744491577,
0.1784360408782959,
0.13568510115146637,
-0.23627112805843353,
-0.56985116... |
func RestoreAssets(dir, name string) error {
children, err := AssetDir(name)
// File
if err != nil {
return RestoreAsset(dir, name)
}
// Dir
for _, child := range children {
err = RestoreAssets(dir, filepath.Join(name, child))
if err != nil {
return err
}
}
return nil
} | [
0.42261892557144165,
0.30020031332969666,
0.5813396573066711,
-0.20641657710075378,
-0.23828908801078796,
-0.24414615333080292,
0.5739709138870239,
-0.029911456629633904,
0.06188219040632248,
-0.43923482298851013,
0.5113736987113953,
0.3275970220565796,
-0.6125145554542542,
0.0351656526327... |
func (c *Client) GetSdk(ctx context.Context, params *GetSdkInput, optFns ...func(*Options)) (*GetSdkOutput, error) {
if params == nil {
params = &GetSdkInput{}
}
result, metadata, err := c.invokeOperation(ctx, "GetSdk", params, optFns, addOperationGetSdkMiddlewares)
if err != nil {
return nil, err
}
out := ... | [
-0.410381942987442,
1.9217511415481567,
0.5771170854568481,
1.5595213174819946,
0.21959751844406128,
-1.2888914346694946,
0.7551326751708984,
-0.9442064762115479,
0.6329994201660156,
-1.1403931379318237,
0.017824459820985794,
1.2795839309692383,
-0.45216619968414307,
-0.6849068403244019,
... |
func across(p, q, r f32.Point) float32 {
return (atan2(q.Y-p.Y, q.X-p.X) - atan2(r.Y-p.Y, r.X-p.X)) * 180 / math.Pi
} | [
0.42433229088783264,
-0.48647430539131165,
0.5787549614906311,
-1.0349761247634888,
-0.5953153967857361,
1.421635627746582,
-0.7769281268119812,
-0.1544770896434784,
-0.5587619543075562,
-0.12180158495903015,
0.39802539348602295,
-0.012392377480864525,
-0.007633439730852842,
-0.87345057725... |
func relativePoints(points []f32.Point) []f32.Point {
deltas := make([]f32.Point, len(points))
var prev f32.Point
for i, p := range points {
prev = p.Sub(prev)
deltas[i] = prev
}
return deltas
} | [
0.14261099696159363,
-0.3037686049938202,
0.48456642031669617,
0.33756983280181885,
-0.0906706377863884,
0.7653394341468811,
0.6540165543556213,
0.7378085255622864,
0.4928765296936035,
1.0948327779769897,
-0.8344873189926147,
-0.19654695689678192,
-0.5220385789871216,
-0.05129905790090561,... |
func defaultLengthFromEnv(ctx context.Context) (int, bool) {
def := defaultLength
if l := config.Int(ctx, "generate.length"); l > 0 {
def = l
}
lengthStr, isSet := os.LookupEnv("GOPASS_PW_DEFAULT_LENGTH")
if !isSet {
return def, false
}
length, err := strconv.Atoi(lengthStr)
if err != nil {
return def, ... | [
-0.1006402000784874,
0.6912325024604797,
0.6051037311553955,
0.5285197496414185,
0.8790131211280823,
1.0742791891098022,
-0.2560090720653534,
0.7261845469474792,
-0.41059744358062744,
0.4449174106121063,
-0.9987815022468567,
-0.5931868553161621,
-0.8289963603019714,
1.1183100938796997,
-... |
func (s *Action) Generate(c *cli.Context) error {
ctx := ctxutil.WithGlobalFlags(c)
ctx = WithClip(ctx, c.Bool("clip"))
force := c.Bool("force")
edit := c.Bool("edit") // nolint:ifshort
args, kvps := parseArgs(c)
name := args.Get(0)
key, length := keyAndLength(args)
ctx = ctxutil.WithForce(ctx, force)
// as... | [
-0.2261332869529724,
0.01431780494749546,
0.9964000582695007,
0.8361302018165588,
0.17134618759155273,
0.16632328927516937,
0.4131931960582733,
-0.08801160752773285,
0.0477692112326622,
0.5864691138267517,
-0.6496777534484863,
0.5523427724838257,
0.47902366518974304,
0.41497746109962463,
... |
func (s *Action) generateCopyOrPrint(ctx context.Context, c *cli.Context, name, key, password string) error {
entry := name
if key != "" {
entry += " " + key
}
out.OKf(ctx, "Password for entry %q generated", entry)
// copy to clipboard if:
// - explicitly requested with -c
// - autoclip=true, but only if out... | [
-0.22269491851329803,
-0.4596717059612274,
0.7435919642448425,
0.2218356877565384,
-0.22566746175289154,
0.0855368822813034,
-0.06941484659910202,
-0.07856644690036774,
0.5751155614852905,
0.6696988344192505,
0.22162355482578278,
0.5205521583557129,
0.2746654748916626,
0.3202005922794342,
... |
func (s *Action) generatePassword(ctx context.Context, c *cli.Context, length, name string) (string, error) {
if domain, rule := hasPwRuleForSecret(ctx, name); domain != "" && !c.Bool("force") {
return s.generatePasswordForRule(ctx, c, length, name, domain, rule)
}
cfg := config.FromContext(ctx)
symbols := false... | [
-0.16591937839984894,
0.0299967210739851,
0.9555156230926514,
0.555270791053772,
-0.12674158811569214,
0.5285230875015259,
-0.1633259356021881,
-0.10889474302530289,
-0.030941421166062355,
0.5673579573631287,
-0.29043689370155334,
0.4609030485153198,
-0.052160296589136124,
0.40951672196388... |
func getPwLengthFromEnvOrAskUser(ctx context.Context) (int, error) {
var pwlen int
candidateLength, isCustom := defaultLengthFromEnv(ctx)
if !isCustom {
question := "How long should the password be?"
iv, err := termio.AskForInt(ctx, question, candidateLength)
if err != nil {
return 0, exit.Error(exit.Usage,... | [
-0.160112664103508,
0.3476925492286682,
0.6712623834609985,
1.6474205255508423,
-0.6758663058280945,
0.6684533953666687,
0.818848729133606,
-0.03361031413078308,
-0.042812544852495193,
0.18390385806560516,
0.32523688673973083,
0.2991402745246887,
-0.6472353339195251,
0.4158446490764618,
... |
func (s *Action) generatePasswordXKCD(ctx context.Context, c *cli.Context, length string) (string, error) {
xkcdSeparator := " "
if c.IsSet("sep") {
xkcdSeparator = c.String("sep")
}
var pwlen int
if length == "" {
candidateLength := defaultXKCDLength
question := "How many words should be combined to a pass... | [
0.1152239739894867,
0.2773279845714569,
0.7836042046546936,
-0.1139461100101471,
-0.5371503233909607,
0.310822457075119,
-0.7244952321052551,
0.2027081698179245,
0.23286229372024536,
0.655381977558136,
-0.10752050578594208,
-0.07071135938167572,
-0.5740378499031067,
0.4589149057865143,
-... |
func (s *Action) generateSetPassword(ctx context.Context, name, key, password string, kvps map[string]string, regen bool) (context.Context, error) {
// set a single key in an entry.
if key != "" {
sec, err := s.Store.Get(ctx, name)
if err != nil {
return ctx, exit.Error(exit.Encrypt, err, "failed to set key %q... | [
-0.45149901509284973,
0.20079217851161957,
0.9381065964698792,
0.5668222904205322,
0.07074028998613358,
-0.5371957421302795,
0.01584777608513832,
0.4227575361728668,
0.008663343265652657,
0.9377843141555786,
-0.5532425045967102,
0.3279041647911072,
0.18119096755981445,
0.18862435221672058,... |
func (s *Action) CompleteGenerate(c *cli.Context) {
ctx := ctxutil.WithGlobalFlags(c)
if c.Args().Len() < 1 {
return
}
needle := c.Args().Get(0) // nolint:ifshort
_, err := s.Store.IsInitialized(ctx) // important to make sure the structs are not nil.
if err != nil {
out.Errorf(ctx, "Store not initialized: %s... | [
-0.49328747391700745,
0.21975260972976685,
0.8550541996955872,
0.11638104170560837,
0.4076840877532959,
-0.3528631329536438,
0.8011993765830994,
0.20931844413280487,
-0.020296862348914146,
0.1516677588224411,
-0.0006468433421105146,
0.4128727316856384,
0.14062771201133728,
1.17483019828796... |
func Run(params Params) error {
if params.ShowFullName {
fmt.Printf("full main: %[1]T: %+#[1]v\n", params)
} else {
fmt.Printf("main: %[1]T: %+#[1]v\n", params)
}
return nil
} | [
0.1426684558391571,
-0.5996487736701965,
0.7428537011146545,
-0.16775846481323242,
-0.3034656047821045,
0.2905082404613495,
0.7392690181732178,
0.5636504292488098,
-0.5619322061538696,
0.6548670530319214,
-0.3955443799495697,
0.7697234749794006,
-0.20123277604579926,
0.6392686367034912,
... |
func (*OneofSample) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _OneofSample_OneofMarshaler, _OneofSample_OneofUnmarshaler, _OneofSample_OneofSizer, []interface{}{
(*O... | [
-0.12336921691894531,
0.3481904864311218,
0.6060435175895691,
-0.4962606728076935,
-0.11661072820425034,
-0.9974251985549927,
0.9249005317687988,
-1.2967301607131958,
0.4694474935531616,
-0.6469148993492126,
-0.09819433838129044,
-0.1713453233242035,
-0.34395739436149597,
1.002344131469726... |
func NewEnum(name string, enum *specs.Enum, reference *specs.PropertyReference, store references.Store) *Enum {
return &Enum{
name: name,
enum: enum,
reference: reference,
store: store,
}
} | [
0.16772256791591644,
-0.7999979257583618,
0.34295758605003357,
-0.12111470848321915,
-0.1889919936656952,
-0.41510072350502014,
-0.40846651792526245,
0.20566679537296295,
0.5159702301025391,
-0.08724480122327805,
0.7041355967521667,
0.44701218605041504,
-0.3693857491016388,
-0.637685775756... |
func (enum *Enum) MarshalXML(encoder *xml.Encoder, _ xml.StartElement) error {
var (
value string
start = xml.StartElement{
Name: xml.Name{
Local: enum.name,
},
}
)
if enum.reference != nil {
var reference = enum.store.Load(enum.reference.Resource, enum.reference.Path)
if reference == nil || re... | [
-0.40142348408699036,
-0.21364232897758484,
0.380665123462677,
-0.47584015130996704,
-0.6193556785583496,
-0.3741866648197174,
-0.08062037825584412,
0.951529324054718,
1.0351841449737549,
0.34323304891586304,
0.4067133069038391,
0.38430920243263245,
0.02578860893845558,
0.7703746557235718,... |
func WithGCSRegistryBucketPrefix(prefix string) GCSRegistryOption {
return func(s *GCSRegistry) {
s.bucketPrefix = prefix
}
} | [
-0.20361503958702087,
0.1483403742313385,
0.33593472838401794,
-0.029418285936117172,
0.5565330386161804,
0.051316291093826294,
-0.11246667802333832,
-0.031074631959199905,
-0.14141826331615448,
0.22129210829734802,
-0.5738093852996826,
0.16701072454452515,
0.9365090131759644,
0.1327960938... |
func (s *GCSRegistry) generateDownloadURL(bucket, key string) string {
return fmt.Sprintf("gcs::https://www.googleapis.com/storage/v1/%s/%s", bucket, key)
} | [
-0.9964789748191833,
-0.27980899810791016,
0.6749588251113892,
0.020858626812696457,
0.16792437434196472,
0.7625019550323486,
-0.5135256052017212,
-0.2715933918952942,
-0.8268045783042908,
-0.1483473926782608,
-0.8096179962158203,
0.9289296269416809,
0.6307071447372437,
0.11252065747976303... |
func Query(w http.ResponseWriter, r *http.Request, format string) error {
return nil
} | [
-0.03100285865366459,
-1.1473551988601685,
0.48228719830513,
0.4915817975997925,
-0.5497225522994995,
-0.01674678735435009,
-0.4672926366329193,
0.21016435325145721,
0.8081867098808289,
-0.7141793370246887,
0.9989556670188904,
-0.13072170317173004,
-0.354047030210495,
0.15148353576660156,
... |
func OpenFile(path string) (Sections, error) {
f, err := os.Open(path)
if err != nil {
return Sections{}, volcengineerr.New(ErrCodeUnableToReadFile, "unable to open file", err)
}
defer f.Close()
return Parse(f)
} | [
0.36871516704559326,
-0.16215430200099945,
0.5376726984977722,
0.03794156759977341,
-0.2892942726612091,
0.1552487462759018,
-0.38007670640945435,
-0.051962126046419144,
-0.6569145321846008,
-0.28035587072372437,
0.9308717846870422,
-0.7268266677856445,
-0.14379923045635223,
-0.04950194433... |
func Parse(f io.Reader) (Sections, error) {
tree, err := ParseAST(f)
if err != nil {
return Sections{}, err
}
v := NewDefaultVisitor()
if err = Walk(tree, v); err != nil {
return Sections{}, err
}
return v.Sections, nil
} | [
-0.13609659671783447,
0.22911345958709717,
0.8303860425949097,
0.43126121163368225,
-0.31211379170417786,
-0.1521613597869873,
0.5571586489677429,
-0.6307249665260315,
-0.6836850047111511,
-0.01957889460027218,
0.7162286043167114,
-1.354936122894287,
0.1335168182849884,
1.3258143663406372,... |
func ParseBytes(b []byte) (Sections, error) {
tree, err := ParseASTBytes(b)
if err != nil {
return Sections{}, err
}
v := NewDefaultVisitor()
if err = Walk(tree, v); err != nil {
return Sections{}, err
}
return v.Sections, nil
} | [
-0.13967859745025635,
0.1974746584892273,
0.7395505309104919,
-0.27689728140830994,
-0.1679263412952423,
-0.2590554654598236,
0.5067136883735657,
-0.5828548669815063,
0.31667381525039673,
-0.0010402509942650795,
0.22035838663578033,
-0.7895220518112183,
-0.3088769018650055,
1.4192740917205... |
func main() {
go foo()
go bar()
} | [
-0.4258411228656769,
0.7034622430801392,
0.3156534433364868,
0.6872994899749756,
1.0767076015472412,
0.9437313675880432,
0.5286159515380859,
0.1693349927663803,
-1.331013798713684,
0.1373334378004074,
-0.617827832698822,
0.7258235812187195,
-0.0564555898308754,
0.3935086727142334,
0.5107... |
func (h *GRPCServerStatsHandler) TagRPC(ctx context.Context, tagInfo *grpcstats.RPCTagInfo) context.Context {
handledCtx := h.Handler.TagRPC(ctx, tagInfo)
metricCtx := h.metricsHandler.TagRPC(handledCtx, tagInfo)
return metricCtx
} | [
0.9513439536094666,
-0.13148006796836853,
0.5949074625968933,
-0.9794639945030212,
0.8437071442604065,
0.6707297563552856,
0.2168741077184677,
-1.248349905014038,
-0.6153984069824219,
-1.0142927169799805,
0.25261190533638,
-0.15376372635364532,
-0.21586652100086212,
1.0582540035247803,
-... |
func NewGRPCServerStatsHandler(service string) grpcstats.Handler {
return &GRPCServerStatsHandler{
service: ServiceName(service),
Handler: &ocgrpc.ServerHandler{},
metricsHandler: metrics.NewGRPCServerMetricsHandler(ServiceName(service)),
}
} | [
0.5250418782234192,
-0.16700290143489838,
0.1786370724439621,
-0.045371025800704956,
-0.6360577344894409,
0.9998118281364441,
-0.16651946306228638,
-1.3661153316497803,
-0.2961302101612091,
-0.3203146159648895,
0.3374013602733612,
1.0540850162506104,
-0.5976313948631287,
0.2692417800426483... |
func my_math1(num, num1 int) int {
sol := num * num1
// returning as an integer
return sol
} | [
-0.1690368950366974,
-0.45572277903556824,
0.3669382333755493,
0.5163083076477051,
-1.3965567350387573,
-0.3600727915763855,
0.7085211873054504,
-0.4588938057422638,
-0.48840200901031494,
0.3766797184944153,
0.08128760010004044,
-0.27891072630882263,
-0.3137644827365875,
-0.042406953871250... |
func myArrLoop() string {
/* Using the elipses(...) saves one the stress of having to update the length
of the array/slice if the array/slice changes in length*/
newArr := [...]string{"cat", "dog", "rabbit", "Squirrel"}
for i := 0; i < len(newArr); i++ {
fmt.Println(newArr[i])
}
return "Done"
} | [
-0.5448019504547119,
-1.0085316896438599,
0.6686720848083496,
-0.30257880687713623,
-1.0236999988555908,
0.5932695269584656,
-0.5030497908592224,
-0.04550628364086151,
0.4889630973339081,
0.4827832877635956,
0.21006956696510315,
0.48189428448677063,
-0.20089668035507202,
0.1725923269987106... |
func anotherLoop() int {
i := 0
for ; i < 5; i++ {
fmt.Println(i)
}
return i
} | [
-0.40628913044929504,
-0.6979289054870605,
0.5729649066925049,
-0.6759563684463501,
-0.6033903956413269,
0.17184875905513763,
0.9150710105895996,
-1.4126996994018555,
-1.0344979763031006,
-0.7278558015823364,
-0.5367816686630249,
0.5368306636810303,
-0.7993716597557068,
0.6020138263702393,... |
func testPointer() string {
var myVariable int = 10
var myPointer *int = &myVariable
fmt.Println(*myPointer, myVariable)
return "Run out"
} | [
0.004102173261344433,
-1.2777655124664307,
0.6926455497741699,
-0.9317967891693115,
-1.003354787826538,
-0.18349894881248474,
0.4797706604003906,
-0.7547750473022461,
0.4037184417247772,
-0.41404104232788086,
0.41524672508239746,
0.7989319562911987,
-1.4664506912231445,
0.8972090482711792,... |
func InspectCommand() cli.Command {
return cli.Command{
Name: "inspect",
Usage: "inspect kubernetes clusters",
Action: inspectCluster,
Flags: []cli.Flag{},
CustomHelpTemplate: inspectHelpTemplate,
}
} | [
-0.10314133018255234,
-0.6168738603591919,
0.5381422638893127,
-0.5108773112297058,
0.853733479976654,
0.17803318798542023,
0.39217907190322876,
0.13971349596977234,
0.5747037529945374,
-0.6537917852401733,
0.5154748558998108,
1.2041701078414917,
0.20299704372882843,
0.3186243176460266,
... |
func GenerateGrid(height int, width int) Grid {
var coordinate Point
var coordinates [][]Point
var row []Point
grid := Grid{}
for i := 0; i < height; i++ {
row = []Point{}
for j := 0; j < width; j++ {
coordinate = Point{
X: float64(j),
Y: float64(i),
}
row = append(row, coordinate)
}
coo... | [
-0.0882914811372757,
0.6164148449897766,
0.6847697496414185,
-0.30920174717903137,
0.15003938972949982,
-0.10385365039110184,
-0.688757598400116,
-0.002889478811994195,
-0.265156626701355,
-0.1028931736946106,
0.15698449313640594,
0.054511912167072296,
-0.20226867496967316,
0.4445763230323... |
func DeployDayLimitMock(auth *bind.TransactOpts, backend bind.ContractBackend, _value *big.Int) (common.Address, *types.Transaction, *DayLimitMock, error) {
parsed, err := abi.JSON(strings.NewReader(DayLimitMockABI))
if err != nil {
return common.Address{}, nil, nil, err
}
address, tx, contract, err := bind.Deplo... | [
-0.6840254664421082,
-0.12585186958312988,
0.7099607586860657,
-0.17911827564239502,
-0.4448509216308594,
0.19882921874523163,
0.3906685709953308,
0.18983469903469086,
0.1263497769832611,
0.4155201315879822,
0.2924761176109314,
-0.6366050839424133,
-0.42615029215812683,
-0.4212361872196197... |
func NewDayLimitMock(address common.Address, backend bind.ContractBackend) (*DayLimitMock, error) {
contract, err := bindDayLimitMock(address, backend, backend)
if err != nil {
return nil, err
}
return &DayLimitMock{DayLimitMockCaller: DayLimitMockCaller{contract: contract}, DayLimitMockTransactor: DayLimitMockTr... | [
-0.277499794960022,
0.25232887268066406,
0.3861452043056488,
0.7340550422668457,
-0.1567005217075348,
0.6274876594543457,
-0.02321096882224083,
0.8066486716270447,
-0.1652957648038864,
-0.10082609951496124,
-0.016626225784420967,
-0.747462809085846,
-0.7338204979896545,
-0.5890266299247742... |
func NewDayLimitMockCaller(address common.Address, caller bind.ContractCaller) (*DayLimitMockCaller, error) {
contract, err := bindDayLimitMock(address, caller, nil)
if err != nil {
return nil, err
}
return &DayLimitMockCaller{contract: contract}, nil
} | [
-0.5451935529708862,
0.3336946666240692,
0.48818138241767883,
0.4249207675457001,
-0.6269913911819458,
0.8489683270454407,
0.20960119366645813,
0.0810636579990387,
0.30935460329055786,
0.2359824925661087,
-0.03503726050257683,
-0.837588906288147,
-0.8835310339927673,
0.6599017381668091,
... |
func NewDayLimitMockTransactor(address common.Address, transactor bind.ContractTransactor) (*DayLimitMockTransactor, error) {
contract, err := bindDayLimitMock(address, nil, transactor)
if err != nil {
return nil, err
}
return &DayLimitMockTransactor{contract: contract}, nil
} | [
-0.43031641840934753,
0.3002527356147766,
0.4603888988494873,
0.2621840536594391,
-0.8466395139694214,
0.22175092995166779,
0.6806252002716064,
0.5808013081550598,
0.28570258617401123,
0.4597990810871124,
-0.8226630687713623,
-0.8227895498275757,
-0.8260000348091125,
-0.2674589455127716,
... |
func bindDayLimitMock(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor) (*bind.BoundContract, error) {
parsed, err := abi.JSON(strings.NewReader(DayLimitMockABI))
if err != nil {
return nil, err
}
return bind.NewBoundContract(address, parsed, caller, transactor), nil
} | [
-0.4777238070964813,
-0.31409573554992676,
0.5626069903373718,
0.14021380245685577,
-0.1734352558851242,
0.5570417046546936,
-0.017155325040221214,
0.30666384100914,
0.4491878151893616,
-0.38041114807128906,
0.28549155592918396,
-0.2695806622505188,
-0.8217073082923889,
-0.2991091310977936... |
func (_DayLimitMock *DayLimitMockRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error {
return _DayLimitMock.Contract.DayLimitMockCaller.contract.Call(opts, result, method, params...)
} | [
-1.2201429605484009,
0.9673674702644348,
0.5992928743362427,
0.7540031671524048,
-0.8886352181434631,
0.748074471950531,
-0.5376814007759094,
-0.38104769587516785,
0.4522985816001892,
-0.03398842364549637,
0.4668402075767517,
-0.22450965642929077,
-0.635904848575592,
0.05771618336439133,
... |
func (_DayLimitMock *DayLimitMockRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
return _DayLimitMock.Contract.DayLimitMockTransactor.contract.Transfer(opts)
} | [
-0.8451645970344543,
0.545322060585022,
0.4226948320865631,
0.9761242866516113,
-0.16205784678459167,
0.835893988609314,
0.3227878212928772,
-0.06628407537937164,
0.637041449546814,
-0.4401688575744629,
0.0029583778232336044,
-0.11044217646121979,
-0.5252020955085754,
-0.4998432993888855,
... |
func (_DayLimitMock *DayLimitMockRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
return _DayLimitMock.Contract.DayLimitMockTransactor.contract.Transact(opts, method, params...)
} | [
-0.564967930316925,
0.4446161687374115,
0.5405871272087097,
-0.3418769836425781,
0.39433401823043823,
0.386678546667099,
0.7084494829177856,
0.11761824786663055,
0.31760373711586,
-0.08240995556116104,
0.17813265323638916,
0.07222843915224075,
-0.18137384951114655,
-0.07901933044195175,
... |
func (_DayLimitMock *DayLimitMockCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error {
return _DayLimitMock.Contract.contract.Call(opts, result, method, params...)
} | [
-1.1205397844314575,
1.0361621379852295,
0.550041139125824,
0.8057390451431274,
-0.7132646441459656,
0.7195374965667725,
-0.5146012306213379,
-0.41978463530540466,
0.5088440179824829,
-0.12520664930343628,
0.47937560081481934,
-0.27685269713401794,
-0.6854827404022217,
0.12934039533138275,... |
func (_DayLimitMock *DayLimitMockTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
return _DayLimitMock.Contract.contract.Transfer(opts)
} | [
-0.7159334421157837,
0.5727952718734741,
0.3067631423473358,
0.9671450853347778,
-0.04035968333482742,
0.8356983661651611,
0.3353951573371887,
-0.08552975952625275,
0.7953047156333923,
-0.4735806882381439,
0.20185431838035583,
-0.10870499163866043,
-0.4548766613006592,
-0.35992172360420227... |
func (_DayLimitMock *DayLimitMockTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
return _DayLimitMock.Contract.contract.Transact(opts, method, params...)
} | [
-0.4477456212043762,
0.4373428225517273,
0.47303473949432373,
-0.29316240549087524,
0.4783097207546234,
0.39525166153907776,
0.7457574605941772,
0.01303071714937687,
0.4359077215194702,
-0.19809558987617493,
0.4064570963382721,
-0.0019456561421975493,
-0.1551416665315628,
-0.05092591419816... |
func (_DayLimitMock *DayLimitMockCaller) DailyLimit(opts *bind.CallOpts) (*big.Int, error) {
var (
ret0 = new(*big.Int)
)
out := ret0
err := _DayLimitMock.contract.Call(opts, out, "dailyLimit")
return *ret0, err
} | [
-0.38854366540908813,
0.7379743456840515,
0.6221981048583984,
0.8608087301254272,
0.2419673055410385,
0.45929449796676636,
0.5622711777687073,
0.23473842442035675,
0.026459038257598877,
-0.46375682950019836,
-0.6498181223869324,
-0.3666797876358032,
-1.0950132608413696,
0.4952501356601715,... |
func (_DayLimitMock *DayLimitMockSession) DailyLimit() (*big.Int, error) {
return _DayLimitMock.Contract.DailyLimit(&_DayLimitMock.CallOpts)
} | [
-0.4612959623336792,
0.8766620755195618,
0.36928871273994446,
0.9230749011039734,
0.3165993094444275,
0.16338054835796356,
0.2724646329879761,
0.0454527921974659,
0.33513662219047546,
-0.40849635004997253,
-0.4704253673553467,
-0.21442310512065887,
-0.6939282417297363,
-0.0597086064517498,... |
func (_DayLimitMock *DayLimitMockCallerSession) DailyLimit() (*big.Int, error) {
return _DayLimitMock.Contract.DailyLimit(&_DayLimitMock.CallOpts)
} | [
-0.46629634499549866,
0.9493686556816101,
0.3702812194824219,
0.8904044032096863,
0.3412598669528961,
0.3317963480949402,
0.16405251622200012,
-0.013376528397202492,
0.2363213747739792,
-0.49022117257118225,
-0.3821942210197449,
-0.18404924869537354,
-0.797083854675293,
0.02577514946460724... |
func (_DayLimitMock *DayLimitMockCaller) LastDay(opts *bind.CallOpts) (*big.Int, error) {
var (
ret0 = new(*big.Int)
)
out := ret0
err := _DayLimitMock.contract.Call(opts, out, "lastDay")
return *ret0, err
} | [
-0.22660477459430695,
0.6750398278236389,
0.967800498008728,
0.37644293904304504,
0.21338942646980286,
0.6668009757995605,
0.2750174403190613,
-0.052539221942424774,
0.5833004117012024,
-0.8625739216804504,
0.17028632760047913,
-0.4869456887245178,
-1.1562303304672241,
0.28603729605674744,... |
func (_DayLimitMock *DayLimitMockSession) LastDay() (*big.Int, error) {
return _DayLimitMock.Contract.LastDay(&_DayLimitMock.CallOpts)
} | [
-0.4489133358001709,
0.7700761556625366,
0.7300055027008057,
0.18827514350414276,
0.39600664377212524,
0.46464425325393677,
-0.0008602769812569022,
-0.35405346751213074,
1.0511813163757324,
-0.8608886003494263,
0.4623350501060486,
-0.4258795380592346,
-0.9953405857086182,
-0.03191136568784... |
func (_DayLimitMock *DayLimitMockCallerSession) LastDay() (*big.Int, error) {
return _DayLimitMock.Contract.LastDay(&_DayLimitMock.CallOpts)
} | [
-0.4464021921157837,
0.8929380774497986,
0.7115859985351562,
0.1977747082710266,
0.40185728669166565,
0.6283260583877563,
-0.11711712181568146,
-0.35850435495376587,
0.9569010138511658,
-0.9620363116264343,
0.4997836649417877,
-0.3994484543800354,
-1.0481805801391602,
0.0001201629638671875... |
func (_DayLimitMock *DayLimitMockCaller) SpentToday(opts *bind.CallOpts) (*big.Int, error) {
var (
ret0 = new(*big.Int)
)
out := ret0
err := _DayLimitMock.contract.Call(opts, out, "spentToday")
return *ret0, err
} | [
-0.5080620050430298,
0.5970863103866577,
0.7819969058036804,
0.22596564888954163,
0.24218057096004486,
0.17524568736553192,
0.8547905087471008,
-0.4293670952320099,
0.026592448353767395,
-0.4440992772579193,
-0.920212984085083,
-0.5481575131416321,
-1.2069172859191895,
0.5926660299301147,
... |
func (_DayLimitMock *DayLimitMockSession) SpentToday() (*big.Int, error) {
return _DayLimitMock.Contract.SpentToday(&_DayLimitMock.CallOpts)
} | [
-0.6648882031440735,
0.6713148355484009,
0.4865334630012512,
0.2814941704273224,
0.4506000578403473,
-0.21936286985874176,
0.770258367061615,
-0.8174479603767395,
0.41968610882759094,
-0.39831608533859253,
-0.8676934838294983,
-0.2940778434276581,
-0.7651800513267517,
0.33192163705825806,
... |
func (_DayLimitMock *DayLimitMockCallerSession) SpentToday() (*big.Int, error) {
return _DayLimitMock.Contract.SpentToday(&_DayLimitMock.CallOpts)
} | [
-0.6491923928260803,
0.7629947066307068,
0.5075989365577698,
0.2546531856060028,
0.4207020401954651,
-0.05284743756055832,
0.6805770397186279,
-0.8856526017189026,
0.38505157828330994,
-0.4789833724498749,
-0.8059675097465515,
-0.21591225266456604,
-0.7980437278747559,
0.3986991047859192,
... |
func (_DayLimitMock *DayLimitMockCaller) TotalSpending(opts *bind.CallOpts) (*big.Int, error) {
var (
ret0 = new(*big.Int)
)
out := ret0
err := _DayLimitMock.contract.Call(opts, out, "totalSpending")
return *ret0, err
} | [
-0.21331913769245148,
0.860277533531189,
0.9039061069488525,
-0.11019416153430939,
-0.1605072021484375,
0.4729405343532562,
0.4095788896083832,
0.3372556269168854,
0.5793130993843079,
-0.09149735420942307,
-0.7844195365905762,
-0.7440990805625916,
-0.8717136383056641,
0.10317333787679672,
... |
func (_DayLimitMock *DayLimitMockSession) TotalSpending() (*big.Int, error) {
return _DayLimitMock.Contract.TotalSpending(&_DayLimitMock.CallOpts)
} | [
-0.3920886516571045,
1.0690627098083496,
0.692002534866333,
-0.10231808573007584,
0.054153431206941605,
0.14837627112865448,
0.17464563250541687,
0.03151405602693558,
1.0468863248825073,
0.021661192178726196,
-0.8385291695594788,
-0.7140302062034607,
-0.5131021738052368,
-0.273096770048141... |
func (_DayLimitMock *DayLimitMockCallerSession) TotalSpending() (*big.Int, error) {
return _DayLimitMock.Contract.TotalSpending(&_DayLimitMock.CallOpts)
} | [
-0.38636016845703125,
1.1995141506195068,
0.6782770156860352,
-0.08148680627346039,
0.01000683382153511,
0.30209922790527344,
0.09526395797729492,
-0.03289996460080147,
1.0071489810943604,
-0.11430591344833374,
-0.7688085436820984,
-0.6382958292961121,
-0.623212456703186,
-0.16527627408504... |
func (_DayLimitMock *DayLimitMockTransactor) AttemptSpend(opts *bind.TransactOpts, _value *big.Int) (*types.Transaction, error) {
return _DayLimitMock.contract.Transact(opts, "attemptSpend", _value)
} | [
-0.6967538595199585,
0.8949898481369019,
0.3662286102771759,
-0.7116380333900452,
-0.6374520659446716,
0.3087868392467499,
0.46931684017181396,
-0.4966624975204468,
0.04604010283946991,
0.23594580590724945,
-0.3463258147239685,
-0.6487845778465271,
0.012182964012026787,
0.4067722260951996,... |
func (_DayLimitMock *DayLimitMockSession) AttemptSpend(_value *big.Int) (*types.Transaction, error) {
return _DayLimitMock.Contract.AttemptSpend(&_DayLimitMock.TransactOpts, _value)
} | [
-0.6387411952018738,
0.806909441947937,
0.3153991103172302,
-0.4705983102321625,
-0.5343157649040222,
0.2734140157699585,
0.431347519159317,
-0.5331026911735535,
0.08701559156179428,
0.28945520520210266,
-0.30973368883132935,
-0.7046682238578796,
-0.034280385822057724,
0.23277434706687927,... |
func (_DayLimitMock *DayLimitMockTransactorSession) AttemptSpend(_value *big.Int) (*types.Transaction, error) {
return _DayLimitMock.Contract.AttemptSpend(&_DayLimitMock.TransactOpts, _value)
} | [
-0.6092166304588318,
0.8544795513153076,
0.29127898812294006,
-0.5368949770927429,
-0.4845121204853058,
0.26504045724868774,
0.4173404574394226,
-0.5787586569786072,
0.033687956631183624,
0.3418753147125244,
-0.27134791016578674,
-0.6986520886421204,
0.048796266317367554,
0.234212040901184... |
func (_DayLimitMock *DayLimitMockTransactor) ResetSpentToday(opts *bind.TransactOpts) (*types.Transaction, error) {
return _DayLimitMock.contract.Transact(opts, "resetSpentToday")
} | [
-0.4837840497493744,
0.08754276484251022,
0.3405878245830536,
0.4192065894603729,
0.8043027520179749,
-0.5208969116210938,
0.7914926409721375,
-0.41054779291152954,
-0.1873144954442978,
0.30517688393592834,
-0.40836384892463684,
0.1949911266565323,
-0.4535743296146393,
-0.3433935344219208,... |
func (_DayLimitMock *DayLimitMockSession) ResetSpentToday() (*types.Transaction, error) {
return _DayLimitMock.Contract.ResetSpentToday(&_DayLimitMock.TransactOpts)
} | [
-0.3179020583629608,
0.13034114241600037,
0.3821360170841217,
0.3043363690376282,
0.5941424369812012,
-0.5806103944778442,
0.7244126200675964,
-0.6938996315002441,
-0.06902231276035309,
0.42892003059387207,
-0.4773293137550354,
0.3112215995788574,
-0.264221727848053,
-0.4296894073486328,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.