text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func (*BatchUpdateEntityTypesRequest) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*BatchUpdateEntityTypesRequest_EntityTypeBatchUri)(nil),
(*BatchUpdateEntityTypesRequest_EntityTypeBatchInline)(nil),
}
} | [
-1.9194285869598389,
-0.4611939787864685,
0.49585023522377014,
0.06381537765264511,
0.09734275937080383,
-0.24903708696365356,
-0.2719877064228058,
-0.34586185216903687,
0.5781500339508057,
0.19849102199077606,
-0.24446474015712738,
0.37942785024642944,
-0.5104403495788574,
1.3296566009521... |
func APIIndex(w http.ResponseWriter, _ *http.Request) {
// Set the information and version for the API
var api = API{Info: "Service for Paragliding tracks.", Version: "v1"}
// Calculate the uptime and convert it to ISO-8601 (duration)
api.CalculateUptime(int(time.Since(startTime).Seconds()))
// Set header conten... | [
-0.47583720088005066,
-0.6744562387466431,
0.563532292842865,
-0.6459146738052368,
-0.6229407787322998,
0.29733648896217346,
0.0215956661850214,
0.44167956709861755,
-1.0604782104492188,
0.6773651838302612,
-0.2715020477771759,
0.6736836433410645,
-0.30752938985824585,
-0.00872751884162426... |
func TrackGET(w http.ResponseWriter, _ *http.Request) {
// Get all tracks from the database
var all = trackDB.GetAll()
// Create a bson.ObjectID slice
var ids []bson.ObjectId
// Loop through all tracks
for _, track := range all {
// Append the track ID to the ID-slice
ids = append(ids, track.Id)
}
// Set ... | [
0.07669661939144135,
-0.25800126791000366,
0.7690415978431702,
-0.3656315803527832,
0.22451236844062805,
0.24971486628055573,
-0.4406531751155853,
0.30312883853912354,
-1.548663854598999,
0.7732542157173157,
0.35953593254089355,
0.5906767845153809,
-0.22235442698001862,
0.06834472715854645... |
func SingleTrackFieldGET(w http.ResponseWriter, r *http.Request) {
// Get the parameters with mux
params := mux.Vars(r)
// Get the <id> parameter
id := params["id"]
// Get the track from the database
track, found := trackDB.Get(id)
// Check if the track was not found
if found != true {
// Show an 404, Not ... | [
-0.1223619282245636,
0.5703704953193665,
0.7506372332572937,
-0.33204203844070435,
-0.10705908387899399,
1.1555322408676147,
0.4897260367870331,
0.201487198472023,
-0.9007400870323181,
0.2984599471092224,
0.5752954483032227,
0.23907619714736938,
-0.45228707790374756,
-0.2336336225271225,
... |
func GetLatestTicker(w http.ResponseWriter, _ *http.Request) {
// Check if the have any tracks in the database
if trackDB.Count() < 1 {
// Show an 404, Not Found error
http.Error(w, http.StatusText(http.StatusNotFound), http.StatusNotFound)
return
}
// Declare a ticker variable
var ticker Ticker
// Get all... | [
-0.27826857566833496,
-0.40304943919181824,
0.6684988141059875,
-0.03784804418683052,
0.04670104384422302,
0.21004408597946167,
-0.09059309214353561,
-0.19398751854896545,
-1.4034475088119507,
0.8378599286079407,
-0.13906946778297424,
0.009028847329318523,
0.026933524757623672,
1.024927139... |
func AdminTrackCount(w http.ResponseWriter, _ *http.Request) {
// Set content-type to plain text
w.Header().Set("Content-Type", "text/plain")
// Get the count from the database
count := trackDB.Count()
// Check if count is -1
if count == -1 {
// Show 404, Not Found Error
http.Error(w, http.StatusText(http.S... | [
0.4660637378692627,
0.5665594935417175,
0.9164639711380005,
-0.38663750886917114,
0.46679848432540894,
0.633264422416687,
0.1251389980316162,
0.25107628107070923,
-1.6314336061477661,
0.7257305383682251,
0.18398581445217133,
0.6657984256744385,
-0.45030105113983154,
0.4039578437805176,
0... |
func AdminDeleteTracks(w http.ResponseWriter, _ *http.Request) {
// Get the count of tracks in the database
count := trackDB.Count()
// Check if the count is not -1
if count != -1 {
// Delete all tracks
err := trackDB.DeleteAll()
// Check if there was an error
if err != nil {
// Show 500, Internal Serv... | [
0.4721648395061493,
0.281921923160553,
0.7772483825683594,
-0.4930116534233093,
0.14156536757946014,
0.6731677055358887,
0.21538905799388885,
-0.18099217116832733,
-0.18286176025867462,
0.3481736481189728,
1.0118709802627563,
0.4705471396446228,
-0.8996015787124634,
0.7985022664070129,
0... |
func (r *CCMRequest) ListImageInfo() (*pb.ListImageInfoResponse, error) {
if r.InData == "" {
return nil, errors.New("input data required")
}
var item pb.ImageAllQryRequest
err := gc.ConvertToMessage(r.InType, r.InData, &item)
if err != nil {
... | [
-0.9652960896492004,
-0.6026745438575745,
0.48303553462028503,
-0.1461731344461441,
-0.06559070944786072,
-0.5199882984161377,
-0.7560590505599976,
-0.4411443769931793,
-0.20622248947620392,
0.17886245250701904,
0.016578378155827522,
0.3937155604362488,
-0.4445357918739319,
0.9211105704307... |
func (o *Output) SetupTAP(out io.Writer, testCount int) {
o.TAP = outputs.NewTAPOutput(out, testCount)
} | [
-0.5140286087989807,
-0.8737665414810181,
0.5117058753967285,
0.025793880224227905,
-0.5915365219116211,
-0.38267797231674194,
1.5713838338851929,
-0.07065113633871078,
0.6366181373596191,
-0.7314484119415283,
0.1338241994380951,
-1.1114650964736938,
1.1759294271469116,
0.03618753701448440... |
func (o *Output) SetupSummary() {
o.Summary = &outputs.SummaryOutput{}
} | [
0.18578743934631348,
-0.1792958527803421,
0.45074278116226196,
0.3700864613056183,
-0.2783496379852295,
-1.1950712203979492,
1.1399987936019897,
-0.13204851746559143,
0.47858038544654846,
0.09540794044733047,
0.5445276498794556,
-0.10617729276418686,
0.3608117997646332,
0.5695679783821106,... |
func (o *Output) SetupTar(archivePath string) error {
fd, err := os.Create(archivePath)
if err != nil {
return fmt.Errorf("failed to open %q: %v", archivePath, err)
}
o.Tar = outputs.NewTarOutput(fd)
return nil
} | [
-0.4483581483364105,
-1.1273225545883179,
0.4470071792602539,
-0.8721475601196289,
-0.5353711843490601,
-0.037817150354385376,
1.2795164585113525,
-0.018434813246130943,
-0.14799682796001434,
-0.4074317514896393,
0.3506239354610443,
-0.6712479591369629,
0.5352700352668762,
-0.0713870674371... |
func (o *Output) Record(result testrunner.TestResult) {
if o.Summary != nil {
o.Summary.Record(result)
}
if o.TAP != nil {
o.TAP.Record(result)
}
if o.Tar != nil {
o.Tar.Record(result)
}
} | [
0.13627097010612488,
0.5166341662406921,
0.5865023136138916,
-0.036828622221946716,
-0.2836684286594391,
0.03314335271716118,
0.5380142331123352,
-0.15388526022434235,
0.41132891178131104,
-0.7168260216712952,
-0.20434929430484772,
-0.223127081990242,
0.42698317766189575,
1.453594088554382... |
func (o *Output) Complete() error {
if o.Tar == nil {
return nil
}
bytes, err := json.Marshal(o.Summary.Summary)
if err != nil {
return err
}
if err := o.Tar.TarFile(bytes, runtests.TestSummaryFilename); err != nil {
return err
}
return o.Tar.Close()
} | [
0.3003472685813904,
-0.31774038076400757,
0.8428462743759155,
-0.254479318857193,
-1.0227077007293701,
0.3423382639884949,
0.9207217693328857,
-0.08661556243896484,
-0.4109067916870117,
1.235060214996338,
0.5502686500549316,
-0.5607816576957703,
0.08260583877563477,
-0.2904305160045624,
... |
func NewHandler(am AccountKeeper) sdk.Handler {
return func(ctx sdk.Context, msg sdk.Msg) sdk.Result {
switch msg := msg.(type) {
case types.TransferMsg:
return handleTransferMsg(ctx, am, msg)
case types.TransferV2Msg:
return handleTransferV2Msg(ctx, am, msg)
case types.RecoverMsg:
return handleRecove... | [
0.05327826738357544,
-0.1712220162153244,
0.6563024520874023,
0.5619814991950989,
-0.369343638420105,
0.16778552532196045,
1.0547312498092651,
-0.6550825238227844,
0.6016159653663635,
-0.14443166553974152,
0.9208775758743286,
0.35498490929603577,
0.12521210312843323,
0.8293742537498474,
... |
func (c *Controller) processNextItem() bool {
event, quit := c.queue.Get()
if quit {
return false
}
defer c.queue.Done(event)
err := c.processItem(event.(Event))
if err == nil {
c.queue.Forget(event)
} else if c.queue.NumRequeues(event) < maxRetries {
klog.Errorf("Error processing %s (will retry): %v", e... | [
-0.11105883121490479,
0.46165454387664795,
0.7404825091362,
0.47547465562820435,
-0.09299588203430176,
0.29530081152915955,
-0.6385220289230347,
-0.5339998602867126,
0.005848245229572058,
0.4781363904476166,
0.05008286237716675,
-0.4415346682071686,
-0.5746227502822876,
0.15601511299610138... |
func (r *Room) CurrentTrack() *Track {
return r.currentTrack
} | [
-0.20327699184417725,
-0.4200511872768402,
0.18039874732494354,
0.6658032536506653,
-0.5654245018959045,
1.2169132232666016,
0.20562651753425598,
-0.3230937421321869,
-0.48021599650382996,
-0.16206221282482147,
0.44921350479125977,
0.7869552373886108,
-1.1034033298492432,
0.323531419038772... |
func (r *Room) Name() string {
return r.name
} | [
-1.135313868522644,
-0.5001729726791382,
-0.004788714461028576,
0.5585921406745911,
-1.2390691041946411,
0.401117205619812,
-0.04273638501763344,
-0.33834710717201233,
-0.4917108416557312,
1.1223719120025635,
-0.4506835639476776,
0.010610590688884258,
-0.4293026030063629,
0.774517059326171... |
func (r *Room) Queue() []*Track {
return r.queue
} | [
-0.8074628114700317,
-0.6006078124046326,
0.3140239715576172,
1.50466787815094,
0.37387514114379883,
0.6410819888114929,
-0.2052777260541916,
-0.7111474275588989,
0.061141084879636765,
-0.2596765458583832,
-0.44353315234184265,
1.1691768169403076,
-0.061558689922094345,
1.266579270362854,
... |
func (r *Room) Users() []*User {
return r.users
} | [
-1.4803131818771362,
-0.6383013129234314,
-0.43642115592956543,
0.7398738861083984,
0.2879736125469208,
0.5596240162849426,
-0.4067404866218567,
-0.3901687264442444,
0.2766180634498596,
-0.37871459126472473,
-0.5174089670181274,
1.2236921787261963,
-0.7676463723182678,
0.8858367800712585,
... |
func (c *Client) APIClients(ctx context.Context) ([]APIClient, error) {
return apiGetCollection[APIClient](ctx, c, apiclientAPIPath)
} | [
-1.3565237522125244,
-0.9577283263206482,
0.09445346891880035,
-0.19500374794006348,
0.14743643999099731,
-0.6099640727043152,
-0.5530111789703369,
-0.48174017667770386,
0.11023333668708801,
-0.2456079125404358,
-0.46615371108055115,
0.5598323941230774,
-1.1611778736114502,
-0.536278784275... |
func (c *Client) APIClient(ctx context.Context, identifier string) (*APIClient, error) {
return apiGet[APIClient](ctx, c, path.Join(apiclientAPIPath, identifier))
} | [
-1.0850787162780762,
-0.7640090584754944,
0.13630028069019318,
-0.6562322378158569,
-0.6920574307441711,
-0.43702006340026855,
0.1773843765258789,
-0.17232412099838257,
0.6819134950637817,
-0.5097448825836182,
-0.905754566192627,
0.6849603652954102,
-0.222162127494812,
-1.617118239402771,
... |
func (c *Client) CreateAPIClient(ctx context.Context, newAPIClient APIClientOptions) (*APIClient, error) {
return apiPost[APIClient](ctx, c, apiclientAPIPath, newAPIClient)
} | [
-0.045619357377290726,
-0.8124553561210632,
0.25752338767051697,
-0.44487664103507996,
-0.1603015810251236,
0.2608495056629181,
-0.21017879247665405,
-0.6914561986923218,
0.12513074278831482,
0.13279783725738525,
-0.845280647277832,
0.27115362882614136,
-1.39442777633667,
-0.74231237173080... |
func (c *Client) UpdateAPIClient(ctx context.Context, updateAPIClient APIClientOptions) (*APIClient, error) {
return apiPut[APIClient](ctx, c, path.Join(apiclientAPIPath, updateAPIClient.ID), updateAPIClient)
} | [
-0.8467446565628052,
-1.3030661344528198,
0.17728357017040253,
-0.7049600481987,
-1.0284029245376587,
0.1202053427696228,
0.39199739694595337,
-0.6388009190559387,
0.5283455848693848,
0.2403458207845688,
-0.611102283000946,
0.45564061403274536,
-1.3939870595932007,
-1.5245182514190674,
-... |
func (c *Client) DestroyAPIClient(ctx context.Context, identifier string) (*APIClient, error) {
return apiDelete[APIClient](ctx, c, path.Join(apiclientAPIPath, identifier))
} | [
-0.9296438097953796,
-1.3648425340652466,
0.052149124443531036,
-0.7238448858261108,
-0.5696790218353271,
-0.15564297139644623,
0.2139507532119751,
-0.37676921486854553,
0.3692634701728821,
0.0891859382390976,
-1.0210673809051514,
-0.1596626192331314,
-0.8808183073997498,
-0.84312862157821... |
func (c *Client) ResetAPIClientPassword(ctx context.Context, identifier string) (*APIClient, error) {
return apiPost[APIClient](ctx, c, path.Join(apiclientAPIPath, identifier, "reset_secret"), nil)
} | [
-0.4931758642196655,
-0.6822164058685303,
0.14670835435390472,
0.20973661541938782,
0.033477526158094406,
-0.3616495430469513,
0.15835125744342804,
0.15815754234790802,
0.11797194182872772,
0.7177987694740295,
-1.3333888053894043,
1.0810890197753906,
-0.6139808297157288,
-1.070115566253662... |
func parseMountTable() ([]*types.MountInfo, error) {
f, err := os.Open("/proc/self/mountinfo")
if err != nil {
return nil, err
}
defer f.Close()
return parseInfoFile(f)
} | [
0.7546557188034058,
-1.0113370418548584,
0.5074957609176636,
0.5528836846351624,
-0.028043875470757484,
-0.05132952705025673,
-0.05359410122036934,
-0.792122483253479,
-0.9621224999427795,
0.08296267688274384,
-0.3460244834423065,
0.15135805308818817,
-0.04157606139779091,
1.12845230102539... |
func pidMountInfo(pid int) ([]*types.MountInfo, error) {
f, err := os.Open(fmt.Sprintf("/proc/%d/mountinfo", pid))
if err != nil {
return nil, err
}
defer f.Close()
return parseInfoFile(f)
} | [
0.31041425466537476,
-0.8434527516365051,
0.7266435027122498,
-0.30568474531173706,
0.005413679871708155,
0.17981481552124023,
-0.9902690052986145,
-0.6978758573532104,
-0.35458388924598694,
-0.09685252606868744,
-0.7017353773117065,
-0.43114548921585083,
-0.10526145249605179,
1.0901879072... |
func parseOptions(options string) (int, string) {
var (
flag int
data []string
)
flags := map[string]struct {
clear bool
flag int
}{
"defaults": {false, 0},
"ro": {false, RDONLY},
"rw": {true, RDONLY},
"suid": {true, NOSUID},
"nosuid": {false, NOSUID},
... | [
0.2556019127368927,
0.4559960961341858,
0.661735475063324,
0.09865493327379227,
0.4074191749095917,
-0.07735973596572876,
0.2678869366645813,
0.22172488272190094,
-0.5863794684410095,
0.7687839865684509,
-0.4330534338951111,
-0.4095262289047241,
-0.5672358274459839,
0.7648040056228638,
0... |
func parseTmpfsOptions(options string) (int, string, error) {
flags, data := parseOptions(options)
validFlags := map[string]bool{
"": true,
"size": true,
"mode": true,
"uid": true,
"gid": true,
"nr_inodes": true,
"nr_blocks": true,
"mpol": true,
}
for _, o := rang... | [
-0.4366680979728699,
-0.6788021922111511,
0.6870690584182739,
-0.6868679523468018,
0.008558094501495361,
-0.6975823044776917,
0.41687533259391785,
-0.164385586977005,
0.020604193210601807,
0.16239672899246216,
-0.545415997505188,
-0.4702604115009308,
-1.0267189741134644,
0.2905097007751465... |
func getMounts() ([]*types.MountInfo, error) {
return parseMountTable()
} | [
0.8020960092544556,
0.45774686336517334,
0.42969679832458496,
1.2628233432769775,
0.7296775579452515,
-0.45233476161956787,
-0.4300922155380249,
-1.4785094261169434,
-0.1890178769826889,
-0.4777001142501831,
0.033287230879068375,
0.3262653052806854,
0.07613547146320343,
1.0345178842544556,... |
func mounted(mountpoint string) (bool, error) {
entries, err := parseMountTable()
if err != nil {
return false, err
}
// Search the table for the mountpoint
for _, e := range entries {
if e.MountPoint == mountpoint {
return true, nil
}
}
return false, nil
} | [
0.9094393253326416,
-0.46259593963623047,
0.9731157422065735,
0.26429858803749084,
-0.44488099217414856,
0.0256291963160038,
-0.7501699328422546,
0.02275216579437256,
0.08365844935178757,
0.2307816445827484,
-0.4903397858142853,
-0.4895741939544678,
-1.0511060953140259,
0.21182671189308167... |
func mount(device, target, mType, options string) error {
flag, _ := parseOptions(options)
if flag&REMOUNT != REMOUNT {
if mounted, err := mounted(target); err != nil || mounted {
return err
}
}
return forceMount(device, target, mType, options)
} | [
0.31793412566185,
0.2621421217918396,
0.5027362108230591,
1.2361698150634766,
0.0778108760714531,
-0.4047498106956482,
-0.0030005937442183495,
-0.8345254063606262,
1.000504493713379,
-0.05178515613079071,
0.6950818300247192,
0.8047382235527039,
-0.790592610836029,
-0.021195420995354652,
... |
func sysMount(device, target, mType string, flag uintptr, data string) error {
if err := syscall.Mount(device, target, mType, flag, data); err != nil {
return err
}
// If we have a bind mount or remount, remount...
if flag&syscall.MS_BIND == syscall.MS_BIND &&
flag&syscall.MS_RDONLY == syscall.MS_RDONLY {
re... | [
0.742676317691803,
-0.554466962814331,
0.5614324808120728,
0.7892429232597351,
-0.4346400201320648,
-0.47031381726264954,
-0.1601739227771759,
-0.2878948450088501,
1.0342447757720947,
0.1440298706293106,
-0.4550274908542633,
0.7059242725372314,
-0.31211522221565247,
1.1109535694122314,
0... |
func forceMount(device, target, mType, options string) error {
flag, data := parseOptions(options)
err := sysMount(device, target, mType, uintptr(flag), data)
if err != nil {
return err
}
return nil
} | [
0.22404034435749054,
0.3639582097530365,
0.419230192899704,
0.7224675416946411,
0.6072572469711304,
0.11065885424613953,
-0.1275814175605774,
-0.9471086859703064,
0.21967865526676178,
0.09899596124887466,
-0.32707199454307556,
0.6035269498825073,
-1.1317399740219116,
0.7553826570510864,
... |
func unmount(target string) error {
if mounted, err := mounted(target); err != nil || !mounted {
return err
}
return forceUnmount(target)
} | [
-0.1055712178349495,
0.9237880706787109,
0.6790263652801514,
-0.20445095002651215,
-0.3957228362560272,
-0.8872454762458801,
-0.44312986731529236,
-0.5258980989456177,
0.39692798256874084,
0.31431299448013306,
0.5086723566055298,
1.0070768594741821,
0.21445482969284058,
-0.0814774930477142... |
func forceUnmount(target string) (err error) {
// Simple retry logic for unmount
for i := 0; i < 10; i++ {
if err = sysUnmount(target, 0); err == nil {
return nil
}
time.Sleep(100 * time.Millisecond)
}
return
} | [
-0.0037159216590225697,
0.8294478058815002,
0.6287460327148438,
-0.6156758069992065,
0.6985817551612854,
-0.7547878623008728,
-0.215981125831604,
-0.45239317417144775,
0.17836421728134155,
0.2147807627916336,
-0.1668197512626648,
0.8583338856697083,
-0.45249930024147034,
0.2957132458686828... |
func (o *PostVaultCredentialsUnlockReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewPostVaultCredentialsUnlockOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
... | [
-0.25447341799736023,
-1.081941843032837,
0.7331949472427368,
0.007352591026574373,
-0.1841619908809662,
-1.1259641647338867,
0.15910306572914124,
-0.2750423550605774,
0.11246561259031296,
0.5275087356567383,
0.2901190221309662,
-0.4094301760196686,
-1.0854437351226807,
-0.8146361112594604... |
func NewPostVaultCredentialsUnlockOK() *PostVaultCredentialsUnlockOK {
return &PostVaultCredentialsUnlockOK{}
} | [
-0.3024255931377411,
-0.3705486059188843,
0.4713432788848877,
0.09997833520174026,
-0.8735095262527466,
-0.10549028217792511,
-0.027674203738570213,
0.5189030766487122,
-1.172894835472107,
0.767160952091217,
-0.3453054130077362,
-0.3486843705177307,
-0.2519741654396057,
-0.7834014296531677... |
func NewPostVaultCredentialsUnlockBadRequest() *PostVaultCredentialsUnlockBadRequest {
return &PostVaultCredentialsUnlockBadRequest{}
} | [
-0.8524074554443359,
-0.23831190168857574,
0.4938132166862488,
0.07877205312252045,
-0.41088807582855225,
-0.6921938061714172,
-1.1193397045135498,
0.6017604470252991,
-1.473191738128662,
0.14597323536872864,
-0.14502747356891632,
0.34570369124412537,
-1.0965418815612793,
-0.39141431450843... |
func NewPostVaultCredentialsUnlockUnauthorized() *PostVaultCredentialsUnlockUnauthorized {
return &PostVaultCredentialsUnlockUnauthorized{}
} | [
-0.6220024824142456,
-0.3731871247291565,
0.5027527213096619,
0.19644805788993835,
-1.1075818538665771,
-0.4706539511680603,
-0.7306737303733826,
1.2918784618377686,
-0.9607281684875488,
-0.6816434860229492,
-0.6144611835479736,
0.7268772125244141,
-0.5389208793640137,
-0.6465211510658264,... |
func NewPostVaultCredentialsUnlockForbidden() *PostVaultCredentialsUnlockForbidden {
return &PostVaultCredentialsUnlockForbidden{}
} | [
0.04244935140013695,
0.32069161534309387,
0.5151072144508362,
0.20136986672878265,
-0.7333266735076904,
-0.1406845599412918,
-0.5385333895683289,
-0.10861020535230637,
-1.1542481184005737,
-0.3929951786994934,
-0.3006792664527893,
0.4535922408103943,
-0.5693856477737427,
-1.023653507232666... |
func NewPostVaultCredentialsUnlockNotFound() *PostVaultCredentialsUnlockNotFound {
return &PostVaultCredentialsUnlockNotFound{}
} | [
-0.2691880464553833,
-0.9165408611297607,
0.2609904110431671,
-0.416587233543396,
-0.30918529629707336,
-0.06631806492805481,
-0.3208619952201843,
0.2768285274505615,
-0.8414137363433838,
0.2847054898738861,
-0.38909631967544556,
-0.09448878467082977,
-0.9883341789245605,
-0.86082428693771... |
func (rww *ResponseWriterWrapper) Push(target string, opts *http.PushOptions) error {
if pusher, ok := rww.ResponseWriter.(http.Pusher); ok {
return pusher.Push(target, opts)
}
return ErrNotImplemented
} | [
-0.5491779446601868,
0.2300311177968979,
0.30706587433815,
0.46082040667533875,
-0.3941492736339569,
-0.24329634010791779,
-0.20639657974243164,
-1.0991499423980713,
0.42764392495155334,
-0.06735196709632874,
0.39477837085723877,
0.28045380115509033,
-0.026443809270858765,
0.48817646503448... |
func (rww *ResponseWriterWrapper) ReadFrom(r io.Reader) (n int64, err error) {
return io.Copy(rww.ResponseWriter, r)
} | [
-0.6054885983467102,
-0.32901352643966675,
0.5909120440483093,
0.2783985435962677,
-0.9567292332649231,
-0.16710405051708221,
0.7807844281196594,
-1.000357747077942,
0.5900469422340393,
-0.4010469913482666,
0.8354331254959106,
-0.23913633823394775,
0.038382016122341156,
0.32267144322395325... |
func (rww *ResponseWriterWrapper) Unwrap() http.ResponseWriter {
return rww.ResponseWriter
} | [
-0.1857229322195053,
-0.47684717178344727,
0.29610323905944824,
-0.14121580123901367,
-0.7012717723846436,
-0.2584591507911682,
0.7973446249961853,
-0.007178408093750477,
0.023487893864512444,
-0.6877521276473999,
0.4219493865966797,
0.03268413245677948,
-0.21886380016803741,
0.12921077013... |
func (rr *responseRecorder) WriteHeader(statusCode int) {
if rr.wroteHeader {
return
}
// save statusCode always, in case HTTP middleware upgrades websocket
// connections by manually setting headers and writing status 101
rr.statusCode = statusCode
// 1xx responses aren't final; just informational
if status... | [
0.03486335650086403,
-0.825688362121582,
0.7827931642532349,
-0.11648885160684586,
0.03965344280004501,
0.2670535147190094,
0.8006364107131958,
0.11201012879610062,
0.33995673060417175,
0.1187698170542717,
0.05194467678666115,
-0.046651553362607956,
-0.4255564510822296,
0.8590523600578308,... |
func (rr *responseRecorder) Status() int {
return rr.statusCode
} | [
0.1104482039809227,
-0.8347998261451721,
0.37753427028656006,
-0.3317573368549347,
-0.002328952308744192,
-0.2805902063846588,
0.5261268019676208,
0.7437683939933777,
0.36014312505722046,
-0.42475220561027527,
-0.5699552297592163,
0.4353717565536499,
-0.5958143472671509,
0.822304904460907,... |
func (rr *responseRecorder) Size() int {
return rr.size
} | [
0.00762867322191596,
0.234579399228096,
0.4451885223388672,
-1.0541706085205078,
0.06984855234622955,
0.1757056713104248,
0.7330862879753113,
-0.23475956916809082,
0.15509381890296936,
-0.8682536482810974,
-0.6426960825920105,
0.0214693546295166,
-1.086617350578308,
0.1135704517364502,
1... |
func (rr *responseRecorder) Buffer() *bytes.Buffer {
return rr.buf
} | [
0.5481910109519958,
-0.4656547009944916,
0.28757867217063904,
-0.12794563174247742,
-0.38004249334335327,
1.0772521495819092,
0.682640790939331,
-0.38879138231277466,
0.9789764881134033,
-1.7983273267745972,
0.032662283629179,
1.212289810180664,
-0.634618878364563,
0.04644801467657089,
1... |
func (rr *responseRecorder) Buffered() bool {
return !rr.stream
} | [
0.5016539692878723,
-0.6036300659179688,
0.5450735092163086,
-0.4130917191505432,
0.4291137158870697,
0.7243296504020691,
0.3333623707294464,
-0.7180123925209045,
0.5425714254379272,
-0.4456777572631836,
-0.7065262198448181,
0.761443018913269,
-1.0147247314453125,
0.6034170985221863,
-0.... |
func (s GetAdminAccountInput) String() string {
return awsutil.Prettify(s)
} | [
0.9664222002029419,
0.18032395839691162,
-0.00007395247666863725,
-0.556374728679657,
-0.663316011428833,
1.133996844291687,
0.8028719425201416,
-1.3265091180801392,
0.6176782846450806,
0.23416778445243835,
0.8132609724998474,
1.667927861213684,
0.360470175743103,
-0.7064036130905151,
1.... |
func (s GetAdminAccountOutput) String() string {
return awsutil.Prettify(s)
} | [
1.5864813327789307,
-0.20751331746578217,
0.07505319267511368,
-0.552927553653717,
-1.029305100440979,
0.20858152210712433,
0.7811932563781738,
-1.3017899990081787,
0.06436538696289062,
0.19875994324684143,
1.0697777271270752,
1.1551344394683838,
0.5712154507637024,
-0.813428521156311,
0... |
func (r GetAdminAccountRequest) Send(ctx context.Context) (*GetAdminAccountResponse, error) {
r.Request.SetContext(ctx)
err := r.Request.Send()
if err != nil {
return nil, err
}
resp := &GetAdminAccountResponse{
GetAdminAccountOutput: r.Request.Data.(*GetAdminAccountOutput),
response: &aws.Resp... | [
0.05102922394871712,
-0.09400971233844757,
0.41032785177230835,
0.16023889183998108,
-0.31728070974349976,
-0.17100213468074799,
0.10992346704006195,
-1.3205546140670776,
0.6913631558418274,
-0.006329801864922047,
0.40282395482063293,
1.5144952535629272,
0.2402278333902359,
-0.458972156047... |
func (r *GetAdminAccountResponse) SDKResponseMetdata() *aws.Response {
return r.response
} | [
0.9887080788612366,
-0.07863248139619827,
0.34413251280784607,
-0.32198894023895264,
-0.3963086009025574,
0.28880947828292847,
-0.3606216311454773,
-0.8562209010124207,
1.194240689277649,
0.11762318015098572,
0.16152773797512054,
0.7021666765213013,
0.148671492934227,
-1.3460924625396729,
... |
func configureFlags(api *operations.JiliAPI) {
// api.CommandLineOptionsGroups = []swag.CommandLineOptionsGroup{ ... }
} | [
-0.3175937831401825,
0.5322206616401672,
0.17774724960327148,
0.4409017562866211,
0.5559489727020264,
-0.6944354772567749,
-0.06697052717208862,
-0.22961822152137756,
-0.7548463940620422,
-0.09911571443080902,
-0.48800745606422424,
-0.5509982109069824,
-0.9464713335037231,
1.39870917797088... |
func configureTLS(tlsConfig *tls.Config) {
// Make all necessary changes to the TLS configuration here.
} | [
0.47939756512641907,
0.40804848074913025,
0.3549412190914154,
-0.3323724865913391,
-0.2388513684272766,
-0.19460536539554596,
-0.016701387241482735,
0.9700636267662048,
0.8824155926704407,
0.5949287414550781,
-0.9719791412353516,
-0.5662629008293152,
0.9028839468955994,
0.2598060965538025,... |
func setupMiddlewares(handler http.Handler) http.Handler {
return handler
} | [
-0.39171406626701355,
-0.40465793013572693,
0.2157735824584961,
0.04118415340781212,
-0.7074241042137146,
0.18857896327972412,
0.40157604217529297,
-0.3453899323940277,
1.4809798002243042,
-0.3703938126564026,
0.01971183717250824,
0.05063294246792793,
-0.4930081367492676,
1.335522651672363... |
func setupGlobalMiddleware(handler http.Handler) http.Handler {
return handler
} | [
-0.493057519197464,
-0.33055493235588074,
0.4310799241065979,
0.312269002199173,
-0.7993568181991577,
0.7940993309020996,
0.15834930539131165,
0.4095451831817627,
0.3402135372161865,
0.43521028757095337,
-0.19936664402484894,
0.7686960101127625,
-0.6636579632759094,
1.3472933769226074,
-... |
func Index(a []string, s string) int {
if len(a) == 0 {
return -1
}
for i, v := range a {
if v == s {
return i
}
}
return -1
} | [
0.050992146134376526,
-0.9796116352081299,
0.16557593643665314,
-0.45437103509902954,
-0.6831791400909424,
-0.6022505164146423,
0.7439272403717041,
1.060476541519165,
0.14801695942878723,
0.9894226789474487,
0.7285851240158081,
1.2413570880889893,
-0.11759170889854431,
-0.8452617526054382,... |
func Contains(a []string, s string) bool {
if len(a) == 0 {
return false
}
return Index(a, s) >= 0
} | [
0.3200991749763489,
-0.8597763776779175,
0.24681897461414337,
-0.31295785307884216,
-0.28482699394226074,
-0.41431909799575806,
-0.6427081227302551,
0.294903963804245,
0.6819881796836853,
-0.21593475341796875,
0.7843610048294067,
1.3510797023773193,
0.1718466877937317,
0.191028892993927,
... |
func MapIdx(a []string, fn func(string, int) string) []string {
if len(a) == 0 {
return a
}
sl := make([]string, len(a))
for i, v := range a {
sl[i] = fn(v, i)
}
return sl
} | [
-0.5560211539268494,
-0.29816100001335144,
0.5122358798980713,
-0.07481919974088669,
-0.22762201726436615,
-0.3632720708847046,
-1.1672050952911377,
0.5760895013809204,
1.00884211063385,
0.23209604620933533,
0.07114716619253159,
0.7478322386741638,
0.7661594152450562,
-0.7133007049560547,
... |
func Map(a []string, fn func(string) string) []string {
if len(a) == 0 {
return a
}
sl := make([]string, len(a))
for i, v := range a {
sl[i] = fn(v)
}
return sl
} | [
0.30614572763442993,
-0.25084084272384644,
0.6595852375030518,
0.045736104249954224,
-0.3137187659740448,
-0.437766432762146,
-0.7527832388877869,
1.2194888591766357,
1.2593365907669067,
0.6846789121627808,
0.5090364217758179,
0.751268744468689,
1.173319935798645,
-0.057562168687582016,
... |
func (f *FileTypes) IsBinaryFile(file string) bool {
return f.isFileType("binary", file) || getExtension(file) == ""
} | [
0.6951238512992859,
0.18565019965171814,
0.6890779733657837,
1.1971176862716675,
0.5454331636428833,
0.4062797427177429,
0.027751736342906952,
0.009329083375632763,
-0.30463707447052,
0.29683858156204224,
-0.5026752352714539,
0.043934088200330734,
-0.8103265762329102,
0.9115068316459656,
... |
func NewProjectV1UsingExternalConfig(options *ProjectV1Options) (project *ProjectV1, err error) {
if options.ServiceName == "" {
options.ServiceName = DefaultServiceName
}
if options.Authenticator == nil {
options.Authenticator, err = core.GetAuthenticatorFromEnvironment(options.ServiceName)
if err != nil {
... | [
-0.7455970644950867,
0.9395651817321777,
0.45768705010414124,
0.6234598755836487,
-1.2651903629302979,
0.5146874785423279,
-0.7720080018043518,
0.7131327390670776,
0.19837436079978943,
1.3078256845474243,
0.22549226880073547,
0.4329966604709625,
-0.9695850014686584,
0.6832025051116943,
0... |
func NewProjectV1(options *ProjectV1Options) (service *ProjectV1, err error) {
serviceOptions := &core.ServiceOptions{
URL: DefaultServiceURL,
Authenticator: options.Authenticator,
}
baseService, err := core.NewBaseService(serviceOptions)
if err != nil {
return
}
if options.URL != "" {
err = b... | [
-0.9814056158065796,
0.32075974345207214,
0.4067996144294739,
1.0006440877914429,
-0.30638670921325684,
0.26977866888046265,
-0.23140151798725128,
0.03067178651690483,
0.5653813481330872,
0.852429211139679,
0.1429274082183838,
0.6372933983802795,
-1.3655331134796143,
-0.15077580511569977,
... |
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 (project *ProjectV1) Clone() *ProjectV1 {
if core.IsNil(project) {
return nil
}
clone := *project
clone.Service = project.Service.Clone()
return &clone
} | [
0.2956112325191498,
0.34499606490135193,
0.40179693698883057,
1.084261178970337,
-0.5335411429405212,
0.6785210371017456,
-0.34274715185165405,
-0.8652196526527405,
0.6102859377861023,
0.3449663519859314,
0.8504536151885986,
1.0822986364364624,
-1.2061337232589722,
-0.6319747567176819,
-... |
func (project *ProjectV1) SetServiceURL(url string) error {
return project.Service.SetServiceURL(url)
} | [
-0.9474390745162964,
0.3238653540611267,
0.34901919960975647,
0.9964754581451416,
-1.2371379137039185,
0.8918270468711853,
0.48267853260040283,
0.9910745620727539,
-0.4956344962120056,
0.7654386162757874,
-0.6052656769752502,
0.7264458537101746,
-0.1900242418050766,
0.7816905975341797,
-... |
func (project *ProjectV1) GetServiceURL() string {
return project.Service.GetServiceURL()
} | [
0.08541055023670197,
-0.15828384459018707,
0.38416385650634766,
1.0678558349609375,
-0.851571261882782,
0.8376082181930542,
0.36946430802345276,
0.5941537022590637,
-0.597980260848999,
0.4909316599369049,
0.26051419973373413,
0.6466951370239258,
-0.4524480402469635,
0.7797171473503113,
-... |
func (project *ProjectV1) SetDefaultHeaders(headers http.Header) {
project.Service.SetDefaultHeaders(headers)
} | [
-1.03223717212677,
0.31161803007125854,
0.0723043754696846,
1.0527454614639282,
0.7694813013076782,
0.5768126249313354,
-0.4890959560871124,
-0.6044014096260071,
0.08862131834030151,
0.05639936402440071,
-0.2903066575527191,
0.32690927386283875,
-1.2641087770462036,
0.6570350527763367,
-... |
func (project *ProjectV1) SetEnableGzipCompression(enableGzip bool) {
project.Service.SetEnableGzipCompression(enableGzip)
} | [
0.1058180183172226,
-0.17794418334960938,
0.6318374872207642,
0.7598116397857666,
-0.3896336853504181,
1.0038175582885742,
0.7722115516662598,
0.07879021763801575,
-0.01164349727332592,
0.7109500765800476,
-0.9774956107139587,
-0.12211821228265762,
-1.3892558813095093,
-0.0498608835041523,... |
func (project *ProjectV1) GetEnableGzipCompression() bool {
return project.Service.GetEnableGzipCompression()
} | [
0.1375359743833542,
0.8114151358604431,
0.6186755299568176,
0.7654919624328613,
-0.25840362906455994,
0.33948975801467896,
0.591301679611206,
-0.04573331028223038,
-0.34969362616539,
0.5880870819091797,
-0.9770880937576294,
-0.21325735747814178,
-1.5044142007827759,
0.0314030721783638,
0... |
func (project *ProjectV1) EnableRetries(maxRetries int, maxRetryInterval time.Duration) {
project.Service.EnableRetries(maxRetries, maxRetryInterval)
} | [
0.44358375668525696,
0.28707650303840637,
0.21609970927238464,
-0.36245375871658325,
0.49062010645866394,
1.274789810180664,
-0.6888435482978821,
1.271660327911377,
0.3021082580089569,
-0.2718108296394348,
-0.28504878282546997,
0.5732907652854919,
-0.448855459690094,
-0.5616803765296936,
... |
func (project *ProjectV1) DisableRetries() {
project.Service.DisableRetries()
} | [
1.0582201480865479,
0.013835761696100235,
-0.06613399088382721,
0.21392539143562317,
0.42427778244018555,
1.2082618474960327,
0.37089115381240845,
1.3396188020706177,
0.12448406219482422,
-0.6973780989646912,
0.384320467710495,
0.4980126917362213,
-0.8816248774528503,
-0.11210950464010239,... |
func (project *ProjectV1) CreateProject(createProjectOptions *CreateProjectOptions) (result *Project, response *core.DetailedResponse, err error) {
return project.CreateProjectWithContext(context.Background(), createProjectOptions)
} | [
-0.2412588745355606,
0.8418023586273193,
0.4798766076564789,
0.709729015827179,
1.1921336650848389,
0.5124886631965637,
0.18316082656383514,
-0.8684232831001282,
0.8146895170211792,
0.015958203002810478,
0.45999979972839355,
-0.05390066280961037,
-1.4168038368225098,
-0.5587601065635681,
... |
func (project *ProjectV1) CreateProjectWithContext(ctx context.Context, createProjectOptions *CreateProjectOptions) (result *Project, response *core.DetailedResponse, err error) {
err = core.ValidateNotNil(createProjectOptions, "createProjectOptions cannot be nil")
if err != nil {
return
}
err = core.ValidateStru... | [
-0.8165021538734436,
0.5251622200012207,
0.7277102470397949,
-0.056984394788742065,
0.16977563500404358,
0.08321163803339005,
-0.5883789658546448,
-1.3492573499679565,
0.5496941804885864,
0.6631278395652771,
-0.3794706165790558,
0.15101385116577148,
-0.9868571162223816,
-0.0133173847571015... |
func (project *ProjectV1) ListProjects(listProjectsOptions *ListProjectsOptions) (result *ProjectCollection, response *core.DetailedResponse, err error) {
return project.ListProjectsWithContext(context.Background(), listProjectsOptions)
} | [
-0.851496160030365,
0.6296666860580444,
0.38440489768981934,
0.3315010070800781,
0.7299069762229919,
0.3504515290260315,
-0.03707924112677574,
-1.130845308303833,
0.9439901113510132,
0.01906057633459568,
-0.008545052260160446,
0.4812335669994354,
-1.1183549165725708,
-0.18620137870311737,
... |
func (project *ProjectV1) ListProjectsWithContext(ctx context.Context, listProjectsOptions *ListProjectsOptions) (result *ProjectCollection, response *core.DetailedResponse, err error) {
err = core.ValidateStruct(listProjectsOptions, "listProjectsOptions")
if err != nil {
return
}
builder := core.NewRequestBuild... | [
-1.2488545179367065,
0.5093829035758972,
0.9584866762161255,
-0.31402960419654846,
0.05536072701215744,
0.0034336834214627743,
-0.10306708514690399,
-1.3037689924240112,
0.4473763108253479,
0.45527660846710205,
-0.6850584745407104,
0.7941699624061584,
-0.8624388575553894,
-0.08906068652868... |
func (project *ProjectV1) GetProject(getProjectOptions *GetProjectOptions) (result *Project, response *core.DetailedResponse, err error) {
return project.GetProjectWithContext(context.Background(), getProjectOptions)
} | [
-0.2727506756782532,
1.1015807390213013,
0.425169974565506,
1.2313207387924194,
1.1484540700912476,
-0.3329635262489319,
0.26865485310554504,
-0.9749869704246521,
0.945310652256012,
-0.3979768455028534,
0.563919723033905,
0.7455269694328308,
-1.1473690271377563,
-0.8133262395858765,
-0.9... |
func (project *ProjectV1) GetProjectWithContext(ctx context.Context, getProjectOptions *GetProjectOptions) (result *Project, response *core.DetailedResponse, err error) {
err = core.ValidateNotNil(getProjectOptions, "getProjectOptions cannot be nil")
if err != nil {
return
}
err = core.ValidateStruct(getProjectOp... | [
-0.9557482004165649,
0.8087829947471619,
0.8312658667564392,
0.0445321761071682,
0.30707022547721863,
-0.48136433959007263,
-0.43556123971939087,
-1.2481848001480103,
0.5764914751052856,
0.3477316200733185,
-0.2299247533082962,
0.7827128171920776,
-1.1278451681137085,
-0.45334792137145996,... |
func (project *ProjectV1) UpdateProject(updateProjectOptions *UpdateProjectOptions) (result *Project, response *core.DetailedResponse, err error) {
return project.UpdateProjectWithContext(context.Background(), updateProjectOptions)
} | [
-1.2438435554504395,
0.27451032400131226,
0.514941394329071,
0.9387068748474121,
0.4194754958152771,
0.2800964117050171,
0.34115150570869446,
-0.5387214422225952,
0.9833150506019592,
0.19081513583660126,
0.5633254647254944,
0.5044344663619995,
-1.3316503763198853,
-0.9540582895278931,
-0... |
func (project *ProjectV1) UpdateProjectWithContext(ctx context.Context, updateProjectOptions *UpdateProjectOptions) (result *Project, response *core.DetailedResponse, err error) {
err = core.ValidateNotNil(updateProjectOptions, "updateProjectOptions cannot be nil")
if err != nil {
return
}
err = core.ValidateStru... | [
-1.5857107639312744,
0.10453720390796661,
0.8599606156349182,
-0.025551678612828255,
-0.3639853894710541,
-0.20392556488513947,
-0.44981494545936584,
-1.190765142440796,
0.7334581017494202,
0.9792112708091736,
-0.6914721131324768,
0.7355173826217651,
-1.1827630996704102,
-0.349844902753829... |
func (project *ProjectV1) DeleteProject(deleteProjectOptions *DeleteProjectOptions) (response *core.DetailedResponse, err error) {
return project.DeleteProjectWithContext(context.Background(), deleteProjectOptions)
} | [
-0.1746070832014084,
0.9465699195861816,
0.46155062317848206,
0.6464475989341736,
1.089787483215332,
-0.004112964030355215,
0.6393116116523743,
-0.5398077964782715,
1.231790542602539,
-0.5323017239570618,
0.7595493197441101,
0.7646625638008118,
-0.9933398962020874,
-0.324631005525589,
-0... |
func (project *ProjectV1) DeleteProjectWithContext(ctx context.Context, deleteProjectOptions *DeleteProjectOptions) (response *core.DetailedResponse, err error) {
err = core.ValidateNotNil(deleteProjectOptions, "deleteProjectOptions cannot be nil")
if err != nil {
return
}
err = core.ValidateStruct(deleteProjectO... | [
-0.9486546516418457,
0.5528469085693359,
0.6669704914093018,
-0.03637866675853729,
0.11756075173616409,
-0.19189363718032837,
-0.5220329761505127,
-1.1319223642349243,
0.8826249241828918,
0.21712301671504974,
0.0633600577712059,
0.7308735847473145,
-0.90049809217453,
-0.3722365200519562,
... |
func (project *ProjectV1) CreateConfig(createConfigOptions *CreateConfigOptions) (result *ProjectConfig, response *core.DetailedResponse, err error) {
return project.CreateConfigWithContext(context.Background(), createConfigOptions)
} | [
-0.2355932742357254,
0.7114297747612,
0.5325691103935242,
0.5228145718574524,
0.7845202088356018,
0.6501625776290894,
0.3733346164226532,
0.16680742800235748,
-0.03527591750025749,
0.6435710787773132,
0.15318354964256287,
0.03352128341794014,
-0.7458689212799072,
0.6132585406303406,
-0.4... |
func (project *ProjectV1) CreateConfigWithContext(ctx context.Context, createConfigOptions *CreateConfigOptions) (result *ProjectConfig, response *core.DetailedResponse, err error) {
err = core.ValidateNotNil(createConfigOptions, "createConfigOptions cannot be nil")
if err != nil {
return
}
err = core.ValidateStr... | [
-0.9656282663345337,
0.49747124314308167,
0.7955225706100464,
0.1207345649600029,
-0.1934407651424408,
-0.0005078082322143018,
-0.7278661131858826,
-0.8428060412406921,
-0.3361225724220276,
1.1435757875442505,
-0.7438602447509766,
0.09674214571714401,
-0.7189972400665283,
0.500523090362548... |
func (project *ProjectV1) ListConfigs(listConfigsOptions *ListConfigsOptions) (result *ProjectConfigCollection, response *core.DetailedResponse, err error) {
return project.ListConfigsWithContext(context.Background(), listConfigsOptions)
} | [
-0.6753052473068237,
0.6553840637207031,
0.42518049478530884,
1.1266701221466064,
0.3656177222728729,
0.12460054457187653,
0.032850127667188644,
-0.5678149461746216,
0.521129846572876,
0.5379378199577332,
-0.15023867785930634,
0.42683643102645874,
-0.6357315182685852,
0.04450554773211479,
... |
func (project *ProjectV1) ListConfigsWithContext(ctx context.Context, listConfigsOptions *ListConfigsOptions) (result *ProjectConfigCollection, response *core.DetailedResponse, err error) {
err = core.ValidateNotNil(listConfigsOptions, "listConfigsOptions cannot be nil")
if err != nil {
return
}
err = core.Valida... | [
-1.1497001647949219,
0.5457260012626648,
0.9368227124214172,
0.52288419008255,
-0.26286017894744873,
-0.32390832901000977,
-0.4923292398452759,
-1.373422384262085,
0.32414039969444275,
1.0936565399169922,
-0.6638497710227966,
0.6433741450309753,
-0.8376135230064392,
0.18877528607845306,
... |
func (project *ProjectV1) GetConfig(getConfigOptions *GetConfigOptions) (result *ProjectConfig, response *core.DetailedResponse, err error) {
return project.GetConfigWithContext(context.Background(), getConfigOptions)
} | [
-0.3043877184391022,
1.175413727760315,
0.521340012550354,
1.0241221189498901,
0.9252468347549438,
0.10456336289644241,
0.6435390114784241,
-0.0025173902977257967,
0.3365529477596283,
0.19480445981025696,
0.32268083095550537,
0.9417974948883057,
-0.7397110462188721,
0.09397239983081818,
... |
func (project *ProjectV1) GetConfigWithContext(ctx context.Context, getConfigOptions *GetConfigOptions) (result *ProjectConfig, response *core.DetailedResponse, err error) {
err = core.ValidateNotNil(getConfigOptions, "getConfigOptions cannot be nil")
if err != nil {
return
}
err = core.ValidateStruct(getConfigOp... | [
-1.1180078983306885,
0.7615044713020325,
1.0081441402435303,
0.282585084438324,
0.02883157692849636,
-0.24973854422569275,
-0.5763663649559021,
-0.9252685904502869,
-0.28735601902008057,
0.9319624900817871,
-0.5711674094200134,
0.8624709248542786,
-0.8642458915710449,
0.06462609022855759,
... |
func (project *ProjectV1) UpdateConfig(updateConfigOptions *UpdateConfigOptions) (result *ProjectConfig, response *core.DetailedResponse, err error) {
return project.UpdateConfigWithContext(context.Background(), updateConfigOptions)
} | [
-1.0974841117858887,
0.2969912886619568,
0.5497322678565979,
0.812915563583374,
0.05992189049720764,
0.6962687969207764,
0.7112944722175598,
0.632452130317688,
0.36321648955345154,
0.8302896022796631,
0.15394271910190582,
0.7248747944831848,
-0.5616443753242493,
0.08073024451732635,
-0.3... |
func (project *ProjectV1) UpdateConfigWithContext(ctx context.Context, updateConfigOptions *UpdateConfigOptions) (result *ProjectConfig, response *core.DetailedResponse, err error) {
err = core.ValidateNotNil(updateConfigOptions, "updateConfigOptions cannot be nil")
if err != nil {
return
}
err = core.ValidateStr... | [
-1.6098418235778809,
0.3184875249862671,
0.9295881986618042,
0.09075479209423065,
-0.7057308554649353,
0.05266427621245384,
-0.35227370262145996,
-0.6146900057792664,
-0.1381695717573166,
1.3955832719802856,
-0.8952904343605042,
0.7691572904586792,
-0.8022096157073975,
0.059298448264598846... |
func (project *ProjectV1) DeleteConfig(deleteConfigOptions *DeleteConfigOptions) (result *ProjectConfigDelete, response *core.DetailedResponse, err error) {
return project.DeleteConfigWithContext(context.Background(), deleteConfigOptions)
} | [
-0.3722749948501587,
0.7588672637939453,
0.5109827518463135,
0.7077040076255798,
0.6167789101600647,
0.5479342341423035,
0.7456041574478149,
0.4831700623035431,
0.2173750251531601,
0.027349479496479034,
-0.12751616537570953,
0.7453347444534302,
-0.23544082045555115,
0.5429415702819824,
-... |
func (project *ProjectV1) DeleteConfigWithContext(ctx context.Context, deleteConfigOptions *DeleteConfigOptions) (result *ProjectConfigDelete, response *core.DetailedResponse, err error) {
err = core.ValidateNotNil(deleteConfigOptions, "deleteConfigOptions cannot be nil")
if err != nil {
return
}
err = core.Valid... | [
-1.0036709308624268,
0.6640059947967529,
0.6866656541824341,
-0.11355558037757874,
-0.49235501885414124,
-0.15296150743961334,
-0.5567169189453125,
-0.49862152338027954,
-0.06916685402393341,
0.6627494692802429,
-0.6544089317321777,
0.7673335075378418,
-0.3668830096721649,
0.38879626989364... |
func (project *ProjectV1) GetConfigDiff(getConfigDiffOptions *GetConfigDiffOptions) (result *ProjectConfigDiff, response *core.DetailedResponse, err error) {
return project.GetConfigDiffWithContext(context.Background(), getConfigDiffOptions)
} | [
-1.0221996307373047,
0.3819462060928345,
0.5447911620140076,
1.1932590007781982,
0.5469518899917603,
0.39278465509414673,
0.7008065581321716,
-0.23781712353229523,
0.0649489164352417,
-0.1277305781841278,
-0.39716947078704834,
0.8457909822463989,
-0.7706631422042847,
0.33035531640052795,
... |
func (project *ProjectV1) GetConfigDiffWithContext(ctx context.Context, getConfigDiffOptions *GetConfigDiffOptions) (result *ProjectConfigDiff, response *core.DetailedResponse, err error) {
err = core.ValidateNotNil(getConfigDiffOptions, "getConfigDiffOptions cannot be nil")
if err != nil {
return
}
err = core.Va... | [
-1.339954137802124,
0.3899610638618469,
0.9435588121414185,
0.35147786140441895,
0.10410811007022858,
-0.023909306153655052,
0.06662911176681519,
-1.0225242376327515,
-0.1919139325618744,
0.24715815484523773,
-0.652026355266571,
0.9485549330711365,
-1.037416696548462,
0.37415751814842224,
... |
func (project *ProjectV1) ForceApprove(forceApproveOptions *ForceApproveOptions) (result *ProjectConfig, response *core.DetailedResponse, err error) {
return project.ForceApproveWithContext(context.Background(), forceApproveOptions)
} | [
-1.119295358657837,
0.41780519485473633,
0.441771000623703,
0.7568631172180176,
0.3840283453464508,
0.7948828339576721,
-0.5049759745597839,
-0.5567236542701721,
-0.0740589126944542,
0.14219357073307037,
-0.06680373847484589,
0.6691518425941467,
-1.2561652660369873,
0.6963492631912231,
-... |
func (project *ProjectV1) ForceApproveWithContext(ctx context.Context, forceApproveOptions *ForceApproveOptions) (result *ProjectConfig, response *core.DetailedResponse, err error) {
err = core.ValidateNotNil(forceApproveOptions, "forceApproveOptions cannot be nil")
if err != nil {
return
}
err = core.ValidateStr... | [
-1.5756231546401978,
0.45673155784606934,
0.9357783794403076,
0.11415043473243713,
-0.19921429455280304,
0.08196331560611725,
-0.6307811141014099,
-1.0862021446228027,
0.018185002729296684,
0.9798707962036133,
-0.5759340524673462,
1.0311694145202637,
-0.9806907176971436,
0.8827632665634155... |
func (project *ProjectV1) Approve(approveOptions *ApproveOptions) (result *ProjectConfig, response *core.DetailedResponse, err error) {
return project.ApproveWithContext(context.Background(), approveOptions)
} | [
-1.3185745477676392,
0.5357732176780701,
0.49024665355682373,
0.7114154100418091,
-0.06407997012138367,
0.5243738293647766,
-0.3641263544559479,
-0.44449204206466675,
-0.3228991627693176,
0.6246229410171509,
0.31356361508369446,
0.3395911157131195,
-1.2938001155853271,
-0.00334344711154699... |
func (project *ProjectV1) ApproveWithContext(ctx context.Context, approveOptions *ApproveOptions) (result *ProjectConfig, response *core.DetailedResponse, err error) {
err = core.ValidateNotNil(approveOptions, "approveOptions cannot be nil")
if err != nil {
return
}
err = core.ValidateStruct(approveOptions, "appr... | [
-1.4765269756317139,
0.3588794469833374,
0.9730916619300842,
-0.23294614255428314,
-0.48110997676849365,
0.1575133204460144,
-0.7730210423469543,
-1.1963460445404053,
-0.3204217255115509,
1.3695462942123413,
-0.563815176486969,
0.8810986876487732,
-0.8418218493461609,
0.32070213556289673,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.