text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func (spriteBatch *SpriteBatch) addv(verts []float32, mat *mgl32.Mat4, index int) error {
if index == -1 && spriteBatch.count >= spriteBatch.size {
return fmt.Errorf("Sprite Batch Buffer Full")
}
sprite := make([]float32, 8*4)
for i := 0; i < 32; i += 8 {
j := (i / 2)
sprite[i+0] = (mat[0] * verts[j+0]) + (m... | [
0.11748214066028595,
0.2832369804382324,
0.9243142604827881,
0.02461850456893444,
0.14605742692947388,
0.3586866855621338,
0.5353744626045227,
-0.5802697539329529,
0.9122826457023621,
0.22264617681503296,
-0.7703797221183777,
0.5838913917541504,
-0.5560142397880554,
-0.5595384240150452,
... |
func (spriteBatch *SpriteBatch) SetDrawRange(min, max int) error {
if min < 0 || max < 0 || min > max {
return fmt.Errorf("invalid draw range")
}
spriteBatch.rangeMin = min
spriteBatch.rangeMax = max
return nil
} | [
-0.628109872341156,
-0.09391207247972488,
0.455771803855896,
-0.34889256954193115,
-0.05003151297569275,
0.8145299553871155,
-1.287469506263733,
-0.22451069951057434,
0.057578496634960175,
-0.7539491057395935,
-1.5238436460494995,
0.7522906064987183,
0.01006128266453743,
0.6120092868804932... |
func (spriteBatch *SpriteBatch) ClearDrawRange() {
spriteBatch.rangeMin = -1
spriteBatch.rangeMax = -1
} | [
-0.4928275942802429,
0.17952139675617218,
0.23469600081443787,
-0.7815319895744324,
-0.6946069598197937,
1.0405738353729248,
-0.7702569365501404,
-0.24128276109695435,
0.3504667282104492,
-0.33657872676849365,
-0.9954435229301453,
1.0164762735366821,
0.27610546350479126,
0.4928280115127563... |
func (spriteBatch *SpriteBatch) GetDrawRange() (int, int) {
min := 0
max := spriteBatch.count - 1
if spriteBatch.rangeMax >= 0 {
max = int(math.Min(float64(spriteBatch.rangeMax), float64(max)))
}
if spriteBatch.rangeMin >= 0 {
min = int(math.Min(float64(spriteBatch.rangeMin), float64(max)))
}
return min, max... | [
-0.5045763850212097,
-0.407795250415802,
0.70138019323349,
-0.44649776816368103,
-0.2748710513114929,
0.18079331517219543,
-0.7537409067153931,
0.4018314480781555,
0.2524799704551697,
-0.8526695370674133,
-0.9871512651443481,
0.759363055229187,
-0.002282604342326522,
0.762499213218689,
-... |
func (spriteBatch *SpriteBatch) Draw(args ...float32) {
if spriteBatch.count == 0 {
return
}
prepareDraw(generateModelMatFromArgs(args))
bindTexture(spriteBatch.texture.getHandle())
useVertexAttribArrays(shaderPos, shaderTexCoord, shaderColor)
spriteBatch.arrayBuf.bind()
defer spriteBatch.arrayBuf.unbind()
... | [
0.03624212369322777,
-0.3917404115200043,
0.6440159678459167,
-0.21635983884334564,
-0.023931968957185745,
1.326040267944336,
0.4229300916194916,
-0.3371664881706238,
-0.27011987566947937,
-0.58711838722229,
-0.8197945952415466,
0.16161248087882996,
0.05574794486165047,
0.19622305035591125... |
func WithRPCAddrs(addrs []string) Option {
return newFuncOption(func(o *options) {
o.rpcAddrs = addrs
})
} | [
0.17558905482292175,
-0.09469277411699295,
0.4521884024143219,
-0.36807844042778015,
0.3268359303474426,
-0.32262441515922546,
-0.15874040126800537,
-1.0638161897659302,
1.1422454118728638,
0.3129720985889435,
-0.02943565882742405,
-0.07658474147319794,
-0.35461437702178955,
0.330294847488... |
func WithCoins(coins []string) Option {
return newFuncOption(func(o *options) {
o.coins = coins
})
} | [
0.3925444781780243,
0.44768965244293213,
0.27608951926231384,
-0.5492728352546692,
0.37066563963890076,
-0.8824307918548584,
0.0950755923986435,
-0.9913949370384216,
0.36301085352897644,
0.17036382853984833,
0.2641229033470154,
-0.29354000091552734,
0.4446055591106415,
-0.4107849597930908,... |
func NewDeletePacketCapturesParams() *DeletePacketCapturesParams {
return &DeletePacketCapturesParams{
timeout: cr.DefaultTimeout,
}
} | [
-0.31918078660964966,
-0.5508472919464111,
0.5099968910217285,
0.4893609583377838,
-0.19661366939544678,
0.14753839373588562,
-0.7078381180763245,
-0.23849231004714966,
0.5092466473579407,
-0.13821445405483246,
0.05425218492746353,
-0.5400901436805725,
-0.12595389783382416,
0.9682978391647... |
func NewDeletePacketCapturesParamsWithTimeout(timeout time.Duration) *DeletePacketCapturesParams {
return &DeletePacketCapturesParams{
timeout: timeout,
}
} | [
0.30873939394950867,
-0.5441575646400452,
0.5608691573143005,
0.41206222772598267,
-0.17676353454589844,
0.8356860280036926,
-1.6730191707611084,
-0.37590980529785156,
0.4483846127986908,
0.7082395553588867,
0.24949924647808075,
-0.06237287446856499,
0.05348856374621391,
1.4188324213027954... |
func NewDeletePacketCapturesParamsWithContext(ctx context.Context) *DeletePacketCapturesParams {
return &DeletePacketCapturesParams{
Context: ctx,
}
} | [
-0.18157561123371124,
-0.4521285891532898,
0.8632751703262329,
0.07804379612207413,
-0.26334917545318604,
0.8552561402320862,
-1.3355554342269897,
-1.1128284931182861,
0.7552681565284729,
0.11815265566110611,
0.22621653974056244,
-0.37775957584381104,
0.024778930470347404,
0.69377088546752... |
func NewDeletePacketCapturesParamsWithHTTPClient(client *http.Client) *DeletePacketCapturesParams {
return &DeletePacketCapturesParams{
HTTPClient: client,
}
} | [
-0.13473737239837646,
-0.6564752459526062,
0.7008990049362183,
0.48490262031555176,
0.06990057975053787,
0.8360045552253723,
-0.5575434565544128,
-0.4083362817764282,
0.21518489718437195,
-0.42509880661964417,
0.03725755959749222,
-0.3140692114830017,
0.12750160694122314,
0.587045490741729... |
func (o *DeletePacketCapturesParams) WithDefaults() *DeletePacketCapturesParams {
o.SetDefaults()
return o
} | [
-0.056952934712171555,
0.2796374261379242,
0.2217215597629547,
0.0328533872961998,
0.40296003222465515,
-0.5546221137046814,
-0.91182941198349,
-0.6943089962005615,
1.1470550298690796,
-0.566938579082489,
0.08677760511636734,
-1.3274447917938232,
-0.3362513780593872,
0.44846463203430176,
... |
func (o *DeletePacketCapturesParams) SetDefaults() {
// no default values defined for this parameter
} | [
-0.7548341751098633,
0.29278701543807983,
0.4421268701553345,
-0.18378020823001862,
0.7364423871040344,
0.04457871615886688,
-0.6534743905067444,
-0.8151147365570068,
0.6859568357467651,
-0.5676454305648804,
-0.11642996966838837,
-0.5666499137878418,
-0.8744169473648071,
0.6216424703598022... |
func (o *DeletePacketCapturesParams) WithTimeout(timeout time.Duration) *DeletePacketCapturesParams {
o.SetTimeout(timeout)
return o
} | [
0.1787458062171936,
-0.0811617374420166,
0.3500804007053375,
-0.057935431599617004,
-0.7447878122329712,
0.0626206323504448,
-0.7817825675010681,
-0.3702475130558014,
1.1184171438217163,
0.45725467801094055,
0.10254835337400436,
-0.3374505937099457,
0.25255194306373596,
1.3015836477279663,... |
func (o *DeletePacketCapturesParams) SetTimeout(timeout time.Duration) {
o.timeout = timeout
} | [
-0.1952037364244461,
-0.22135937213897705,
0.4605110287666321,
0.0024614857975393534,
-0.02394982986152172,
0.5584956407546997,
-0.681868851184845,
-0.09371769428253174,
0.7277138829231262,
0.29456788301467896,
0.223356232047081,
-0.2582399249076843,
-0.36894333362579346,
1.107653498649597... |
func (o *DeletePacketCapturesParams) WithContext(ctx context.Context) *DeletePacketCapturesParams {
o.SetContext(ctx)
return o
} | [
-0.7037514448165894,
-0.17396698892116547,
0.6448043584823608,
-0.2978975176811218,
-0.8231163024902344,
0.22173365950584412,
-0.880968451499939,
-0.8965351581573486,
1.458213448524475,
-0.02573467418551445,
0.08552314341068268,
-0.5088517069816589,
-0.4564240872859955,
0.3738088309764862,... |
func (o *DeletePacketCapturesParams) SetContext(ctx context.Context) {
o.Context = ctx
} | [
-1.0183844566345215,
-0.05080282688140869,
0.5959007143974304,
-0.1447971612215042,
0.17391088604927063,
0.4802106022834778,
-0.8115982413291931,
-0.7355179190635681,
1.571977972984314,
-0.07569670677185059,
0.023654121905565262,
-0.4972470998764038,
-0.7121115922927856,
0.4432608783245086... |
func (o *DeletePacketCapturesParams) WithHTTPClient(client *http.Client) *DeletePacketCapturesParams {
o.SetHTTPClient(client)
return o
} | [
-0.46856796741485596,
-0.8050718307495117,
0.5488815307617188,
-0.27869370579719543,
-0.5578575730323792,
0.036008864641189575,
-0.14302025735378265,
-0.6532949209213257,
0.5525476932525635,
-0.4811955690383911,
-0.18261177837848663,
-0.44055822491645813,
0.28254690766334534,
0.23397496342... |
func (o *DeletePacketCapturesParams) SetHTTPClient(client *http.Client) {
o.HTTPClient = client
} | [
-0.1223386749625206,
-0.7066916227340698,
0.44746556878089905,
-0.690265953540802,
-0.4657962918281555,
-0.00462463591247797,
0.019493523985147476,
-0.3818500339984894,
0.13221237063407898,
-0.30363795161247253,
-0.2941313087940216,
-0.12194120138883591,
-0.21696563065052032,
0.06192584708... |
func (o *DeletePacketCapturesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error {
if err := r.SetTimeout(o.timeout); err != nil {
return err
}
var res []error
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
} | [
-1.3707464933395386,
-0.17527179419994354,
0.696468710899353,
-0.09830587357282639,
0.35997819900512695,
-0.24533550441265106,
0.6488165855407715,
0.019350439310073853,
0.19621877372264862,
-0.02096465229988098,
0.6029052734375,
-0.05159646272659302,
-0.764441967010498,
0.32462337613105774... |
func TestParity(t *testing.T) {
// TODO: I'm convinced my system's fdtdump command is broken.
t.Skip()
// Read and write the fdt.
fdt, err := New(WithFileName("testdata/fdt.dtb"))
if err != nil {
t.Fatal(err)
}
dir := t.TempDir()
dtb := filepath.Join(dir, "fdt2.dtb")
f, err := os.Create(dtb)
if err != nil ... | [
0.04389995336532593,
-0.23087243735790253,
1.1101258993148804,
0.20112277567386627,
0.9329168796539307,
0.1982264518737793,
0.2527409791946411,
-0.5133946537971497,
0.26857373118400574,
-1.3533358573913574,
0.2744798958301544,
0.14615242183208466,
0.41486501693725586,
1.0683220624923706,
... |
func (d *aciDriver) Config() map[string]string {
return map[string]string{
"CNAB_AZURE_VERBOSE": "Increase verbosity. true, false are supported values",
"CNAB_AZURE_CLIENT_ID": "AAD Client ID for Azure account authentication - used to authenticate to Azure for AC... | [
0.38893410563468933,
-0.383379191160202,
0.8341593742370605,
-0.5178731679916382,
-0.1740204244852066,
0.06233230605721474,
-0.042446158826351166,
0.7298958897590637,
-0.1450360119342804,
0.7359408140182495,
0.29434195160865784,
0.10718715190887451,
0.1663726270198822,
0.3206217885017395,
... |
func NewACIDriver(version string) (driver.Driver, error) {
d := &aciDriver{
msiResource: azure.Resource{},
}
d.userAgent = fmt.Sprintf("%s-%s", userAgentPrefix, version)
config := make(map[string]string)
for env := range d.Config() {
config[env] = os.Getenv(env)
}
if err := d.processConfiguration(config); er... | [
-0.2189929038286209,
-1.060456395149231,
0.3612864911556244,
0.11740554869174957,
-0.6677629947662354,
0.07635700702667236,
-0.4190309941768646,
0.6649038791656494,
-0.1632823497056961,
0.7226144671440125,
0.414701908826828,
0.4381982982158661,
-0.22493189573287964,
0.41301271319389343,
... |
func validateMSIScope(scope string) error {
parts := strings.Split(scope, "/") // Leading slash '/' in scope adds an empty part.
if len(parts) < 3 {
return errors.New("invalid msi scope, scope must start with /subscriptions/<subscriptionID>")
}
// Azure subscription ids should be represented as 32 bit guids.
su... | [
0.46345266699790955,
-0.5685126185417175,
0.5561337471008301,
-0.21969199180603027,
-1.0259814262390137,
-0.7659635543823242,
-0.4200383126735687,
-0.6788272261619568,
0.10852549225091934,
0.8082342147827148,
0.18701857328414917,
0.47906023263931274,
-0.1671147346496582,
0.4208620190620422... |
func checkAllOrNoneSet(config map[string]string, items []string) (bool, error) {
var length = 0
for i := 0; i < len(items); i++ {
if val, exists := config[items[i]]; exists {
length += len(val)
} else {
return false, fmt.Errorf("Config Item %s does not exist", items[i])
}
}
if length > 0 {
for i := 0;... | [
-0.6023913621902466,
-0.7839766144752502,
1.0199768543243408,
-0.07370036095380783,
0.5698326826095581,
0.45208024978637695,
-0.9176722168922424,
0.4456615746021271,
-0.6937342882156372,
0.8894030451774597,
-0.15038153529167175,
-0.6105405688285828,
-0.26126834750175476,
1.024420976638794,... |
func (d *aciDriver) Run(op *driver.Operation) (driver.OperationResult, error) {
return d.exec(op)
} | [
-1.3784111738204956,
0.3653382658958435,
0.6024757623672485,
0.7828025817871094,
0.13310745358467102,
-0.8013690710067749,
0.5915818214416504,
0.47457483410835266,
0.23517565429210663,
0.14647036790847778,
0.05334312468767166,
-0.359711229801178,
-0.17250172793865204,
-1.137054443359375,
... |
func (d *aciDriver) Handles(dt string) bool {
return dt == driver.ImageTypeDocker || dt == driver.ImageTypeOCI
} | [
-1.1024671792984009,
0.7589646577835083,
0.38695773482322693,
0.34748950600624084,
0.9941542744636536,
0.07642219215631485,
-0.08518530428409576,
-1.2548575401306152,
0.48176807165145874,
-0.9454694986343384,
0.639887273311615,
-0.22082915902137756,
-0.1187320277094841,
0.5422559976577759,... |
func (d *aciDriver) getAzureFileVolume() *containerinstance.AzureFileVolume {
azureFileVolume := containerinstance.AzureFileVolume{}
if d.mountStateVolume {
azureFileVolume.ReadOnly = to.BoolPtr(false)
azureFileVolume.StorageAccountKey = to.StringPtr(d.stateStorageAccountKey)
azureFileVolume.StorageAccountName... | [
0.38493213057518005,
-0.28036656975746155,
0.7634787559509277,
0.16647759079933167,
-0.02122294344007969,
-0.30183887481689453,
0.1402590572834015,
0.17327459156513214,
-0.46310943365097046,
-0.15436244010925293,
0.7259174585342407,
0.5580916404724121,
0.11179779469966888,
-0.5856387019157... |
func (d *aciDriver) getContainerLogs(ctx context.Context, aciRG string, aciName string, linesOutput int) (int, error) {
log.Debug("Getting Logs from Invocation Image")
containerClient, err := az.GetContainerClient(d.subscriptionID, d.loginInfo.Authorizer, d.userAgent)
if err != nil {
return 0, fmt.Errorf("Error ge... | [
0.30336031317710876,
-0.3582723140716553,
0.7935951948165894,
-0.15708577632904053,
-0.3480183780193329,
-0.9292435050010681,
-0.006077997852116823,
-0.3624568581581116,
-0.609753429889679,
0.26745906472206116,
0.47091400623321533,
1.0033073425292969,
-0.60422682762146,
0.45745041966438293... |
func (s *SystemService) Ping() (*Ping, *Response, error) {
u := "/api/v1/system/ping"
v := new(Ping)
resp, err := s.client.Call("GET", u, nil, v)
return v, resp, err
} | [
-0.9172693490982056,
0.7315587401390076,
0.5876284837722778,
1.1556028127670288,
0.7785378098487854,
-0.47421273589134216,
-0.15141603350639343,
-0.47766292095184326,
0.31816354393959045,
-0.16982823610305786,
-0.08630900830030441,
0.4014950096607208,
-0.7533573508262634,
0.666825115680694... |
func (s *SystemService) Version() (*Versions, *Response, error) {
u := "/api/v1/system/version"
v := new(Versions)
resp, err := s.client.Call("GET", u, nil, v)
return v, resp, err
} | [
-1.2453253269195557,
0.028643663972616196,
0.5136379599571228,
1.1119457483291626,
1.2343367338180542,
-0.17981815338134766,
-0.10000564157962799,
-0.823558509349823,
-0.04518939182162285,
0.02681555598974228,
-1.4335823059082031,
0.049395959824323654,
-1.0089619159698486,
0.80907320976257... |
func (r *AllocateCustomerCreditRequest) FromJsonString(s string) error {
f := make(map[string]interface{})
if err := json.Unmarshal([]byte(s), &f); err != nil {
return err
}
delete(f, "AddedCredit")
delete(f, "ClientUin")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "A... | [
0.3443011939525604,
-0.566653847694397,
0.31052935123443604,
-0.7158191800117493,
-1.058668851852417,
-0.19176442921161652,
-0.2549227178096771,
-0.600914478302002,
0.8392658233642578,
0.6389915347099304,
0.9794263243675232,
0.7058939933776855,
0.24223582446575165,
-0.6543407440185547,
0... |
func (r *AllocateCustomerCreditResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
} | [
0.8001322746276855,
-0.7646934986114502,
0.07331334799528122,
-0.9453409910202026,
-1.0226185321807861,
-0.4924933910369873,
0.04343574494123459,
-0.5531660318374634,
1.2882442474365234,
0.6291421055793762,
0.37498337030410767,
0.03963008522987366,
0.28294095396995544,
-1.2708353996276855,... |
func (r *CreateAccountRequest) FromJsonString(s string) error {
f := make(map[string]interface{})
if err := json.Unmarshal([]byte(s), &f); err != nil {
return err
}
delete(f, "AccountType")
delete(f, "Mail")
delete(f, "Password")
delete(f, "ConfirmPassword")
delete(f, "PhoneNum")
delete(f, "CountryCode")
de... | [
-0.3533342778682709,
-0.7746588587760925,
0.3882884979248047,
-0.31735798716545105,
-0.8503474593162537,
-0.10845363140106201,
0.14056463539600372,
-0.7915997505187988,
0.4543538987636566,
0.557949423789978,
0.24558791518211365,
0.7034304738044739,
0.14170612394809723,
-0.38623759150505066... |
func (r *CreateAccountResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
} | [
0.4337453246116638,
-1.0174064636230469,
-0.027262255549430847,
-1.0602985620498657,
-1.0874148607254028,
-0.10821642726659775,
0.4207240045070648,
-1.0181883573532104,
1.2066608667373657,
0.4955238997936249,
-0.20603817701339722,
-0.07892362773418427,
-0.0960930734872818,
-1.5842044353485... |
func (r *DescribeBillDetailRequest) FromJsonString(s string) error {
f := make(map[string]interface{})
if err := json.Unmarshal([]byte(s), &f); err != nil {
return err
}
delete(f, "Month")
delete(f, "PageSize")
delete(f, "Page")
delete(f, "PayMode")
delete(f, "ActionType")
if len(f) > 0 {
return tcerr.NewT... | [
0.24709975719451904,
-0.23011410236358643,
0.4160122871398926,
-0.5889688730239868,
-0.95501708984375,
0.22612108290195465,
-0.19121995568275452,
-0.6883420348167419,
0.3957258462905884,
0.12517224252223969,
0.14003954827785492,
1.0430042743682861,
0.04517451301217079,
0.6141462922096252,
... |
func (r *DescribeBillDetailResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
} | [
0.8487526774406433,
-0.5415483117103577,
0.11878950148820877,
-1.1885569095611572,
-1.1514135599136353,
0.16957756876945496,
-0.013066752813756466,
-0.7196041941642761,
0.9292035698890686,
-0.07148823887109756,
-0.3089895248413086,
0.5701208114624023,
-0.26207950711250305,
-0.0917890071868... |
func (r *DescribeBillSummaryByPayModeRequest) FromJsonString(s string) error {
f := make(map[string]interface{})
if err := json.Unmarshal([]byte(s), &f); err != nil {
return err
}
delete(f, "BillMonth")
delete(f, "CustomerUin")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestErro... | [
-0.10369661450386047,
-0.03873356431722641,
0.5395477414131165,
-0.6799123287200928,
-1.7430758476257324,
0.35044750571250916,
-0.4610225558280945,
-0.6849431991577148,
0.44075530767440796,
-0.09602373093366623,
0.17950433492660522,
0.39570608735084534,
-0.08507811278104782,
0.235745459794... |
func (r *DescribeBillSummaryByPayModeResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
} | [
0.3354625999927521,
-0.14796701073646545,
0.32999280095100403,
-1.2292366027832031,
-1.8097240924835205,
0.22812208533287048,
-0.2850552499294281,
-0.8697254061698914,
1.187013030052185,
0.09963785856962204,
-0.2867068648338318,
-0.4080078601837158,
-0.22327426075935364,
-0.119677752256393... |
func (r *DescribeBillSummaryByProductRequest) FromJsonString(s string) error {
f := make(map[string]interface{})
if err := json.Unmarshal([]byte(s), &f); err != nil {
return err
}
delete(f, "BillMonth")
delete(f, "CustomerUin")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestErro... | [
-0.3595898747444153,
-0.15611772239208221,
0.39401814341545105,
-0.19698090851306915,
-1.2604109048843384,
0.37347322702407837,
0.06168416142463684,
-0.80464768409729,
0.4389824867248535,
0.3063521683216095,
0.22616586089134216,
0.9481322765350342,
0.21933798491954803,
-0.28452080488204956... |
func (r *DescribeBillSummaryByProductResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
} | [
0.17496179044246674,
-0.3722963035106659,
0.1800062209367752,
-0.5716520547866821,
-1.1527754068374634,
0.20358328521251678,
0.44360312819480896,
-1.014897346496582,
1.085868000984192,
0.44954913854599,
-0.3776768147945404,
0.2523392140865326,
-0.06775505840778351,
-0.985817551612854,
0.... |
func (r *DescribeBillSummaryByRegionRequest) FromJsonString(s string) error {
f := make(map[string]interface{})
if err := json.Unmarshal([]byte(s), &f); err != nil {
return err
}
delete(f, "BillMonth")
delete(f, "CustomerUin")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError... | [
-0.007458616513758898,
-0.2281922549009323,
0.33561620116233826,
-0.5326383709907532,
-1.3537942171096802,
0.3386709988117218,
-0.0618956983089447,
-0.8200510144233704,
0.17602765560150146,
0.3833857476711273,
0.5071719288825989,
0.9034305810928345,
0.14097438752651215,
-0.1052384451031684... |
func (r *DescribeBillSummaryByRegionResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
} | [
0.5075981020927429,
-0.4356023669242859,
0.18622539937496185,
-1.11076819896698,
-1.3128454685211182,
0.23216024041175842,
0.2339220941066742,
-0.9043634533882141,
0.9355548024177551,
0.3655318319797516,
-0.00008861054811859503,
0.19749681651592255,
-0.13117970526218414,
-0.554838538169860... |
func (r *DescribeCustomerBillDetailRequest) FromJsonString(s string) error {
f := make(map[string]interface{})
if err := json.Unmarshal([]byte(s), &f); err != nil {
return err
}
delete(f, "CustomerUin")
delete(f, "Month")
delete(f, "PageSize")
delete(f, "Page")
delete(f, "PayMode")
delete(f, "ActionType")
d... | [
0.42291972041130066,
-0.3269767165184021,
0.3318500816822052,
-0.23215018212795258,
-1.169783353805542,
0.1949896216392517,
-0.11862573772668839,
-0.5577444434165955,
0.33612823486328125,
0.09008219838142395,
-0.08456946909427643,
0.8932637572288513,
-0.12079443782567978,
0.794594705104827... |
func (r *DescribeCustomerBillDetailResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
} | [
0.9734459519386292,
-0.6207824945449829,
0.019820712506771088,
-0.794480562210083,
-1.5578330755233765,
0.18708756566047668,
0.08609715849161148,
-0.5662593841552734,
0.9184065461158752,
0.029891368001699448,
-0.4932805895805359,
0.42129814624786377,
-0.40766260027885437,
0.084758758544921... |
func (r *DescribeCustomerBillSummaryRequest) FromJsonString(s string) error {
f := make(map[string]interface{})
if err := json.Unmarshal([]byte(s), &f); err != nil {
return err
}
delete(f, "CustomerUin")
delete(f, "Month")
delete(f, "PayMode")
delete(f, "ActionType")
delete(f, "IsConfirmed")
if len(f) > 0 {
... | [
-0.09336035698652267,
-0.20528458058834076,
0.336149126291275,
-0.27220019698143005,
-1.4585645198822021,
0.3052128851413727,
-0.13976986706256866,
-0.6866589784622192,
0.4454716742038727,
0.5401211380958557,
0.14241988956928253,
0.7192873358726501,
-0.17513641715049744,
0.3344600796699524... |
func (r *DescribeCustomerBillSummaryResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
} | [
0.517911434173584,
-0.25311508774757385,
0.09575909376144409,
-0.7755633592605591,
-1.7344459295272827,
0.2652404308319092,
0.06741996854543686,
-0.6080107688903809,
1.0035839080810547,
0.4517946243286133,
-0.1459008902311325,
0.08992874622344971,
-0.38820070028305054,
-0.0555957667529583,... |
func (r *DescribeCustomerInfoRequest) FromJsonString(s string) error {
f := make(map[string]interface{})
if err := json.Unmarshal([]byte(s), &f); err != nil {
return err
}
delete(f, "CustomerUin")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeCustomerInfoRequest... | [
0.06776198744773865,
-0.31377723813056946,
0.28812870383262634,
-0.6857007741928101,
-1.410466194152832,
-0.4766998887062073,
-0.1243496686220169,
-0.49530068039894104,
0.08854078501462936,
0.224490225315094,
0.4614415466785431,
0.8719084858894348,
0.0337703563272953,
-0.34963464736938477,... |
func (r *DescribeCustomerInfoResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
} | [
0.6897969245910645,
-0.696319580078125,
0.06743458658456802,
-1.3765560388565063,
-1.4896881580352783,
-0.6658477783203125,
-0.22740034759044647,
-0.8000295162200928,
0.46939679980278015,
-0.0071351416409015656,
-0.06736362725496292,
0.28131288290023804,
-0.04005692899227142,
-0.7676878571... |
func (r *DescribeCustomerUinRequest) FromJsonString(s string) error {
f := make(map[string]interface{})
if err := json.Unmarshal([]byte(s), &f); err != nil {
return err
}
delete(f, "Page")
delete(f, "PageSize")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeCust... | [
-0.6131406426429749,
-0.33557379245758057,
0.430065780878067,
-0.5695945024490356,
-1.1177014112472534,
-0.13743504881858826,
-0.3645879924297333,
0.006339291110634804,
0.5644385814666748,
-0.2559505105018616,
0.439168781042099,
0.7975589036941528,
0.21487444639205933,
-0.4539147913455963,... |
func (r *DescribeCustomerUinResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
} | [
0.09074375778436661,
-0.625284731388092,
0.13459359109401703,
-0.8851436972618103,
-1.2328330278396606,
-0.17773424088954926,
-0.018456565216183662,
-0.2893405854701996,
0.9768124222755432,
-0.4611223042011261,
-0.0933157205581665,
0.5481352806091309,
-0.2049950510263443,
-0.87422096729278... |
func (r *GetCountryCodesRequest) FromJsonString(s string) error {
f := make(map[string]interface{})
if err := json.Unmarshal([]byte(s), &f); err != nil {
return err
}
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "GetCountryCodesRequest has unknown keys!", "")
}
retur... | [
-0.031074967235326767,
-0.5334343314170837,
0.3186403810977936,
-0.18957220017910004,
-1.0414217710494995,
-0.30281251668930054,
-0.46478140354156494,
-0.34894102811813354,
-0.0026562188286334276,
0.10485833883285522,
0.31016531586647034,
0.698486328125,
-0.26913467049598694,
-0.6240527033... |
func (r *GetCountryCodesResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
} | [
0.8088135719299316,
-0.8783393502235413,
0.15838754177093506,
-0.8469251394271851,
-1.1537976264953613,
-0.2616865336894989,
-0.0015707864658907056,
-0.4169788956642151,
0.8036990761756897,
0.07721894979476929,
-0.46487957239151,
-0.01741756685078144,
-0.43948349356651306,
-0.9036720395088... |
func (r *QueryAccountVerificationStatusRequest) FromJsonString(s string) error {
f := make(map[string]interface{})
if err := json.Unmarshal([]byte(s), &f); err != nil {
return err
}
delete(f, "ClientUin")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "QueryAccountVerific... | [
0.060761284083127975,
-0.40944933891296387,
0.10550502687692642,
-0.06718215346336365,
-0.7845649123191833,
0.2781456410884857,
-0.12260352820158005,
-0.688525378704071,
0.48774200677871704,
0.3980105519294739,
-0.10175015777349472,
0.316458135843277,
0.1978699117898941,
-0.566422700881958... |
func (r *QueryAccountVerificationStatusResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
} | [
0.7140977382659912,
-0.8852795362472534,
0.0015533063560724258,
-0.34733864665031433,
-0.7859740257263184,
0.3818551003932953,
0.2017553448677063,
-0.692219614982605,
1.2788314819335938,
0.3735860288143158,
-0.7546088099479675,
-0.2716342508792877,
0.16903159022331238,
-1.0191540718078613,... |
func (r *QueryCreditAllocationHistoryRequest) FromJsonString(s string) error {
f := make(map[string]interface{})
if err := json.Unmarshal([]byte(s), &f); err != nil {
return err
}
delete(f, "ClientUin")
delete(f, "Page")
delete(f, "PageSize")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.... | [
0.03560706973075867,
-0.3860609829425812,
0.2850479185581207,
-0.8423632383346558,
-1.1089304685592651,
-0.0850994735956192,
-0.12193449586629868,
-0.11086143553256989,
0.6489964127540588,
0.1464097797870636,
1.1587326526641846,
0.894109845161438,
0.6827563047409058,
-0.4746891260147095,
... |
func (r *QueryCreditAllocationHistoryResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
} | [
0.5049299001693726,
-0.8121529221534729,
0.09601985663175583,
-1.1030527353286743,
-1.1911159753799438,
0.10014963895082474,
0.08784312009811401,
-0.06890515983104706,
1.396235704421997,
0.07458270341157913,
0.7982441782951355,
0.2328977733850479,
0.8596973419189453,
-1.1234909296035767,
... |
func (r *QueryCreditByUinListRequest) FromJsonString(s string) error {
f := make(map[string]interface{})
if err := json.Unmarshal([]byte(s), &f); err != nil {
return err
}
delete(f, "UinList")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "QueryCreditByUinListRequest has... | [
-1.036198377609253,
-0.1678083837032318,
0.36639147996902466,
-0.2378682643175125,
-1.0237843990325928,
-0.07635965943336487,
-0.16072818636894226,
0.19332614541053772,
0.9164232611656189,
0.21817956864833832,
0.38171517848968506,
0.3242192268371582,
0.1451624482870102,
-0.4636131823062897... |
func (r *QueryCreditByUinListResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
} | [
-0.36038029193878174,
-0.3559722900390625,
0.1425042599439621,
-0.5537856817245483,
-0.8707478046417236,
0.13887189328670502,
-0.08433836698532104,
-0.1352529674768448,
1.4193720817565918,
0.11320149898529053,
0.023109255358576775,
-0.2763599753379822,
0.27344244718551636,
-0.9550844430923... |
func (r *QueryCreditQuotaRequest) FromJsonString(s string) error {
f := make(map[string]interface{})
if err := json.Unmarshal([]byte(s), &f); err != nil {
return err
}
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "QueryCreditQuotaRequest has unknown keys!", "")
}
ret... | [
-0.40630510449409485,
-0.5946114659309387,
0.2980317175388336,
-0.6304289698600769,
-1.1540709733963013,
0.023766174912452698,
-0.4787241220474243,
-0.6785068511962891,
-0.05632125213742256,
0.4819352328777313,
0.4142857789993286,
0.6779951453208923,
0.5423367619514465,
-0.7388222217559814... |
func (r *QueryCreditQuotaResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
} | [
0.19048850238323212,
-1.104581594467163,
0.10878817737102509,
-1.0676349401474,
-1.1188325881958008,
0.0386793315410614,
-0.29709652066230774,
-0.8249171376228333,
0.7626212239265442,
0.41383934020996094,
-0.0769188404083252,
0.1688126027584076,
0.6033044457435608,
-1.2987216711044312,
0... |
func (r *QueryCustomersCreditRequest) FromJsonString(s string) error {
f := make(map[string]interface{})
if err := json.Unmarshal([]byte(s), &f); err != nil {
return err
}
delete(f, "FilterType")
delete(f, "Filter")
delete(f, "Page")
delete(f, "PageSize")
delete(f, "Order")
if len(f) > 0 {
return tcerr.New... | [
-0.24247172474861145,
-0.7525874972343445,
0.3833348751068115,
-0.5751481056213379,
-1.1212918758392334,
0.18297550082206726,
-0.36805179715156555,
-0.9393178820610046,
0.16659869253635406,
0.35430946946144104,
0.4516546428203583,
0.820326566696167,
0.2938615679740906,
-0.5214311480522156,... |
func (r *QueryCustomersCreditResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
} | [
0.5262163281440735,
-1.1042912006378174,
0.0991138368844986,
-1.0254266262054443,
-1.1296461820602417,
0.30745676159858704,
-0.2588459551334381,
-0.73589688539505,
0.8225588202476501,
0.2673986852169037,
0.040167778730392456,
0.14576692879199982,
0.152554452419281,
-1.0574082136154175,
-... |
func (r *QueryDirectCustomersCreditRequest) FromJsonString(s string) error {
f := make(map[string]interface{})
if err := json.Unmarshal([]byte(s), &f); err != nil {
return err
}
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "QueryDirectCustomersCreditRequest has unknown... | [
-0.22642479836940765,
-0.8373653292655945,
0.350935697555542,
-1.0222972631454468,
-1.0941067934036255,
0.7113008499145508,
-0.04670310765504837,
-0.9463506937026978,
-0.14667345583438873,
0.28263840079307556,
0.4854828715324402,
0.672672688961029,
0.35186606645584106,
-0.5742531418800354,... |
func (r *QueryDirectCustomersCreditResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
} | [
0.49750638008117676,
-1.3435643911361694,
0.14746849238872528,
-1.3734140396118164,
-1.0075467824935913,
0.6855694651603699,
0.18439409136772156,
-0.9948840737342834,
0.5790927410125732,
0.2932959794998169,
0.0014697507722303271,
0.17465460300445557,
0.2444562464952469,
-1.05266535282135,
... |
func (r *QueryPartnerCreditRequest) FromJsonString(s string) error {
f := make(map[string]interface{})
if err := json.Unmarshal([]byte(s), &f); err != nil {
return err
}
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "QueryPartnerCreditRequest has unknown keys!", "")
}
... | [
-0.3695102334022522,
-0.20481514930725098,
0.5220993757247925,
-0.742293655872345,
-0.9804170727729797,
0.4873725175857544,
-0.1840042620897293,
-0.2458205223083496,
0.016694027930498123,
0.04290338233113289,
0.62782883644104,
0.4244464933872223,
0.018621627241373062,
-0.8083756566047668,
... |
func (r *QueryPartnerCreditResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
} | [
0.2073693573474884,
-0.586118221282959,
0.2335049957036972,
-0.9943665862083435,
-1.0099399089813232,
0.5280341506004333,
0.1261574923992157,
-0.46064475178718567,
0.9196162223815918,
-0.046877533197402954,
0.12982290983200073,
-0.07778174430131912,
-0.09708862751722336,
-1.352143168449401... |
func (r *QueryVoucherAmountByUinRequest) FromJsonString(s string) error {
f := make(map[string]interface{})
if err := json.Unmarshal([]byte(s), &f); err != nil {
return err
}
delete(f, "ClientUins")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "QueryVoucherAmountByUinRe... | [
-0.6271783113479614,
-0.20051980018615723,
0.3164483606815338,
-0.1738135665655136,
-1.333465337753296,
-0.23148584365844727,
0.051274243742227554,
-0.05947769433259964,
0.5935243368148804,
-0.03305008262395859,
0.6669092774391174,
-0.021940989419817924,
0.6900792121887207,
-0.276112675666... |
func (r *QueryVoucherAmountByUinResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
} | [
-0.29241248965263367,
-0.601161003112793,
0.180754616856575,
-0.40908926725387573,
-1.3144248723983765,
-0.11375611275434494,
0.14853675663471222,
-0.10672562569379807,
1.3886317014694214,
-0.5009995698928833,
0.024389592930674553,
-0.4797934591770172,
0.5682990550994873,
-0.63124626874923... |
func (r *QueryVoucherListByUinRequest) FromJsonString(s string) error {
f := make(map[string]interface{})
if err := json.Unmarshal([]byte(s), &f); err != nil {
return err
}
delete(f, "ClientUins")
delete(f, "Status")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "QueryV... | [
-0.8672385811805725,
-0.25529253482818604,
0.23762451112270355,
-0.12854085862636566,
-0.9535182118415833,
-0.035071566700935364,
-0.1552339494228363,
0.1014544889330864,
0.7535768747329712,
0.13213539123535156,
0.2433348447084427,
-0.019428422674536705,
0.47265416383743286,
-0.11565490812... |
func (r *QueryVoucherListByUinResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
} | [
-0.5355212092399597,
-0.42905688285827637,
0.07973814010620117,
-0.3802652060985565,
-0.9599536657333374,
0.016078440472483635,
-0.1165214404463768,
0.1079891249537468,
1.4429576396942139,
-0.3109610676765442,
-0.3228299617767334,
-0.5715056657791138,
0.41589462757110596,
-0.22333763539791... |
func (r *QueryVoucherPoolRequest) FromJsonString(s string) error {
f := make(map[string]interface{})
if err := json.Unmarshal([]byte(s), &f); err != nil {
return err
}
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "QueryVoucherPoolRequest has unknown keys!", "")
}
ret... | [
-0.5258380770683289,
-0.507706880569458,
0.2175430804491043,
-0.2361309677362442,
-1.0852106809616089,
0.1348266899585724,
-0.3952983021736145,
-0.5885636806488037,
0.09913911670446396,
0.451744943857193,
0.38037747144699097,
0.6617470979690552,
0.2892504334449768,
-0.4529353976249695,
-... |
func (r *QueryVoucherPoolResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
} | [
0.1439923793077469,
-0.877914309501648,
-0.0024851628113538027,
-0.4965108633041382,
-1.044663429260254,
0.21551065146923065,
0.022006193175911903,
-0.7984628677368164,
1.0117775201797485,
0.29775017499923706,
-0.1269259750843048,
0.0769081711769104,
0.2860949635505676,
-0.5748404860496521... |
func Not(m Matcher) NotMatcher {
return NotMatcher{m}
} | [
-0.7260311245918274,
-0.5735282301902771,
0.35987865924835205,
0.5131217241287231,
-1.1308891773223877,
0.21692493557929993,
0.22508001327514648,
0.6839792728424072,
-0.2674434781074524,
-0.615039050579071,
-0.4019618630409241,
-0.22389312088489532,
-0.17883296310901642,
0.4809602797031402... |
func (neg NotMatcher) Match(u *url.URL) bool {
return !neg.M.Match(u)
} | [
-1.2951716184616089,
0.3893379271030426,
0.11344502866268158,
0.638528048992157,
-1.048400640487671,
1.3399630784988403,
-0.2575717866420746,
0.4097892940044403,
-0.16696788370609283,
-0.2586270570755005,
-0.19173657894134521,
-0.5888921618461609,
-0.9804574251174927,
1.1852037906646729,
... |
func AllOf(m ...Matcher) AndMatcher {
return AndMatcher(m)
} | [
0.4363691806793213,
-1.1424193382263184,
0.560526430606842,
0.8755429983139038,
-1.1049822568893433,
-0.21768030524253845,
-0.9927191734313965,
0.7359850406646729,
0.24411091208457947,
-0.696861743927002,
0.8475114703178406,
-0.9984872341156006,
0.18972381949424744,
1.3706248998641968,
-... |
func (am AndMatcher) Match(u *url.URL) bool {
for _, m := range am {
if !m.Match(u) {
return false
}
}
return true
} | [
-0.9681715369224548,
0.15785108506679535,
0.3332720398902893,
0.5363237857818604,
-0.9078593254089355,
0.6913357377052307,
-0.006603681482374668,
0.7071372270584106,
0.014702172949910164,
-0.4586838185787201,
-0.5261570811271667,
-0.6856344938278198,
-0.47599780559539795,
1.252983927726745... |
func AnyOf(m ...Matcher) OrMatcher {
return OrMatcher(m)
} | [
-0.38860568404197693,
-0.7190722227096558,
0.4390554428100586,
0.16648876667022705,
-0.28285548090934753,
-0.39167866110801697,
-0.3650738000869751,
-0.25067138671875,
-0.6062027215957642,
-0.9136613607406616,
0.640487551689148,
-0.9769281148910522,
-0.2515840530395508,
0.6278043985366821,... |
func (om OrMatcher) Match(u *url.URL) bool {
for _, m := range om {
if m.Match(u) {
return true
}
}
return false
} | [
-1.1701730489730835,
0.5101844668388367,
0.2898682653903961,
0.40922868251800537,
-0.8476549386978149,
0.23375169932842255,
0.195903480052948,
0.9391134977340698,
0.25762230157852173,
-0.25675180554389954,
-0.3994242548942566,
-1.0528843402862549,
-0.4261735677719116,
0.8932379484176636,
... |
func (*ExtraStuff) 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 _ExtraStuff_OneofMarshaler, _ExtraStuff_OneofUnmarshaler, _ExtraStuff_OneofSizer, []interface{}{
(*Extra... | [
-0.6393766403198242,
0.8220928907394409,
0.4683719873428345,
-0.9422173500061035,
0.03586519509553909,
-0.4377874433994293,
0.6704155802726746,
-0.6716336607933044,
0.5914642214775085,
-0.8323122262954712,
-0.8852440118789673,
0.2898079454898834,
-0.22847194969654083,
0.5906460285186768,
... |
func (m mockProc) CloseAsync() {
// Do nothing as our processor doesn't require resource cleanup.
} | [
-0.1005207896232605,
-0.5305266976356506,
0.6560056209564209,
-0.46720248460769653,
-0.1026909276843071,
0.7522220015525818,
1.0353800058364868,
0.005033628549426794,
0.2350979447364807,
-0.5864598751068115,
0.4137851297855377,
-0.07003062963485718,
0.25023916363716125,
1.1604810953140259,... |
func (m mockProc) WaitForClose(timeout time.Duration) error {
// Do nothing as our processor doesn't require resource cleanup.
return nil
} | [
0.03345271572470665,
0.3071061074733734,
0.5822712182998657,
-0.40401366353034973,
0.265672504901886,
0.3296361267566681,
-0.00621136324480176,
-0.05097780376672745,
-0.7607230544090271,
-0.5633357763290405,
0.4299887716770172,
-0.3455717861652374,
-0.24658916890621185,
1.4507372379302979,... |
func Verse(v int) string {
// if it's the final verse, return it alone
if v == len(lyrics) {
return lyrics[v-1].item
}
// otherwise return the item plus the list plus the list of all previous stanzas
r := lyrics[v-1].item
for i := v - 1; i >= 0; i-- {
r += "\n" + lyrics[i].list
}
return r
} | [
-1.2840826511383057,
-0.2386903613805771,
0.7125157713890076,
-0.27340421080589294,
0.10049407929182053,
-0.6200400590896606,
0.34894153475761414,
0.3252529799938202,
0.19731329381465912,
0.6014000773429871,
-0.027995286509394646,
-0.2531265318393707,
-0.7476112842559814,
0.099922589957714... |
func Verses(i, j int) string {
r := ""
for x := i; x <= j; x++ {
if r != "" {
r += "\n\n"
}
r += Verse(x)
}
return r
} | [
-0.17283381521701813,
0.29689115285873413,
0.4407217502593994,
-1.2213125228881836,
-0.4608984589576721,
-0.017745140939950943,
-1.0265122652053833,
-1.3960398435592651,
-0.6478233933448792,
0.4102886915206909,
0.2947786748409271,
0.030049437656998634,
-0.532156229019165,
0.437839388847351... |
func HandleListEC2CredentialsSuccessfully(t *testing.T) {
th.Mux.HandleFunc("/users/2844b2a08be147a08ef58317d6471f1f/credentials/OS-EC2", func(w http.ResponseWriter, r *http.Request) {
th.TestMethod(t, r, "GET")
th.TestHeader(t, r, "Accept", "application/json")
th.TestHeader(t, r, "X-Auth-Token", client.TokenID)... | [
-0.1637594848871231,
-0.7411240339279175,
0.5788132548332214,
-0.8152366280555725,
-0.05884486809372902,
-0.02052321657538414,
-0.43286755681037903,
-0.39310598373413086,
-0.4788835644721985,
0.03572506085038185,
-0.6243415474891663,
-0.11089037358760834,
0.8661133050918579,
-0.16544941067... |
func HandleGetEC2CredentialSuccessfully(t *testing.T) {
th.Mux.HandleFunc("/users/2844b2a08be147a08ef58317d6471f1f/credentials/OS-EC2/f741662395b249c9b8acdebf1722c5ae", func(w http.ResponseWriter, r *http.Request) {
th.TestMethod(t, r, "GET")
th.TestHeader(t, r, "Accept", "application/json")
th.TestHeader(t, r, ... | [
0.11711148172616959,
-0.4300810694694519,
0.70867919921875,
-0.6609326004981995,
0.058581624180078506,
-0.13402915000915527,
-0.14177805185317993,
-0.7373066544532776,
-0.704079270362854,
-0.37039071321487427,
-0.22857585549354553,
0.4508034586906433,
0.869089663028717,
-0.5815099477767944... |
func HandleCreateEC2CredentialSuccessfully(t *testing.T) {
th.Mux.HandleFunc("/users/2844b2a08be147a08ef58317d6471f1f/credentials/OS-EC2", func(w http.ResponseWriter, r *http.Request) {
th.TestMethod(t, r, "POST")
th.TestHeader(t, r, "X-Auth-Token", client.TokenID)
th.TestJSONRequest(t, r, CreateRequest)
w.Wr... | [
-0.07449307292699814,
-0.2625303566455841,
0.36398956179618835,
-0.570816159248352,
0.4774737060070038,
0.21286535263061523,
-0.23436692357063293,
-0.8780788779258728,
-0.6305190920829773,
-0.17185208201408386,
-0.6019391417503357,
-0.0478915199637413,
0.8862276077270508,
-0.41169849038124... |
func HandleDeleteEC2CredentialSuccessfully(t *testing.T) {
th.Mux.HandleFunc("/users/2844b2a08be147a08ef58317d6471f1f/credentials/OS-EC2/f741662395b249c9b8acdebf1722c5ae", func(w http.ResponseWriter, r *http.Request) {
th.TestMethod(t, r, "DELETE")
th.TestHeader(t, r, "X-Auth-Token", client.TokenID)
w.WriteHead... | [
0.39080628752708435,
-0.6277652382850647,
0.4701451361179352,
-0.516486406326294,
0.13792553544044495,
0.4619084894657135,
0.2723764479160309,
-0.15787769854068756,
-0.08463522046804428,
-0.5597801208496094,
0.05289720743894577,
-0.005853352136909962,
1.0084455013275146,
-0.444885015487670... |
func (fi bindataFileInfo) Name() string {
return fi.name
} | [
0.08166918903589249,
-1.4572765827178955,
0.4833078384399414,
0.14237014949321747,
-0.3545391261577606,
0.8819460272789001,
0.010945647954940796,
-0.2467803955078125,
-1.2708252668380737,
-0.10601194947957993,
-0.3917791545391083,
-0.41195377707481384,
0.39125633239746094,
0.16644497215747... |
func (fi bindataFileInfo) Size() int64 {
return fi.size
} | [
0.16575103998184204,
-0.1223422959446907,
0.17271094024181366,
-0.07949239760637283,
0.3543928861618042,
0.7548951506614685,
0.5927076935768127,
0.07495921850204468,
-1.0578577518463135,
-1.1731369495391846,
-0.10568573325872421,
-0.17690835893154144,
-0.33118754625320435,
0.30395281314849... |
func (fi bindataFileInfo) Mode() os.FileMode {
return fi.mode
} | [
-0.41162919998168945,
-0.9577594995498657,
0.44155263900756836,
-0.13144180178642273,
0.5922524929046631,
1.610377311706543,
0.009310288354754448,
0.2884019613265991,
-1.065315842628479,
-1.1910521984100342,
0.4981614947319031,
-0.2990283668041229,
-0.17645005881786346,
0.4694020748138428,... |
func (fi bindataFileInfo) ModTime() time.Time {
return fi.modTime
} | [
-0.2685695290565491,
-0.8271465301513672,
0.35384321212768555,
-0.4112885892391205,
0.37963899970054626,
0.6579224467277527,
-0.6294410824775696,
0.37015482783317566,
-0.2557626962661743,
0.014167135581374168,
0.4302074909210205,
-0.03708653151988983,
-0.8495825529098511,
0.746182441711425... |
func (fi bindataFileInfo) IsDir() bool {
return fi.mode&os.ModeDir != 0
} | [
0.10024360567331314,
-1.1714234352111816,
0.48356473445892334,
1.009621500968933,
0.10103210061788559,
1.108405590057373,
0.2600551247596741,
0.20429658889770508,
-0.4312979578971863,
-1.16013765335083,
0.37434864044189453,
0.0836201161146164,
-0.2748110294342041,
0.850128710269928,
0.44... |
func (fi bindataFileInfo) Sys() interface{} {
return nil
} | [
-0.18937675654888153,
-0.91487056016922,
0.4192674458026886,
0.23279045522212982,
0.01389834750443697,
-0.11405561864376068,
0.5312886238098145,
-0.4064529240131378,
-0.1416921764612198,
-1.7679998874664307,
-0.9565558433532715,
0.39589381217956543,
0.34836944937705994,
0.461544007062912,
... |
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.7961481213569641,
-1.231316328048706,
0.6331653594970703,
-0.6093899011611938,
-1.5469212532043457,
-0.11101046949625015,
0.12971428036689758,
-1.339033842086792,
-1.135871410369873,
0.48552271723747253,
0.3090146481990814,
0.3249550461769104,
-0.6009676456451416,
-0.44264835119247437,
... |
func MustAsset(name string) []byte {
a, err := Asset(name)
if err != nil {
panic("asset: Asset(" + name + "): " + err.Error())
}
return a
} | [
-0.012778721749782562,
0.11985722929239273,
0.4091297686100006,
-0.5268407464027405,
-0.8276721239089966,
0.4719153940677643,
-0.8186281323432922,
-1.5736594200134277,
0.1638851910829544,
0.6357054710388184,
-0.5354582667350769,
0.35693278908729553,
0.00571512570604682,
-0.0248876828700304... |
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.371969074010849,
-1.1052989959716797,
0.5630447864532471,
-0.9225729703903198,
-1.3563868999481201,
0.0033553566318005323,
0.677753210067749,
-0.8006685376167297,
-1.2748289108276367,
0.31153640151023865,
0.263608455657959,
0.26388221979141235,
0.06357733905315399,
-0.3988077640533447,
... |
func AssetNames() []string {
names := make([]string, 0, len(_bindata))
for name := range _bindata {
names = append(names, name)
}
return names
} | [
-0.7293786406517029,
-0.84603351354599,
0.7321817874908447,
-0.39323171973228455,
-0.48951348662376404,
0.766120195388794,
-0.5028704404830933,
-0.8655747175216675,
-0.4145086705684662,
0.8099910020828247,
0.16903378069400787,
1.1630488634109497,
-0.02815241925418377,
0.03426046296954155,
... |
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.3437131941318512,
-0.3622545003890991,
0.6770347952842712,
-1.259203314781189,
-0.006138352211564779,
-0.04453152045607567,
-0.0072633964009583,
-0.4395049512386322,
-0.20619173347949982,
-0.251017302274704,
0.17843563854694366,
0.13568542897701263,
-0.23627057671546936,
-0.5698506236076... |
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.42261990904808044,
0.30019938945770264,
0.581339955329895,
-0.20641711354255676,
-0.2382902055978775,
-0.24414557218551636,
0.5739707946777344,
-0.029911449179053307,
0.061882197856903076,
-0.4392353594303131,
0.5113734006881714,
0.327597051858902,
-0.6125143766403198,
0.0351651050150394... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.