text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func (c *networkServicesEndpointPolicies) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
var timeout time.Duration
if listOpts.TimeoutSeconds != nil {
timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second
}
return c.client.Delete().
Namespace(c.ns).
Res... | [
-0.7007241249084473,
-0.16151560842990875,
0.723917543888092,
-0.20445553958415985,
0.32353201508522034,
0.5999060869216919,
-0.13774104416370392,
-0.4827113747596741,
-0.059643834829330444,
0.11255795508623123,
0.30645814538002014,
0.09054065495729446,
-0.8037146925926208,
0.6259183287620... |
func (c *networkServicesEndpointPolicies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.NetworkServicesEndpointPolicy, err error) {
result = &v1beta1.NetworkServicesEndpointPolicy{}
err = c.client.Patch(pt).
Namespace(c.ns).
... | [
-0.6710274815559387,
-0.09255295246839523,
-0.001993437297642231,
-0.7814705967903137,
-0.5270604491233826,
1.9991177320480347,
-0.8269464373588562,
-0.5938087105751038,
0.4680827558040619,
0.208929643034935,
0.06305787712335587,
0.2178247720003128,
-1.0252325534820557,
-0.1091162636876106... |
func (r *LifecyclePolicy_CreateRule) AWSCloudFormationType() string {
return "AWS::DLM::LifecyclePolicy.CreateRule"
} | [
0.9532938003540039,
0.4695129692554474,
0.34259241819381714,
-0.38256600499153137,
1.1858673095703125,
1.0691053867340088,
-0.5110663175582886,
-0.18767306208610535,
-0.08683422207832336,
0.12099959701299667,
0.3232851028442383,
0.14364267885684967,
-0.36531001329421997,
1.1396352052688599... |
func NewServiceAction(ctx *pulumi.Context,
name string, args *ServiceActionArgs, opts ...pulumi.ResourceOption) (*ServiceAction, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.Definition == nil {
return nil, errors.New("invalid value for required argument '... | [
-0.3408717215061188,
-0.4084622859954834,
0.4550011157989502,
0.014818564057350159,
0.131948783993721,
0.6988818049430847,
0.5252707004547119,
-0.250171959400177,
0.03650263324379921,
1.1296849250793457,
-0.8966863751411438,
0.9485412836074829,
-0.23100142180919647,
0.36562579870224,
-0.... |
func GetServiceAction(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *ServiceActionState, opts ...pulumi.ResourceOption) (*ServiceAction, error) {
var resource ServiceAction
err := ctx.ReadResource("aws:servicecatalog/serviceAction:ServiceAction", name, id, state, &resource, opts...)
if err != nil {
r... | [
0.04752622917294502,
-0.6562613844871521,
0.26129621267318726,
-0.11402840912342072,
-0.006421063560992479,
0.43764135241508484,
0.5370720624923706,
-0.6926164031028748,
0.8682003617286682,
0.4995989203453064,
-0.4266109764575958,
1.4900808334350586,
-0.3049365282058716,
-0.483469069004058... |
func (o ServiceActionOutput) AcceptLanguage() pulumi.StringPtrOutput {
return o.ApplyT(func(v *ServiceAction) pulumi.StringPtrOutput { return v.AcceptLanguage }).(pulumi.StringPtrOutput)
} | [
0.7712019681930542,
-0.11198098957538605,
0.6003231406211853,
-0.572330892086029,
-0.477601557970047,
1.263763666152954,
0.6273036003112793,
0.5407587289810181,
0.548663318157196,
0.03405163809657097,
0.5011594295501709,
1.0207678079605103,
0.22940018773078918,
-0.4920682907104492,
-0.40... |
func (o ServiceActionOutput) Definition() ServiceActionDefinitionOutput {
return o.ApplyT(func(v *ServiceAction) ServiceActionDefinitionOutput { return v.Definition }).(ServiceActionDefinitionOutput)
} | [
0.5183748006820679,
-0.9154479503631592,
0.48702770471572876,
0.6756384372711182,
-0.06564157456159592,
-0.49279582500457764,
0.9848734736442566,
-0.17905110120773315,
0.5748263597488403,
-0.282959908246994,
-0.5507434010505676,
1.1075140237808228,
0.938470721244812,
-0.01576869562268257,
... |
func (o ServiceActionOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v *ServiceAction) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput)
} | [
0.21260224282741547,
-1.3594669103622437,
0.3372153043746948,
-0.13942229747772217,
-0.4138014614582062,
0.4823478162288666,
0.6856040954589844,
-0.38053053617477417,
0.1236213892698288,
0.8659440875053406,
-0.1508396863937378,
1.1387522220611572,
0.6491319537162781,
-0.5774486064910889,
... |
func (e *etcdStore) Put(ctx context.Context, codec store.Codec) error {
var (
key = codec.Key()
val string
err error
resp *clientv3.PutResponse
)
if key == "" {
return errKeyIsBlank
}
if val, err = codec.Encode(); err != nil {
return err
}
if resp, err = e.cli.Put(ctx, key, val, clientv3.WithPrevK... | [
-0.41584455966949463,
0.6342692971229553,
0.47670778632164,
-0.48905718326568604,
-0.47133195400238037,
0.47416800260543823,
0.18841493129730225,
0.10635162144899368,
-0.38701432943344116,
0.21331387758255005,
-0.18329548835754395,
0.9502753615379333,
-0.5041459202766418,
-0.01788180693984... |
func (e *etcdStore) Delete(ctx context.Context, codec store.Codec) error {
var (
key = codec.Key()
resp *clientv3.DeleteResponse
err error
)
if key == "" {
return errKeyIsBlank
}
if resp, err = e.cli.Delete(ctx, key, clientv3.WithPrevKV()); err != nil {
return err
}
if len(resp.PrevKvs) == 0 {
retu... | [
0.26929089426994324,
0.4545418918132782,
0.6393638253211975,
0.20339056849479675,
0.10616503655910492,
-0.00372634781524539,
0.09618642181158066,
0.0342409573495388,
0.5537914633750916,
0.01521118264645338,
0.6883582472801208,
0.5083689093589783,
-0.7006955146789551,
0.07134576141834259,
... |
func (e *etcdStore) GetAndDelete(ctx context.Context, codec store.Codec) error {
var (
key = codec.Key()
resp *clientv3.DeleteResponse
err error
)
if key == "" {
return errKeyIsBlank
}
if resp, err = e.cli.Delete(ctx, key, clientv3.WithPrevKV()); err != nil {
return err
}
if len(resp.PrevKvs) == 0 {
... | [
-0.10637160390615463,
-0.3507450819015503,
0.8424637317657471,
0.08833728730678558,
0.0026920470409095287,
-0.5983874201774597,
-0.31919679045677185,
0.11056222766637802,
0.5768279433250427,
0.26669564843177795,
0.7721336483955383,
0.7531003952026367,
-0.6141542792320251,
0.014089297503232... |
func (_m *Usecase) PostEntry(request entry.PostEntryRequest) *errorwrapper.ErrWrapper {
ret := _m.Called(request)
var r0 *errorwrapper.ErrWrapper
if rf, ok := ret.Get(0).(func(entry.PostEntryRequest) *errorwrapper.ErrWrapper); ok {
r0 = rf(request)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*errorwrap... | [
-0.9775252342224121,
-0.37428155541419983,
0.42892885208129883,
0.25911736488342285,
0.09581372886896133,
0.2134963423013687,
0.7591607570648193,
0.04537032172083855,
0.251888245344162,
-0.46124207973480225,
-0.006825458258390427,
0.001390990917570889,
0.21742156147956848,
0.67046719789505... |
func NewCourseDAL(db *gorm.DB) *CourseDAL {
return &CourseDAL{
Database: db,
}
} | [
0.27727338671684265,
-0.48567768931388855,
0.03651202842593193,
0.22822916507720947,
-1.028794765472412,
1.0302034616470337,
-0.49313047528266907,
0.6847036480903625,
0.4221130311489105,
0.5391589999198914,
0.4090172350406647,
0.6969865560531616,
0.4783657193183899,
0.7940837740898132,
0... |
func (c *CourseDAL) Create(course *model.Course) error {
return nil
} | [
-0.001722167944535613,
0.3780275881290436,
0.31186872720718384,
0.015908339992165565,
0.795943021774292,
1.4582492113113403,
0.11958788335323334,
0.1614539623260498,
-0.17422199249267578,
-0.5003301501274109,
0.3493340313434601,
-0.3530462980270386,
0.3763915002346039,
0.32974743843078613,... |
func (c *CourseDAL) Delete(title string) error {
return nil
} | [
0.003612309694290161,
0.14955587685108185,
0.4662928581237793,
0.6165214776992798,
-0.07753224670886993,
1.1976131200790405,
-0.18931016325950623,
0.5396780371665955,
0.4163094460964203,
0.023210618644952774,
0.35558074712753296,
0.2934093475341797,
-0.3750515878200531,
-0.941953182220459,... |
func (c *CourseDAL) Fetch(id int) error {
return nil
} | [
0.017635541036725044,
-0.12195471674203873,
0.38756051659584045,
-0.17532873153686523,
-0.3570508360862732,
1.1583929061889648,
-0.6232860088348389,
-0.22621183097362518,
0.42201635241508484,
-0.2292456328868866,
-0.07388129830360413,
0.5930682420730591,
0.8208318948745728,
0.5625752806663... |
func solve1(input string) string {
w := getWires(input)
// hopefully we have enough info to work this out!
return fmt.Sprintf("%d", w["a"].Signal())
} | [
-0.4738093912601471,
-0.08184515684843063,
0.5417256355285645,
0.3345997929573059,
-0.49940162897109985,
-0.41339942812919617,
0.1957317590713501,
-0.6813101768493652,
0.014178251847624779,
0.5079374313354492,
-0.3326464593410492,
-0.032297033816576004,
-0.30610281229019165,
0.891257047653... |
func solve2(input string) string {
w := getWires(input)
// override b with the output from part 1
w["b"].Input = fixedSignal(3176)
return fmt.Sprintf("%d", w["a"].Signal())
} | [
-0.08838251978158951,
-0.29251232743263245,
0.44625234603881836,
0.38231509923934937,
-0.6155053973197937,
-0.44054165482521057,
0.21299007534980774,
-1.2237852811813354,
-0.24072988331317902,
-0.05619483441114426,
-0.5957579016685486,
-0.07909327000379562,
-0.25680068135261536,
0.80907768... |
func GetLangAndCommandTemplate(cmd *TermDependant) ([]string, string) {
// Get the right command
var cmdWrapper []string
var cmdTpl string
switch GetTerminal() {
case TermBash:
if cmd.Bash != "" {
cmdTpl = cmd.Bash
if runtime.GOOS == "windows" {
if GetTerminalHasWSL() {
// WSL
cmdWrapper = ... | [
-0.2034376859664917,
-1.5096455812454224,
0.8091856241226196,
-0.7835919260978699,
-0.6260015368461609,
0.16749908030033112,
-0.889385998249054,
0.4562095105648041,
-0.3658389151096344,
0.08401466906070709,
0.1912114918231964,
0.5449708700180054,
0.6615507006645203,
1.7075775861740112,
1... |
func EscapeArg(param interface{}) interface{} {
if param == nil {
param = ""
}
if str, ok := param.(string); ok {
switch GetTerminal() {
case TermBash:
return "'" + strings.Replace(str, "'", "'\\''", -1) + "'"
case TermCmd, TermPowershell:
return "'" + strings.Replace(str, "'", "''", -1) + "'"
}
}
... | [
0.05963160842657089,
-0.21936151385307312,
0.8374134302139282,
-0.765458881855011,
-0.23030787706375122,
0.15047825872898102,
-0.600854754447937,
0.6839485764503479,
0.06658033281564713,
1.6713005304336548,
0.5710153579711914,
0.9915139079093933,
0.0855071097612381,
1.2785825729370117,
0... |
func UnescapeArg(param interface{}) interface{} {
if str, ok := param.(string); ok {
end := len(str) - 1
switch GetTerminal() {
case TermBash:
if str[0] == '\'' && str[end] == '\'' {
return strings.Replace(str[1:end], "'\\''", "'", -1)
}
case TermCmd, TermPowershell:
if str[0] == '\'' && str[end]... | [
-0.49628397822380066,
-0.6711634993553162,
1.070146918296814,
-0.9246156811714172,
-0.4868360757827759,
-0.3710176348686218,
-0.1268080174922943,
0.7543545365333557,
-0.3062489330768585,
1.5244005918502808,
0.080753393471241,
0.880987286567688,
-0.1274850070476532,
0.7119162678718567,
0.... |
func CmdAvailability(cmd *TermDependant) string {
switch GetTerminal() {
case TermBash:
if cmd.Bash == "" {
if GetTerminalHasWSL() && cmd.Powershell != "" {
return orange + " (windows wsl)" + reset
}
return red + " (windows only)" + reset
}
case TermCmd, TermPowershell:
if cmd.Powershell == "" {
... | [
-0.18848775327205658,
-0.4882677495479584,
0.6937210559844971,
-0.21077659726142883,
-0.2874869108200073,
0.3886626362800598,
-0.4432581961154938,
0.2077280431985855,
0.24028617143630981,
0.8979495763778687,
1.1848490238189697,
1.2214642763137817,
0.5597776770591736,
1.536041021347046,
0... |
func ExecBuiltin(args []string) {
if len(args) <= 0 {
Panic("No parameters")
}
//TODO: Loadings
switch args[0] {
case "Error":
Error(strings.Join(args[1:], " "))
case "Warn":
Warn(strings.Join(args[1:], " "))
case "Info":
Info(strings.Join(args[1:], " "))
case "Made":
Made(strings.Join(args[1:], " ")... | [
-0.004422788508236408,
-0.7655019164085388,
1.2461333274841309,
0.766723096370697,
-0.1257968693971634,
0.48926398158073425,
0.1350824534893036,
-0.5394414067268372,
-0.2606363594532013,
-0.04388583078980446,
-0.47384312748908997,
0.8169249296188354,
-0.49332064390182495,
0.256942421197891... |
func newSafeBuffer(bufsize int) ([]byte, error) {
// Max BSON document size is 16MB.
// https://docs.mongodb.com/manual/reference/limits/
// For simplicity, bound buffer size at 32MB so that headers and so on fit
// too.
// TODO: Can you put multiple large documents in one insert or reply and
// exceed this limit... | [
0.5329962968826294,
0.271685928106308,
0.9014519453048706,
0.22481219470500946,
-0.8921523094177246,
-0.07606519758701324,
-0.46903643012046814,
-1.0140267610549927,
0.5235435962677002,
-0.822789192199707,
-1.0109325647354126,
0.09775754064321518,
-0.7078991532325745,
0.08902277052402496,
... |
func (self *SawtoothClientTransportZmq) GetTransactionIterator(fetch int, reverse bool) types.TransactionIterator {
pagingControl := &client_list_control_pb2.ClientPagingControls{
Limit: int32(fetch),
}
sortControl := []*client_list_control_pb2.ClientSortControls{
{
Keys: []string{"default"},
Reverse: rev... | [
0.3183896243572235,
0.47767895460128784,
0.5639272928237915,
-1.0694987773895264,
-1.0451606512069702,
-0.2857834994792938,
0.543163537979126,
-0.3421535789966583,
-0.478746622800827,
0.4163464903831482,
0.028671186417341232,
0.4134669601917267,
-0.6515263319015503,
0.04958187788724899,
... |
func (i *Image) Inspect(ctx context.Context, options *InspectOptions) (*ImageData, error) {
logrus.Debugf("Inspecting image %s", i.ID())
if options == nil {
options = &InspectOptions{}
}
if i.cached.completeInspectData != nil {
if options.WithSize && i.cached.completeInspectData.Size == int64(-1) {
size, e... | [
-0.3459620773792267,
-0.1418667733669281,
0.5670185685157776,
-0.8569275736808777,
-0.06675557792186737,
-0.3459870219230652,
0.34206557273864746,
-0.5111101269721985,
-0.07570657879114151,
-0.003576243296265602,
0.2558288872241974,
0.39045318961143494,
0.1564602255821228,
0.04259613901376... |
func (i *Image) inspectInfo(ctx context.Context) (*types.ImageInspectInfo, error) {
if i.cached.partialInspectData != nil {
return i.cached.partialInspectData, nil
}
ref, err := i.StorageReference()
if err != nil {
return nil, err
}
img, err := ref.NewImage(ctx, &i.runtime.systemContext)
if err != nil {
... | [
-0.3723856806755066,
-0.6908979415893555,
0.48219022154808044,
-0.8264700770378113,
-0.3808407187461853,
0.0753302052617073,
0.1646142601966858,
-0.4989676773548126,
-0.09896756708621979,
-0.16375096142292023,
-0.08048614114522934,
0.44192177057266235,
-0.21371160447597504,
0.6369119286537... |
func TestMain(m *testing.M) {
DropTestData(0)
answer := m.Run()
DropTestData(0)
os.Exit(answer)
} | [
-0.24672409892082214,
0.1019611582159996,
0.5065649151802063,
0.5322998762130737,
0.23912712931632996,
1.2924258708953857,
0.7194448709487915,
0.12049318850040436,
-0.3118516504764557,
-0.0020467129070311785,
0.21754014492034912,
0.32006388902664185,
-1.4676110744476318,
-0.113048583269119... |
func ChoicesResp(c *gin.Context) {
// Variable that holds all possible choices in the rpsls game
choices := Choices()
// Call the JSON method of the Context to render the given interface into JSON
c.JSON(
// Set the HTTP status to 200 (OK)
http.StatusOK,
// Pass the data that the response uses
choices,
)... | [
-0.26282715797424316,
-0.9271238446235657,
0.6464968919754028,
-0.2377261072397232,
0.5140998363494873,
0.7428447008132935,
-0.8035097122192383,
-0.018071075901389122,
0.24465778470039368,
0.736851155757904,
-0.11213646084070206,
-0.7896978259086609,
-0.39501434564590454,
-0.32501661777496... |
func ChoiceResp(client *http.Client) gin.HandlerFunc {
//Define a handler function that uses the provided http client from main
fn := func(c *gin.Context) {
// Variable that holds a randomly generated choice selected from Choices()
choice, err := RandomChoice(client)
if choice == nil {
c.AbortWithStatusJSO... | [
0.34223708510398865,
-1.1833082437515259,
0.755153477191925,
-0.26078808307647705,
0.043202389031648636,
0.8080915212631226,
0.17193450033664703,
-0.22077348828315735,
0.7541677951812744,
0.7764092087745667,
0.15182282030582428,
-0.3305552005767822,
-0.7339193224906921,
-0.7476118803024292... |
func PlayResp(client *http.Client) gin.HandlerFunc {
//Define a handler function that uses the provided http client from main
fn := func(c *gin.Context) {
// Create a PlayerChoice variable to bind POST body JSON to, then do just that
pc := PlayerChoice{}
if err := c.ShouldBindWith(&pc, binding.JSON); err != n... | [
-0.10086194425821304,
-0.9266912341117859,
1.148569107055664,
0.2388501912355423,
-0.1845887005329132,
0.535832941532135,
0.412429541349411,
-0.7018658518791199,
0.6166296005249023,
0.5406929850578308,
0.6220040917396545,
-0.16288860142230988,
-1.2455146312713623,
-0.7696822285652161,
0.... |
func ReadFile(inFile string, conf *model.Configuration) (*model.Context, error) {
log.Info.Printf("reading %s..\n", inFile)
f, err := os.Open(inFile)
if err != nil {
return nil, errors.Wrapf(err, "can't open %q", inFile)
}
defer func() {
f.Close()
}()
return Read(f, conf)
} | [
0.2636135518550873,
-0.1520734280347824,
0.5426930785179138,
0.16932415962219238,
-0.43015676736831665,
0.3738950788974762,
0.3925625681877136,
0.34421852231025696,
-1.0347532033920288,
-0.06726332008838654,
0.39086028933525085,
-0.5864145159721375,
-0.3234948515892029,
-0.9190605878829956... |
func Read(rs io.ReadSeeker, conf *model.Configuration) (*model.Context, error) {
log.Read.Println("Read: begin")
ctx, err := model.NewContext(rs, conf)
if err != nil {
return nil, err
}
if ctx.Reader15 {
log.Info.Println("PDF Version 1.5 conforming reader")
} else {
log.Info.Println("PDF Version 1.4 conf... | [
-0.16386429965496063,
-0.7076523900032043,
0.7428303956985474,
-0.29291847348213196,
-0.24572831392288208,
-0.6550614833831787,
1.0688068866729736,
-0.9588613510131836,
-0.05391006916761398,
-0.21606840193271637,
0.8333941102027893,
0.0074957809410989285,
0.08290250599384308,
0.02627986483... |
func fillBuffer(r io.Reader, buf []byte) (int, error) {
var n int
var err error
for n < len(buf) && err == nil {
var nn int
nn, err = r.Read(buf[n:])
n += nn
}
if n > 0 && err == io.EOF {
return n, nil
}
return n, err
} | [
0.017321066930890083,
0.46773776412010193,
0.6821908354759216,
0.35346728563308716,
0.21645799279212952,
-0.0026586786843836308,
0.3457653224468231,
-0.007364440709352493,
0.0663781613111496,
-0.2924482226371765,
-0.423129677772522,
-0.5638195872306824,
-0.9916486144065857,
1.4038392305374... |
func scanLines(data []byte, atEOF bool) (advance int, token []byte, err error) {
if atEOF && len(data) == 0 {
return 0, nil, nil
}
indCR := bytes.IndexByte(data, '\r')
indLF := bytes.IndexByte(data, '\n')
switch {
case indCR >= 0 && indLF >= 0:
if indCR < indLF {
if indLF == indCR+1 {
// 0x0D0A
... | [
-0.32970190048217773,
-0.6263930201530457,
0.6521190404891968,
-0.2345370203256607,
-0.870980978012085,
-1.1492469310760498,
-0.6061371564865112,
-0.012887765653431416,
0.274923175573349,
-0.46564987301826477,
-0.013005907647311687,
-0.4401668608188629,
-0.397349089384079,
0.61534768342971... |
func parseXRefTableEntry(s *bufio.Scanner, xRefTable *model.XRefTable, objectNumber, repairOff int) error {
log.Read.Println("parseXRefTableEntry: begin")
line, err := scanLine(s)
if err != nil {
return err
}
if xRefTable.Exists(objectNumber) {
log.Read.Printf("parseXRefTableEntry: end - Skip entry %d - alr... | [
0.10893965512514114,
-0.6660717725753784,
0.9282492399215698,
-0.23752450942993164,
-0.6228469610214233,
-0.1443781852722168,
0.8039829730987549,
-0.7413811683654785,
-0.5938529372215271,
0.4953829348087311,
0.1400468796491623,
0.3428267240524292,
-0.18187887966632843,
0.5722096562385559,
... |
func parseXRefTableSubSection(s *bufio.Scanner, xRefTable *model.XRefTable, fields []string, repairOff int) error {
log.Read.Println("parseXRefTableSubSection: begin")
startObjNumber, err := strconv.Atoi(fields[0])
if err != nil {
return err
}
objCount, err := strconv.Atoi(fields[1])
if err != nil {
return... | [
0.401022344827652,
-0.2759993076324463,
0.6422095894813538,
-0.15331974625587463,
-0.5614325404167175,
0.13443240523338318,
0.5050050616264343,
-0.37676188349723816,
-0.9153637886047363,
0.08365127444267273,
-0.5262615084648132,
0.2352185845375061,
-0.05480048432946205,
0.29932302236557007... |
func parseObjectStream(osd *types.ObjectStreamDict) error {
log.Read.Printf("parseObjectStream begin: decoding %d objects.\n", osd.ObjCount)
decodedContent := osd.Content
prolog := decodedContent[:osd.FirstObjOffset]
// The separator used in the prolog shall be white space
// but some PDF writers use 0x00.
pro... | [
0.09414838999509811,
-0.8907442688941956,
0.9424381852149963,
-0.3798661530017853,
-0.6941598057746887,
-0.3684249818325043,
0.47262126207351685,
-0.7180833220481873,
-0.735483705997467,
-0.13002797961235046,
-0.2198280543088913,
-0.32831308245658875,
-0.0648253783583641,
0.477777481079101... |
func extractXRefTableEntriesFromXRefStream(buf []byte, xsd *types.XRefStreamDict, ctx *model.Context) error {
log.Read.Printf("extractXRefTableEntriesFromXRefStream begin")
// Note:
// A value of zero for an element in the W array indicates that the corresponding field shall not be present in the stream,
// and t... | [
0.022172274067997932,
-0.11433669924736023,
0.49129047989845276,
0.06822404265403748,
0.03142469376325607,
-0.7839804887771606,
0.6473616361618042,
-0.7927131652832031,
-0.21113573014736176,
0.19405560195446014,
-0.08695241063833237,
0.10225841403007507,
-0.8708142638206482,
0.549934387207... |
func parseXRefStream(rd io.Reader, offset *int64, ctx *model.Context) (prevOffset *int64, err error) {
log.Read.Printf("parseXRefStream: begin at offset %d\n", *offset)
buf, endInd, streamInd, streamOffset, err := buffer(rd)
if err != nil {
return nil, err
}
log.Read.Printf("parseXRefStream: endInd=%[1]d(%[1]... | [
-0.2834946811199188,
-0.624466061592102,
1.0951244831085205,
-0.7388405203819275,
-1.0744438171386719,
-0.642239511013031,
0.794908344745636,
-0.5806155204772949,
-0.3087252080440521,
-0.20591320097446442,
-0.12722624838352203,
0.533829927444458,
-0.29251518845558167,
0.6946749091148376,
... |
func parseHybridXRefStream(offset *int64, ctx *model.Context) error {
log.Read.Println("parseHybridXRefStream: begin")
rd, err := newPositionedReader(ctx.Read.RS, offset)
if err != nil {
return err
}
_, err = parseXRefStream(rd, offset, ctx)
if err != nil {
return err
}
log.Read.Println("parseHybridXRef... | [
0.22734124958515167,
-0.3038119077682495,
0.5889477729797363,
-0.6822265386581421,
0.16794456541538239,
-0.19539624452590942,
0.6952617764472961,
-0.45186811685562134,
-0.36974143981933594,
-0.4719313383102417,
-0.05863296240568161,
0.7942423820495605,
-0.49867966771125793,
0.8502406477928... |
func parseTrailerInfo(d types.Dict, xRefTable *model.XRefTable) error {
log.Read.Println("parseTrailerInfo begin")
if _, found := d.Find("Encrypt"); found {
encryptObjRef := d.IndirectRefEntry("Encrypt")
if encryptObjRef != nil {
xRefTable.Encrypt = encryptObjRef
log.Read.Printf("parseTrailerInfo: Encrypt... | [
0.3943057656288147,
-0.3030602037906647,
0.7502350211143494,
-1.2931817770004272,
0.20671530067920685,
-0.3214353919029236,
0.12046366930007935,
-0.9646286368370056,
-0.955941379070282,
0.2463015764951706,
-0.20888325572013855,
-0.3984640836715698,
0.5057483315467834,
0.7418966293334961,
... |
func parseXRefSection(s *bufio.Scanner, ctx *model.Context, ssCount *int, offCurXRef *int64, repairOff int) (*int64, error) {
log.Read.Println("parseXRefSection begin")
line, err := scanLine(s)
if err != nil {
return nil, err
}
log.Read.Printf("parseXRefSection: <%s>\n", line)
fields := strings.Fields(line)
... | [
0.3383371829986572,
-0.03177573159337044,
0.8067669868469238,
-0.6211313009262085,
-1.2271616458892822,
-0.548485517501831,
0.3074852228164673,
-0.4202750325202942,
-0.552918553352356,
-0.008918019942939281,
0.44106122851371765,
-0.044252388179302216,
0.015088762156665325,
0.36303663253784... |
func bypassXrefSection(ctx *model.Context) error {
var z int64
g := types.FreeHeadGeneration
ctx.Table[0] = &model.XRefTableEntry{
Free: true,
Offset: &z,
Generation: &g}
rs := ctx.Read.RS
eolCount := ctx.Read.EolCount
var off, offset int64
rd, err := newPositionedReader(rs, &offset)
if err !=... | [
0.1884007304906845,
-0.49417752027511597,
0.9341712594032288,
-0.952915608882904,
-0.5756503343582153,
-0.37733781337738037,
0.5231205821037292,
-1.0837104320526123,
-0.5638678669929504,
0.5197145342826843,
0.8227910399436951,
0.43998727202415466,
0.3388470411300659,
-0.0729009136557579,
... |
func buildXRefTableStartingAt(ctx *model.Context, offset *int64) error {
log.Read.Println("buildXRefTableStartingAt: begin")
rs := ctx.Read.RS
conf := ctx.Configuration
hv, eolCount, err := headerVersion(rs, conf.HeaderBufSize)
if err != nil {
return err
}
ctx.HeaderVersion = hv
ctx.Read.EolCount = eolCoun... | [
-0.5195804834365845,
-0.809705913066864,
0.9715520739555359,
-0.9187673330307007,
-0.484793096780777,
-0.13453032076358795,
0.3531074523925781,
-0.5807492136955261,
-0.22523610293865204,
0.26277902722358704,
0.5924559235572815,
0.1011880487203598,
-0.14396151900291443,
0.20341981947422028,... |
func readXRefTable(ctx *model.Context) (err error) {
log.Read.Println("readXRefTable: begin")
offset, err := offsetLastXRefSection(ctx, 0)
if err != nil {
return
}
ctx.Write.OffsetPrevXRef = offset
err = buildXRefTableStartingAt(ctx, offset)
if err == io.EOF {
return errors.Wrap(err, "readXRefTable: unex... | [
-0.3977738320827484,
-0.14471764862537384,
0.7227218747138977,
-0.376482754945755,
-0.23761864006519318,
-0.024119984358549118,
0.8686413168907166,
-0.8473886847496033,
-0.28208625316619873,
0.34332987666130066,
0.1497488021850586,
-0.026059336960315704,
0.14628362655639648,
-0.08219232410... |
func buffer(rd io.Reader) (buf []byte, endInd int, streamInd int, streamOffset int64, err error) {
// process: # gen obj ... obj dict ... {stream ... data ... endstream} ... endobj
// streamInd endInd
// -1 if absent ... | [
-0.1878950595855713,
-0.6579086184501648,
1.0283219814300537,
-0.2116747349500656,
-0.287700355052948,
-0.07936292141675949,
1.3564687967300415,
-0.5740859508514404,
-0.20441485941410065,
-0.6382654309272766,
-0.034431032836437225,
0.5762656927108765,
0.1947830319404602,
0.5641837120056152... |
func pdfFilterPipeline(ctx *model.Context, dict types.Dict) ([]types.PDFFilter, error) {
log.Read.Println("pdfFilterPipeline: begin")
var err error
o, found := dict.Find("Filter")
if !found {
// stream is not compressed.
return nil, nil
}
// compressed stream.
var filterPipeline []types.PDFFilter
if i... | [
-0.48104506731033325,
-0.8031799793243408,
0.7313398122787476,
-0.28382787108421326,
-0.2935252785682678,
-0.5181770920753479,
0.01919080689549446,
-0.782963216304779,
-0.531437337398529,
0.010170062072575092,
0.15659199655056,
0.6149482727050781,
0.0437941774725914,
0.47302594780921936,
... |
func ParseObject(ctx *model.Context, offset int64, objNr, genNr int) (types.Object, error) {
log.Read.Printf("ParseObject: begin, obj#%d, offset:%d\n", objNr, offset)
obj, endInd, streamInd, streamOffset, err := object(ctx, offset, objNr, genNr)
if err != nil {
return nil, err
}
switch o := obj.(type) {
cas... | [
0.007805742789059877,
-0.4993472695350647,
1.1056408882141113,
-0.5250085592269897,
-0.6531301140785217,
-0.01937943324446678,
0.2612833082675934,
-0.6673942804336548,
0.40251702070236206,
-0.23345530033111572,
0.022136127576231956,
-0.20744077861309052,
-0.03738430142402649,
0.09160038083... |
func int64Object(ctx *model.Context, objectNumber int) (*int64, error) {
log.Read.Printf("int64Object begin: %d\n", objectNumber)
i, err := dereferencedInteger(ctx, objectNumber)
if err != nil {
return nil, err
}
i64 := int64(i.Value())
log.Read.Printf("int64Object end: %d\n", objectNumber)
return &i64, n... | [
-0.7323633432388306,
-0.6960347294807434,
0.3475227653980255,
0.07452868670225143,
-0.48011329770088196,
-0.007224274333566427,
1.050573706626892,
-0.7334133386611938,
0.0764860138297081,
-0.3142900764942169,
-0.09369082003831863,
0.39778637886047363,
-0.619943380355835,
-0.269157141447067... |
func readStreamContent(rd io.Reader, streamLength int) ([]byte, error) {
log.Read.Printf("readStreamContent: begin streamLength:%d\n", streamLength)
if streamLength == 0 {
// Read until "endstream" then fix "Length".
return readStreamContentBlindly(rd)
}
buf := make([]byte, streamLength)
for totalCount := ... | [
0.13846610486507416,
-0.3811584711074829,
0.6022388935089111,
0.09011442959308624,
-0.6293404698371887,
-0.24110573530197144,
-0.3860909044742584,
-1.2767696380615234,
-0.4230864346027374,
0.10844604671001434,
-0.1177031546831131,
0.576167643070221,
-0.45143893361091614,
0.0682196095585823... |
func loadEncodedStreamContent(ctx *model.Context, sd *types.StreamDict) ([]byte, error) {
log.Read.Printf("LoadEncodedStreamContent: begin\n%v\n", sd)
var err error
// Return already available decoded content.
if sd.Raw != nil {
log.Read.Println("LoadEncodedStreamContent: end, already in memory.")
return sd.... | [
0.10046669840812683,
-1.0137208700180054,
0.6436582207679749,
-1.0878278017044067,
-1.5191502571105957,
0.09178759157657623,
0.03665642440319061,
-0.8722221255302429,
-0.21660591661930084,
0.3448440432548523,
-0.1511034369468689,
0.7412878274917603,
-0.06808935850858688,
0.0940082073211669... |
func saveDecodedStreamContent(ctx *model.Context, sd *types.StreamDict, objNr, genNr int, decode bool) (err error) {
log.Read.Printf("saveDecodedStreamContent: begin decode=%t\n", decode)
// If the "Identity" crypt filter is used we do not need to decrypt.
if ctx != nil && ctx.EncKey != nil {
if len(sd.FilterPip... | [
-0.17772337794303894,
-0.208921417593956,
0.7539255619049072,
-0.5311794877052307,
-0.8584802746772766,
-0.6169654130935669,
0.1852555274963379,
-0.8183923959732056,
0.1827208250761032,
0.20582377910614014,
-0.37305477261543274,
0.5547412633895874,
-0.673374593257904,
0.480177104473114,
... |
func logStream(o types.Object) {
switch o := o.(type) {
case types.StreamDict:
if o.Content == nil {
log.Read.Println("logStream: no stream content")
}
// if o.IsPageContent {
// //log.Read.Printf("content <%s>\n", StreamDict.Content)
// }
case types.ObjectStreamDict:
if o.Content == nil {
l... | [
0.4089691638946533,
-1.1094731092453003,
1.0433955192565918,
-0.36719682812690735,
-0.33091285824775696,
0.16570965945720673,
-0.19386950135231018,
-1.0104873180389404,
0.8029635548591614,
-0.381807804107666,
0.04231739789247513,
1.1611617803573608,
0.16018173098564148,
0.9544194936752319,... |
func decodeObjectStreams(ctx *model.Context) error {
// Note:
// Entry "Extends" intentionally left out.
// No object stream collection validation necessary.
log.Read.Println("decodeObjectStreams: begin")
// Get sorted slice of object numbers.
var keys []int
for k := range ctx.Read.ObjectStreams {
keys = ap... | [
-0.09881830215454102,
-0.8361847996711731,
0.9164953231811523,
-0.18005408346652985,
-0.2800370454788208,
-0.20451825857162476,
1.039940595626831,
-0.8668416738510132,
-0.22763031721115112,
0.38472962379455566,
-0.3757424056529999,
-0.23677946627140045,
0.08498649299144745,
0.3307074010372... |
func dereferenceObjects(ctx *model.Context) error {
log.Read.Println("dereferenceObjects: begin")
xRefTable := ctx.XRefTable
// Get sorted slice of object numbers.
// TODO Skip sorting for performance gain.
var keys []int
for k := range xRefTable.Table {
keys = append(keys, k)
}
sort.Ints(keys)
for _, ob... | [
0.38182130455970764,
0.13729213178157806,
0.7604355812072754,
0.572058916091919,
-0.2519543170928955,
0.05676204711198807,
0.8976434469223022,
-1.1476705074310303,
-0.5355880856513977,
0.0490972176194191,
0.10941058397293091,
0.07736312597990036,
-0.1472725123167038,
0.38010677695274353,
... |
func identifyRootVersion(xRefTable *model.XRefTable) error {
log.Read.Println("identifyRootVersion: begin")
// Try to get Version from Root.
rootVersionStr, err := xRefTable.ParseRootVersion()
if err != nil {
return err
}
if rootVersionStr == nil {
return nil
}
// Validate version and save corresponding... | [
0.28514498472213745,
-1.1767522096633911,
0.707534670829773,
0.799777090549469,
0.5112482309341431,
-0.4847017526626587,
0.13269750773906708,
-0.38761505484580994,
-0.2714216113090515,
0.39242732524871826,
0.14779150485992432,
0.1813923716545105,
-0.12915758788585663,
0.7196075320243835,
... |
func dereferenceXRefTable(ctx *model.Context, conf *model.Configuration) error {
log.Read.Println("dereferenceXRefTable: begin")
xRefTable := ctx.XRefTable
// Note for encrypted files:
// Mandatory provide userpw to open & display file.
// Access may be restricted (Decode access privileges).
// Optionally prov... | [
0.1477116048336029,
-0.7225042581558228,
0.6617356538772583,
0.3693956434726715,
0.10431669652462006,
0.10950089246034622,
0.82292640209198,
-0.3114067614078522,
-0.44733893871307373,
0.3162648677825928,
-0.28947505354881287,
0.21639710664749146,
-0.25417453050613403,
0.7284427285194397,
... |
func FormFiles(r *http.Request, key string) ([]*multipart.FileHeader, error) {
if r.MultipartForm != nil && r.MultipartForm.File != nil {
return r.MultipartForm.File[key], nil
}
return nil, errors.New("missing file!")
} | [
-0.27432429790496826,
-0.5434795022010803,
0.5909360647201538,
0.25021815299987793,
-0.34317487478256226,
-0.18244856595993042,
-0.6768183708190918,
-0.1793058067560196,
-0.10351541638374329,
0.07086039334535599,
0.12070850282907486,
-0.7134147882461548,
-0.9110000133514404,
0.975842714309... |
func NewResponse(channel chat1.ChatChannel, client KeybaseChatAPIClient) ResponseWriter {
return &response{channel: channel, client: client}
} | [
0.5708698034286499,
-1.3734849691390991,
0.2563570439815521,
0.21150566637516022,
-0.4270571768283844,
-0.4706284999847412,
-0.7063811421394348,
-0.3418881297111511,
-0.14195434749126434,
0.17504054307937622,
-0.09859218448400497,
-0.5406867265701294,
-0.9923579096794128,
-0.37050032615661... |
func (r *response) Reply(message string) {
_, _ = r.client.SendMessage(r.channel, message)
} | [
0.15821126103401184,
0.20509907603263855,
0.2627508044242859,
-0.6858456134796143,
0.26542577147483826,
0.6097850799560547,
-0.15772628784179688,
-1.0841792821884155,
0.24992400407791138,
-0.15712091326713562,
-0.07506893575191498,
0.335151731967926,
-1.2115837335586548,
0.627061665058136,... |
func (r *response) Client() KeybaseChatAPIClient {
return r.client
} | [
0.29873114824295044,
-1.3860753774642944,
0.03846217319369316,
-0.3625636398792267,
-0.7781907320022583,
0.5291629433631897,
0.2796327769756317,
-1.078258991241455,
0.4858725965023041,
-0.8874002695083618,
-0.7113763689994812,
-0.03521754592657089,
-0.1760323941707611,
-1.6044166088104248,... |
func NewEdgeFunctionsApiV1UsingExternalConfig(options *EdgeFunctionsApiV1Options) (edgeFunctionsApi *EdgeFunctionsApiV1, err error) {
if options.ServiceName == "" {
options.ServiceName = DefaultServiceName
}
if options.Authenticator == nil {
options.Authenticator, err = core.GetAuthenticatorFromEnvironment(opti... | [
-0.9420221447944641,
0.6401736736297607,
0.6279190182685852,
0.12112917751073837,
-0.8408999443054199,
-0.020970838144421577,
-0.9193952679634094,
0.5658582448959351,
0.38812392950057983,
0.9879340529441833,
-0.23272550106048584,
0.45114848017692566,
-0.7756814956665039,
0.8769351243972778... |
func NewEdgeFunctionsApiV1(options *EdgeFunctionsApiV1Options) (service *EdgeFunctionsApiV1, err error) {
serviceOptions := &core.ServiceOptions{
URL: DefaultServiceURL,
Authenticator: options.Authenticator,
}
err = core.ValidateStruct(options, "options")
if err != nil {
return
}
baseService, er... | [
-1.1217008829116821,
-0.34650665521621704,
0.5535289645195007,
0.7089833617210388,
0.4757465124130249,
-0.2023625522851944,
0.12192359566688538,
0.1301666647195816,
0.8252242207527161,
0.6477834582328796,
-0.40467971563339233,
0.5362127423286438,
-1.0427199602127075,
-0.3702201247215271,
... |
func GetServiceURLForRegion(region string) (string, error) {
return "", fmt.Errorf("service does not support regional URLs")
} | [
0.2769652307033539,
0.17176829278469086,
0.45711785554885864,
-0.5532981157302856,
-0.7656988501548767,
0.12831437587738037,
-0.24040475487709045,
-0.01659899391233921,
-0.5673068761825562,
-0.22464659810066223,
-0.14961712062358856,
0.23087184131145477,
-0.39718860387802124,
0.65725165605... |
func (edgeFunctionsApi *EdgeFunctionsApiV1) Clone() *EdgeFunctionsApiV1 {
if core.IsNil(edgeFunctionsApi) {
return nil
}
clone := *edgeFunctionsApi
clone.Service = edgeFunctionsApi.Service.Clone()
return &clone
} | [
-0.7141518592834473,
-0.33554619550704956,
0.6243353486061096,
0.38010191917419434,
0.1010371521115303,
-0.5347404479980469,
-0.5868986248970032,
-1.095241665840149,
0.6102803349494934,
0.22602009773254395,
0.20785793662071228,
0.8253647089004517,
-0.8591182231903076,
-0.9154425263404846,
... |
func (edgeFunctionsApi *EdgeFunctionsApiV1) SetServiceURL(url string) error {
return edgeFunctionsApi.Service.SetServiceURL(url)
} | [
-1.2874972820281982,
0.30399200320243835,
0.34216994047164917,
0.3503509759902954,
-1.0046319961547852,
-0.027780085802078247,
0.16024208068847656,
0.6167728900909424,
-0.25335463881492615,
0.5721572637557983,
-0.4665660560131073,
0.7779961824417114,
-0.16917684674263,
0.4176170229911804,
... |
func (edgeFunctionsApi *EdgeFunctionsApiV1) GetServiceURL() string {
return edgeFunctionsApi.Service.GetServiceURL()
} | [
-0.3137569725513458,
-0.11184145510196686,
0.34828025102615356,
0.6531597375869751,
-0.6962950825691223,
-0.16208606958389282,
-0.04002576693892479,
0.3170902729034424,
-0.4216860234737396,
0.4280742406845093,
0.22730432450771332,
0.7703408598899841,
-0.3392660617828369,
0.4679903984069824... |
func (edgeFunctionsApi *EdgeFunctionsApiV1) SetDefaultHeaders(headers http.Header) {
edgeFunctionsApi.Service.SetDefaultHeaders(headers)
} | [
-1.3221166133880615,
0.15333019196987152,
0.18508590757846832,
0.45057913661003113,
1.055301308631897,
-0.4230848252773285,
-0.8281006217002869,
-0.8428908586502075,
0.18625757098197937,
-0.09508351981639862,
-0.21571922302246094,
0.3159541189670563,
-0.9885836839675903,
0.4227055609226227... |
func (edgeFunctionsApi *EdgeFunctionsApiV1) SetEnableGzipCompression(enableGzip bool) {
edgeFunctionsApi.Service.SetEnableGzipCompression(enableGzip)
} | [
-0.022532697767019272,
-0.17876572906970978,
0.6435835957527161,
0.20411646366119385,
-0.4197710454463959,
0.18963457643985748,
0.5838654637336731,
-0.24197803437709808,
0.1299406886100769,
0.5965204238891602,
-0.8756939172744751,
-0.048210904002189636,
-1.3333888053894043,
-0.210867881774... |
func (edgeFunctionsApi *EdgeFunctionsApiV1) GetEnableGzipCompression() bool {
return edgeFunctionsApi.Service.GetEnableGzipCompression()
} | [
0.09769537299871445,
0.7033293843269348,
0.6426486968994141,
0.285910040140152,
-0.3655533492565155,
-0.34470295906066895,
0.4404728412628174,
-0.24180856347084045,
-0.13904047012329102,
0.49944907426834106,
-0.9331457614898682,
-0.13065822422504425,
-1.4106826782226562,
-0.120895020663738... |
func (edgeFunctionsApi *EdgeFunctionsApiV1) EnableRetries(maxRetries int, maxRetryInterval time.Duration) {
edgeFunctionsApi.Service.EnableRetries(maxRetries, maxRetryInterval)
} | [
-0.05102844163775444,
0.3047043979167938,
0.3297457695007324,
-0.76503586769104,
0.5281438827514648,
0.3204973340034485,
-0.8396998643875122,
0.9179624319076538,
0.39501866698265076,
-0.3724282681941986,
-0.30451256036758423,
0.5786940455436707,
-0.45311638712882996,
-0.8472371101379395,
... |
func (edgeFunctionsApi *EdgeFunctionsApiV1) DisableRetries() {
edgeFunctionsApi.Service.DisableRetries()
} | [
0.4157916009426117,
0.04259295389056206,
-0.006199817173182964,
-0.40895146131515503,
0.49872350692749023,
0.11142713576555252,
0.034466177225112915,
0.8015549778938293,
0.13177458941936493,
-0.7430081963539124,
0.27847713232040405,
0.45238006114959717,
-0.9488695859909058,
-0.350160121917... |
func (edgeFunctionsApi *EdgeFunctionsApiV1) ListEdgeFunctionsActions(listEdgeFunctionsActionsOptions *ListEdgeFunctionsActionsOptions) (result *ListEdgeFunctionsActionsResp, response *core.DetailedResponse, err error) {
return edgeFunctionsApi.ListEdgeFunctionsActionsWithContext(context.Background(), listEdgeFunctions... | [
-1.4747580289840698,
-0.26795002818107605,
0.7283769249916077,
0.36682990193367004,
0.9454102516174316,
-1.1724252700805664,
0.4634665846824646,
-0.5522453784942627,
0.7687195539474487,
-0.0313938707113266,
-1.0303525924682617,
1.1087182760238647,
-0.7368428111076355,
-0.12400984019041061,... |
func (edgeFunctionsApi *EdgeFunctionsApiV1) ListEdgeFunctionsActionsWithContext(ctx context.Context, listEdgeFunctionsActionsOptions *ListEdgeFunctionsActionsOptions) (result *ListEdgeFunctionsActionsResp, response *core.DetailedResponse, err error) {
err = core.ValidateStruct(listEdgeFunctionsActionsOptions, "listEdg... | [
-1.3923927545547485,
0.007695850916206837,
1.0450884103775024,
-0.22630316019058228,
0.29740774631500244,
-1.2199689149856567,
-0.06290040910243988,
-1.1257449388504028,
0.6868073344230652,
0.5847243666648865,
-0.612558901309967,
1.0051742792129517,
-0.8837938904762268,
0.04010053351521492... |
func (edgeFunctionsApi *EdgeFunctionsApiV1) UpdateEdgeFunctionsAction(updateEdgeFunctionsActionOptions *UpdateEdgeFunctionsActionOptions) (result *GetEdgeFunctionsActionResp, response *core.DetailedResponse, err error) {
return edgeFunctionsApi.UpdateEdgeFunctionsActionWithContext(context.Background(), updateEdgeFunct... | [
-2.1633622646331787,
-0.9474033117294312,
0.46551671624183655,
0.1902950406074524,
0.3218153715133667,
-1.0275081396102905,
0.9137740731239319,
-0.6919000148773193,
0.43397626280784607,
0.8893280029296875,
-0.6406795978546143,
1.0452163219451904,
-0.8580881953239441,
-0.8522737622261047,
... |
func (edgeFunctionsApi *EdgeFunctionsApiV1) UpdateEdgeFunctionsActionWithContext(ctx context.Context, updateEdgeFunctionsActionOptions *UpdateEdgeFunctionsActionOptions) (result *GetEdgeFunctionsActionResp, response *core.DetailedResponse, err error) {
err = core.ValidateNotNil(updateEdgeFunctionsActionOptions, "updat... | [
-1.6740955114364624,
-0.21646352112293243,
1.3180749416351318,
-0.366418719291687,
-0.21594174206256866,
-0.9233940839767456,
0.36514079570770264,
-1.2113940715789795,
0.42240896821022034,
1.3709064722061157,
-0.5899155139923096,
0.739087700843811,
-0.8246442675590515,
-0.7113128304481506,... |
func (edgeFunctionsApi *EdgeFunctionsApiV1) GetEdgeFunctionsAction(getEdgeFunctionsActionOptions *GetEdgeFunctionsActionOptions) (result io.ReadCloser, response *core.DetailedResponse, err error) {
return edgeFunctionsApi.GetEdgeFunctionsActionWithContext(context.Background(), getEdgeFunctionsActionOptions)
} | [
-1.3152238130569458,
-0.06029267981648445,
0.699093759059906,
0.43102461099624634,
0.9077638983726501,
-1.2654714584350586,
0.7708280086517334,
-1.191635251045227,
0.12989184260368347,
0.2847330868244171,
0.06521380692720413,
1.082598090171814,
-0.8802651762962341,
-0.6029412746429443,
-... |
func (edgeFunctionsApi *EdgeFunctionsApiV1) GetEdgeFunctionsActionWithContext(ctx context.Context, getEdgeFunctionsActionOptions *GetEdgeFunctionsActionOptions) (result io.ReadCloser, response *core.DetailedResponse, err error) {
err = core.ValidateNotNil(getEdgeFunctionsActionOptions, "getEdgeFunctionsActionOptions c... | [
-1.2409753799438477,
0.30731573700904846,
1.3041918277740479,
-0.07430363446474075,
0.1727951467037201,
-1.057647943496704,
0.29312488436698914,
-1.5462573766708374,
0.3058279752731323,
0.9116883873939514,
-0.29845499992370605,
1.070252537727356,
-0.7537416219711304,
-0.32981857657432556,
... |
func (edgeFunctionsApi *EdgeFunctionsApiV1) DeleteEdgeFunctionsAction(deleteEdgeFunctionsActionOptions *DeleteEdgeFunctionsActionOptions) (result *DeleteEdgeFunctionsActionResp, response *core.DetailedResponse, err error) {
return edgeFunctionsApi.DeleteEdgeFunctionsActionWithContext(context.Background(), deleteEdgeFu... | [
-1.568821907043457,
-0.3132423460483551,
0.47179079055786133,
0.5157591104507446,
0.6341524124145508,
-0.8595256209373474,
1.2225009202957153,
-0.6263577342033386,
0.5424488186836243,
0.22157934308052063,
-0.5576211810112,
1.0589505434036255,
-0.5113632678985596,
-0.3366682231426239,
-0.... |
func (edgeFunctionsApi *EdgeFunctionsApiV1) DeleteEdgeFunctionsActionWithContext(ctx context.Context, deleteEdgeFunctionsActionOptions *DeleteEdgeFunctionsActionOptions) (result *DeleteEdgeFunctionsActionResp, response *core.DetailedResponse, err error) {
err = core.ValidateNotNil(deleteEdgeFunctionsActionOptions, "de... | [
-1.3649587631225586,
-0.06669258326292038,
1.002715826034546,
-0.10664447396993637,
0.08707097172737122,
-0.783591628074646,
0.2647727131843567,
-1.2657747268676758,
0.4866127371788025,
0.7430440783500671,
-0.3013027012348175,
0.831355631351471,
-0.6108705997467041,
-0.28993871808052063,
... |
func (edgeFunctionsApi *EdgeFunctionsApiV1) CreateEdgeFunctionsTrigger(createEdgeFunctionsTriggerOptions *CreateEdgeFunctionsTriggerOptions) (result *CreateEdgeFunctionsTriggerResp, response *core.DetailedResponse, err error) {
return edgeFunctionsApi.CreateEdgeFunctionsTriggerWithContext(context.Background(), createE... | [
-1.2629860639572144,
0.46223270893096924,
0.47025710344314575,
0.28840571641921997,
0.9559854865074158,
-0.38703638315200806,
-0.2597220838069916,
-0.5301509499549866,
-0.16604602336883545,
-0.45674362778663635,
-0.9259551763534546,
0.12092805653810501,
-0.8604305982589722,
-0.691112756729... |
func (edgeFunctionsApi *EdgeFunctionsApiV1) CreateEdgeFunctionsTriggerWithContext(ctx context.Context, createEdgeFunctionsTriggerOptions *CreateEdgeFunctionsTriggerOptions) (result *CreateEdgeFunctionsTriggerResp, response *core.DetailedResponse, err error) {
err = core.ValidateStruct(createEdgeFunctionsTriggerOptions... | [
-1.1005139350891113,
0.5200001001358032,
1.049378752708435,
-0.26252663135528564,
0.4090745747089386,
-0.27058491110801697,
-0.2765338122844696,
-1.1014690399169922,
-0.02662281133234501,
0.27631208300590515,
-0.9992178082466125,
0.28872114419937134,
-0.9219595789909363,
-0.249133616685867... |
func (edgeFunctionsApi *EdgeFunctionsApiV1) ListEdgeFunctionsTriggers(listEdgeFunctionsTriggersOptions *ListEdgeFunctionsTriggersOptions) (result *ListEdgeFunctionsTriggersResp, response *core.DetailedResponse, err error) {
return edgeFunctionsApi.ListEdgeFunctionsTriggersWithContext(context.Background(), listEdgeFunc... | [
-0.6997075080871582,
-0.06887797266244888,
0.5876128673553467,
-0.044278666377067566,
1.1407896280288696,
-0.9547737240791321,
-0.20337353646755219,
-0.20530648529529572,
0.5030043721199036,
-0.12646038830280304,
-1.3184105157852173,
0.8585770726203918,
-0.9324561953544617,
-0.413623452186... |
func (edgeFunctionsApi *EdgeFunctionsApiV1) ListEdgeFunctionsTriggersWithContext(ctx context.Context, listEdgeFunctionsTriggersOptions *ListEdgeFunctionsTriggersOptions) (result *ListEdgeFunctionsTriggersResp, response *core.DetailedResponse, err error) {
err = core.ValidateStruct(listEdgeFunctionsTriggersOptions, "li... | [
-0.8953429460525513,
0.030733462423086166,
0.9187962412834167,
-0.6365957856178284,
0.40534546971321106,
-0.8945776224136353,
-0.2292645424604416,
-0.848504900932312,
0.2583719789981842,
0.5830227136611938,
-1.1588672399520874,
0.8220930695533752,
-0.9417343139648438,
0.14701105654239655,
... |
func (edgeFunctionsApi *EdgeFunctionsApiV1) GetEdgeFunctionsTrigger(getEdgeFunctionsTriggerOptions *GetEdgeFunctionsTriggerOptions) (result *GetEdgeFunctionsTriggerResp, response *core.DetailedResponse, err error) {
return edgeFunctionsApi.GetEdgeFunctionsTriggerWithContext(context.Background(), getEdgeFunctionsTrigge... | [
-0.994400143623352,
0.5869298577308655,
0.4698118269443512,
0.4673382639884949,
0.8180229663848877,
-1.1809195280075073,
-0.28859686851501465,
-0.6161704659461975,
-0.024013804271817207,
-0.51053386926651,
-0.6382384896278381,
0.6148367524147034,
-0.7555069923400879,
-0.9980653524398804,
... |
func (edgeFunctionsApi *EdgeFunctionsApiV1) GetEdgeFunctionsTriggerWithContext(ctx context.Context, getEdgeFunctionsTriggerOptions *GetEdgeFunctionsTriggerOptions) (result *GetEdgeFunctionsTriggerResp, response *core.DetailedResponse, err error) {
err = core.ValidateNotNil(getEdgeFunctionsTriggerOptions, "getEdgeFunct... | [
-0.9866381287574768,
0.6404208540916443,
1.1159214973449707,
-0.213027223944664,
0.39375919103622437,
-0.7887778878211975,
-0.6390253305435181,
-0.9634840488433838,
0.11301518976688385,
0.4201011061668396,
-0.5174750685691833,
0.5530022382736206,
-0.7599824666976929,
-0.488424688577652,
... |
func (edgeFunctionsApi *EdgeFunctionsApiV1) UpdateEdgeFunctionsTrigger(updateEdgeFunctionsTriggerOptions *UpdateEdgeFunctionsTriggerOptions) (result *GetEdgeFunctionsTriggerResp, response *core.DetailedResponse, err error) {
return edgeFunctionsApi.UpdateEdgeFunctionsTriggerWithContext(context.Background(), updateEdge... | [
-1.634008526802063,
-0.3586791157722473,
0.4095424711704254,
0.22467941045761108,
0.3233782947063446,
-0.7773167490959167,
-0.18367186188697815,
-0.386734277009964,
-0.12155614793300629,
0.029665110632777214,
-0.9408036470413208,
0.4909973740577698,
-0.8435533046722412,
-0.7931642532348633... |
func (edgeFunctionsApi *EdgeFunctionsApiV1) UpdateEdgeFunctionsTriggerWithContext(ctx context.Context, updateEdgeFunctionsTriggerOptions *UpdateEdgeFunctionsTriggerOptions) (result *GetEdgeFunctionsTriggerResp, response *core.DetailedResponse, err error) {
err = core.ValidateNotNil(updateEdgeFunctionsTriggerOptions, "... | [
-1.5424542427062988,
-0.05796285346150398,
1.1607240438461304,
-0.2909353971481323,
-0.01635378785431385,
-0.5786699056625366,
-0.2056577056646347,
-0.67017662525177,
0.11935983598232269,
0.9146193861961365,
-0.9994204640388489,
0.4704093039035797,
-0.9083312153816223,
-0.5434339642524719,... |
func (edgeFunctionsApi *EdgeFunctionsApiV1) DeleteEdgeFunctionsTrigger(deleteEdgeFunctionsTriggerOptions *DeleteEdgeFunctionsTriggerOptions) (result *CreateEdgeFunctionsTriggerResp, response *core.DetailedResponse, err error) {
return edgeFunctionsApi.DeleteEdgeFunctionsTriggerWithContext(context.Background(), deleteE... | [
-0.7524550557136536,
0.3592561185359955,
0.45786216855049133,
0.40549543499946594,
0.45799291133880615,
-0.46118831634521484,
-0.010057371109724045,
-0.20707526803016663,
0.024147821590304375,
-0.5566048622131348,
-0.6556714177131653,
0.5165928602218628,
-0.5982525944709778,
-0.35334178805... |
func (edgeFunctionsApi *EdgeFunctionsApiV1) DeleteEdgeFunctionsTriggerWithContext(ctx context.Context, deleteEdgeFunctionsTriggerOptions *DeleteEdgeFunctionsTriggerOptions) (result *CreateEdgeFunctionsTriggerResp, response *core.DetailedResponse, err error) {
err = core.ValidateNotNil(deleteEdgeFunctionsTriggerOptions... | [
-0.962894856929779,
0.2262161821126938,
1.0484106540679932,
-0.18936535716056824,
0.21446830034255981,
-0.49746161699295044,
-0.25421395897865295,
-0.6288602352142334,
0.3394453823566437,
0.382759153842926,
-0.5410760641098022,
0.31554895639419556,
-0.596572995185852,
-0.19821195304393768,... |
func (*EdgeFunctionsApiV1) NewCreateEdgeFunctionsTriggerOptions() *CreateEdgeFunctionsTriggerOptions {
return &CreateEdgeFunctionsTriggerOptions{}
} | [
-0.2679026424884796,
-0.06032504886388779,
0.35946178436279297,
0.31382063031196594,
1.1464816331863403,
-0.6948591470718384,
0.3852216899394989,
-0.3949677050113678,
-0.5803659558296204,
0.09487662464380264,
-0.6656001210212708,
-0.6103696227073669,
-0.7011601328849792,
-0.222691535949707... |
func (options *CreateEdgeFunctionsTriggerOptions) SetPattern(pattern string) *CreateEdgeFunctionsTriggerOptions {
options.Pattern = core.StringPtr(pattern)
return options
} | [
-0.0360257551074028,
0.3918401300907135,
0.22585423290729523,
0.2928820252418518,
1.1642018556594849,
-0.004708902910351753,
1.064965844154358,
0.25129279494285583,
1.0764710903167725,
-0.9354195594787598,
-0.6817427277565002,
0.3155357241630554,
-0.2983053922653198,
0.018211958929896355,
... |
func (options *CreateEdgeFunctionsTriggerOptions) SetScript(script string) *CreateEdgeFunctionsTriggerOptions {
options.Script = core.StringPtr(script)
return options
} | [
-0.06996884942054749,
0.23303723335266113,
0.18707256019115448,
0.11563210189342499,
0.5790702700614929,
-0.5108118653297424,
0.799679696559906,
-0.8687801361083984,
0.6112155318260193,
-0.05050908774137497,
-0.29661375284194946,
0.3166739046573639,
-0.40162649750709534,
-0.392885148525238... |
func (options *CreateEdgeFunctionsTriggerOptions) SetXCorrelationID(xCorrelationID string) *CreateEdgeFunctionsTriggerOptions {
options.XCorrelationID = core.StringPtr(xCorrelationID)
return options
} | [
0.10854465514421463,
0.24307353794574738,
0.16560021042823792,
-0.8344723582267761,
-0.052725985646247864,
0.1343468725681305,
0.3065977096557617,
0.3058622181415558,
0.8937917351722717,
0.6294510960578918,
-0.0660216361284256,
0.3675026297569275,
-0.9208247661590576,
-0.11211628466844559,... |
func (options *CreateEdgeFunctionsTriggerOptions) SetHeaders(param map[string]string) *CreateEdgeFunctionsTriggerOptions {
options.Headers = param
return options
} | [
-0.11319234222173691,
0.15651804208755493,
0.28621894121170044,
-0.32007279992103577,
0.9532184600830078,
-0.30737248063087463,
0.27459681034088135,
-0.53055340051651,
-0.18932490050792694,
-0.09410356730222702,
-0.0879259929060936,
-0.6258714199066162,
-0.4716396927833557,
-0.494971364736... |
func (*EdgeFunctionsApiV1) NewDeleteEdgeFunctionsActionOptions(scriptName string) *DeleteEdgeFunctionsActionOptions {
return &DeleteEdgeFunctionsActionOptions{
ScriptName: core.StringPtr(scriptName),
}
} | [
-0.3714546859264374,
-0.8435887694358826,
0.32030990719795227,
0.8005663752555847,
0.4211290776729584,
-1.2068896293640137,
0.886612594127655,
-0.2730270326137543,
0.2613179683685303,
0.24415819346904755,
0.14492115378379822,
0.452105313539505,
-0.1821518838405609,
0.11090270429849625,
0... |
func (options *DeleteEdgeFunctionsActionOptions) SetScriptName(scriptName string) *DeleteEdgeFunctionsActionOptions {
options.ScriptName = core.StringPtr(scriptName)
return options
} | [
-0.6638401746749878,
-0.6647410988807678,
0.5210544466972351,
0.5253384709358215,
0.0033954756800085306,
-1.0088499784469604,
0.3851275146007538,
-0.2776950001716614,
0.7928491234779358,
0.880163311958313,
-0.02487999200820923,
0.5964249968528748,
-0.21410463750362396,
0.04628491401672363,... |
func (options *DeleteEdgeFunctionsActionOptions) SetXCorrelationID(xCorrelationID string) *DeleteEdgeFunctionsActionOptions {
options.XCorrelationID = core.StringPtr(xCorrelationID)
return options
} | [
-0.19326229393482208,
0.0229791309684515,
0.2999584376811981,
-0.7634000778198242,
-0.005970904137939215,
0.11696289479732513,
0.2834935486316681,
0.4466855823993683,
1.3488279581069946,
1.0525832176208496,
0.2447514683008194,
0.7511397004127502,
-0.7650662660598755,
-0.002529784105718136,... |
func (options *DeleteEdgeFunctionsActionOptions) SetHeaders(param map[string]string) *DeleteEdgeFunctionsActionOptions {
options.Headers = param
return options
} | [
-0.3754081428050995,
-0.11453351378440857,
0.34497910737991333,
-0.27448004484176636,
1.0312150716781616,
-0.46114152669906616,
0.1948862075805664,
-0.2570948004722595,
0.3687279224395752,
0.1414446234703064,
0.4103993773460388,
-0.1840580701828003,
-0.30911391973495483,
-0.399333566427230... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.