text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func ReadInput(r io.Reader) (map[string]string, error) {
scan := bufio.NewScanner(r)
data := map[string]string{}
for scan.Scan() {
kv := bytes.SplitN(scan.Bytes(), []byte("="), 2)
if len(kv) > 1 {
data[string(kv[0])] = string(kv[1])
}
}
if err := scan.Err(); err != nil && err != io.EOF {
return nil, ... | [
-1.0893604755401611,
-0.3920297920703888,
0.7920607328414917,
-0.6114750504493713,
-1.2024483680725098,
0.46596112847328186,
-0.13494405150413513,
-0.4336833953857422,
-0.42412325739860535,
0.22960636019706726,
-0.8209296464920044,
0.058229196816682816,
-0.02051122859120369,
0.394929647445... |
func BadRequest(w ResponseWriter, r *Request) {
w.SetHeader(CodeBadRequest, "bad request")
} | [
-0.3541722297668457,
-0.8075780868530273,
0.43435436487197876,
0.24817216396331787,
0.4605039358139038,
0.2932702302932739,
-0.7176637649536133,
-0.0279325470328331,
0.28084051609039307,
-0.3401156961917877,
1.1312193870544434,
0.5098245143890381,
0.3339654207229614,
-0.1631268411874771,
... |
func BadRequestHandler() Handler {
return HandlerFunc(BadRequest)
} | [
-0.27854976058006287,
-1.346703290939331,
0.2217063456773758,
1.1671561002731323,
-0.6377696990966797,
0.43747928738594055,
-0.8837058544158936,
0.26095834374427795,
0.21385148167610168,
-1.053961992263794,
0.6247206330299377,
-0.12099915742874146,
-0.46544766426086426,
-0.5012391209602356... |
func NotFound(w ResponseWriter, r *Request) {
w.SetHeader(CodeNotFound, "not found")
} | [
0.17371046543121338,
-1.0596659183502197,
0.18820825219154358,
-0.1521095186471939,
0.11829265207052231,
0.16913144290447235,
0.6255921125411987,
-0.442953884601593,
0.7035695910453796,
-0.155159592628479,
0.5122596621513367,
0.16250289976596832,
0.0692753717303276,
0.26020339131355286,
... |
func NotFoundHandler() Handler {
return HandlerFunc(NotFound)
} | [
-0.20558834075927734,
-1.1780141592025757,
-0.16939276456832886,
0.44161155819892883,
-0.6567498445510864,
0.6353799700737,
0.9521313905715942,
0.11447586864233017,
0.1627669483423233,
-0.9173033833503723,
-0.35103484988212585,
-0.3527389466762543,
0.03668855130672455,
0.32321998476982117,... |
func RedirectTemporaryHandler(to string) Handler {
return HandlerFunc(func(w ResponseWriter, r *Request) {
w.SetHeader(CodeRedirect, to)
})
} | [
-0.8684453964233398,
-0.6794686317443848,
0.28361740708351135,
-0.7325219511985779,
-1.398759365081787,
0.6952728033065796,
0.39728716015815735,
-0.17511269450187683,
0.779476523399353,
-0.7387093901634216,
-0.3006710112094879,
-0.12874355912208557,
0.565840482711792,
-1.045118808746338,
... |
func RedirectPermanentHandler(to string) Handler {
return HandlerFunc(func(w ResponseWriter, r *Request) {
w.SetHeader(CodeRedirectPermanent, to)
})
} | [
-0.3648653030395508,
-0.9846457839012146,
0.2945008873939514,
-0.5255792737007141,
-1.6281946897506714,
0.8230128884315491,
0.05346865579485893,
-0.004455931019037962,
0.7570495009422302,
-0.841365396976471,
0.3919585943222046,
0.04944617301225662,
-0.2990926206111908,
-1.1131633520126343,... |
func StripPrefixHandler(prefix string, h Handler) Handler {
if prefix == "" {
return h
}
return HandlerFunc(func(w ResponseWriter, r *Request) {
if p := strings.TrimPrefix(r.URL.Path, prefix); len(p) < len(r.URL.Path) {
r2 := new(Request)
*r2 = *r
r2.URL = new(url.URL)
*r2.URL = *r.URL
r2.URL.Path... | [
-0.22745347023010254,
-0.7406635284423828,
0.3905002474784851,
-0.5553024411201477,
-1.233912706375122,
0.01436915434896946,
0.5188164114952087,
0.7815697193145752,
0.4552079737186432,
-0.22369161248207092,
-0.1922280341386795,
-0.14900006353855133,
-0.23454831540584564,
-0.018893515691161... |
func RequireCertificateHandler(h Handler, authoriser func(certID, certKey string) bool) Handler {
if authoriser == nil {
authoriser = AuthoriserAllowAll
}
return HandlerFunc(func(w ResponseWriter, r *Request) {
if r.Certificate.ID == "" {
w.SetHeader(CodeClientCertificateRequired, "client certificate required... | [
0.0025220068637281656,
-0.36263081431388855,
0.3515484929084778,
0.5313677787780762,
-1.2615703344345093,
0.6043269634246826,
0.3542126715183258,
0.41836509108543396,
-0.5183921456336975,
0.9901843667030334,
0.062331654131412506,
-0.22930759191513062,
-0.8759632706642151,
1.038432717323303... |
func AuthoriserAllowAll(id, key string) bool {
return true
} | [
-0.1074891984462738,
-1.0148351192474365,
0.2543139159679413,
1.1250052452087402,
-1.1681466102600098,
0.06827951222658157,
-0.4274618327617645,
0.963779866695404,
0.16980776190757751,
0.9566941857337952,
0.26111993193626404,
0.779742419719696,
-0.38421836495399475,
0.2175876498222351,
-... |
func NewResourceDetector() resource.Detector {
return &resourceDetector{utils: eksDetectorUtils{}}
} | [
0.6029979586601257,
-0.5440443158149719,
0.05505102872848511,
-0.5285158753395081,
-1.396337866783142,
-0.3298061192035675,
-0.39672014117240906,
-0.088191919028759,
0.42587050795555115,
-1.097491979598999,
-0.556715726852417,
-0.9539263248443604,
0.25412121415138245,
0.37991997599601746,
... |
func (detector *resourceDetector) Detect(ctx context.Context) (*resource.Resource, error) {
isEks, err := isEKS(detector.utils)
if err != nil {
return nil, err
}
// Return empty resource object if not running in EKS
if !isEks {
return resource.Empty(), nil
}
// Create variable to hold resource attributes
... | [
0.1467246413230896,
-1.0315192937850952,
0.5373578667640686,
0.5397834777832031,
0.04143808037042618,
-0.5978641510009766,
-0.38996246457099915,
-0.050021227449178696,
0.3263789415359497,
0.16239476203918457,
0.5501255393028259,
-0.33087703585624695,
0.05819329619407654,
0.2923819422721863... |
func isEKS(utils detectorUtils) (bool, error) {
if !isK8s(utils) {
return false, nil
}
// Make HTTP GET request
awsAuth, err := utils.fetchString(http.MethodGet, k8sSvcURL+authConfigmapPath)
if err != nil {
return false, fmt.Errorf("isEks() error retrieving auth configmap: %w", err)
}
return awsAuth != "",... | [
-1.017607569694519,
-0.04416073113679886,
0.6216479539871216,
0.6328850984573364,
-0.4188137650489807,
-0.3640597462654114,
-0.6181358098983765,
-0.6229124665260315,
1.2235174179077148,
0.6910111308097839,
0.39680877327919006,
0.6797933578491211,
0.7970082759857178,
-0.06463154405355453,
... |
func isK8s(utils detectorUtils) bool {
return utils.fileExists(k8sTokenPath) && utils.fileExists(k8sCertPath)
} | [
-0.1644321084022522,
-0.746528148651123,
0.2493196576833725,
0.310831755399704,
-0.15746872127056122,
0.12114829570055008,
-0.8333982825279236,
-0.4994971752166748,
0.8412399291992188,
0.3349876403808594,
0.01955472305417061,
0.26332125067710876,
0.8857397437095642,
-0.028721483424305916,
... |
func (eksUtils eksDetectorUtils) fileExists(filename string) bool {
info, err := os.Stat(filename)
return err == nil && !info.IsDir()
} | [
-0.8632893562316895,
-0.3230767250061035,
0.4538446366786957,
0.3124813139438629,
1.531807541847229,
0.7249888777732849,
-0.02805042639374733,
0.240957573056221,
-0.6881957650184631,
-0.7507238984107971,
0.3735719621181488,
-0.590029239654541,
0.8102694153785706,
0.5339624881744385,
-1.4... |
func (eksUtils eksDetectorUtils) fetchString(httpMethod string, URL string) (string, error) {
request, err := http.NewRequest(httpMethod, URL, nil)
if err != nil {
return "", fmt.Errorf("failed to create new HTTP request with method=%s, URL=%s: %w", httpMethod, URL, err)
}
// Set HTTP request header with authent... | [
0.224277526140213,
-0.3482767343521118,
0.9232797622680664,
0.10401157289743423,
-0.8158846497535706,
0.16204391419887543,
-0.6052392721176147,
-0.7257598042488098,
-0.169261172413826,
1.0375877618789673,
0.24830088019371033,
0.7978365421295166,
0.23374411463737488,
-0.31125083565711975,
... |
func getK8sCredHeader() (string, error) {
content, err := ioutil.ReadFile(k8sTokenPath)
if err != nil {
return "", fmt.Errorf("getK8sCredHeader() error: cannot read file with path %s", k8sTokenPath)
}
return "Bearer " + string(content), nil
} | [
0.3250724971294403,
-0.365817129611969,
0.6410104036331177,
0.07395738363265991,
-0.38330960273742676,
1.0631054639816284,
-1.224550724029541,
-0.40105804800987244,
0.1522844433784485,
0.702620267868042,
0.4325637221336365,
0.4918634295463562,
0.47647279500961304,
0.5009946227073669,
0.5... |
func getClusterName(utils detectorUtils) (string, error) {
resp, err := utils.fetchString("GET", k8sSvcURL+cwConfigmapPath)
if err != nil {
return "", fmt.Errorf("getClusterName() error: %w", err)
}
// parse JSON object returned from HTTP request
var respmap map[string]json.RawMessage
err = json.Unmarshal([]by... | [
-1.0573091506958008,
-0.3241787254810333,
1.136837124824524,
0.35429081320762634,
-0.525252640247345,
-0.13811235129833221,
-0.024596715345978737,
0.07026172429323196,
-0.02518595941364765,
0.7434057593345642,
0.16767889261245728,
0.8224703669548035,
-0.02042359672486782,
0.718324005603790... |
func (eksUtils eksDetectorUtils) getContainerID() (string, error) {
fileData, err := ioutil.ReadFile(defaultCgroupPath)
if err != nil {
return "", fmt.Errorf("getContainerID() error: cannot read file with path %s: %w", defaultCgroupPath, err)
}
r, err := regexp.Compile(`^.*/docker/(.+)$`)
if err != nil {
retu... | [
0.4051860570907593,
-0.5932894349098206,
0.899297833442688,
0.17042109370231628,
0.04654264822602272,
0.5981186628341675,
1.004902720451355,
-0.2515105605125427,
-0.5556476712226868,
0.17178624868392944,
0.4828779697418213,
0.05312619358301163,
-0.4430977702140808,
1.0394264459609985,
0.... |
func Initialize() {
session := db.Connection.Session.Copy()
defer session.Close()
c := session.DB(conf.MONGODB_DATABASE).C("Nodes")
c.EnsureIndex(mgo.Index{Key: []string{"acl.owner"}, Background: true})
c.EnsureIndex(mgo.Index{Key: []string{"acl.read"}, Background: true})
c.EnsureIndex(mgo.Index{Key: []string{"ac... | [
-0.25151702761650085,
0.3043481707572937,
0.5982221961021423,
0.009614619426429272,
0.6125000715255737,
-0.1941492110490799,
0.4151048958301544,
0.06431436538696289,
-0.14591237902641296,
0.7745588421821594,
-0.22240972518920898,
0.038963042199611664,
0.1683042198419571,
0.0522296875715255... |
func (o *GetCorporationsCorporationIDAlliancehistoryReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewGetCorporationsCorporationIDAlliancehistoryOK()
if err := result.readResponse(response, consumer, o.formats);... | [
-0.43985652923583984,
-0.7597959041595459,
0.5458664894104004,
0.6142845749855042,
0.25024357438087463,
-1.029282569885254,
0.5493640899658203,
0.2875330448150635,
0.17748920619487762,
0.100314661860466,
0.5667893290519714,
-0.17479217052459717,
-1.0531431436538696,
0.2521466016769409,
1... |
func NewGetCorporationsCorporationIDAlliancehistoryOK() *GetCorporationsCorporationIDAlliancehistoryOK {
return &GetCorporationsCorporationIDAlliancehistoryOK{}
} | [
0.38599032163619995,
-0.009188695810735226,
0.36458563804626465,
1.0735526084899902,
0.13886623084545135,
0.3042171001434326,
1.239824652671814,
1.0540823936462402,
-0.6497107148170471,
-0.6616302728652954,
-0.10028743743896484,
0.35863274335861206,
0.15238229930400848,
0.3106982111930847,... |
func (o *GetCorporationsCorporationIDAlliancehistoryOKBodyItems0) Validate(formats strfmt.Registry) error {
var res []error
if err := o.validateRecordID(formats); err != nil {
// prop
res = append(res, err)
}
if err := o.validateStartDate(formats); err != nil {
// prop
res = append(res, err)
}
if len(r... | [
0.22564829885959625,
-0.10682950913906097,
0.3666989803314209,
0.39488276839256287,
0.1899172067642212,
-0.02733479253947735,
0.1549883782863617,
0.601536750793457,
-0.4822285771369934,
0.05188584700226784,
0.11712846159934998,
0.14423967897891998,
-0.8630866408348083,
1.6183534860610962,
... |
func NewAccessReviewRequest() *AccessReviewRequestBuilder {
return &AccessReviewRequestBuilder{}
} | [
-0.38320019841194153,
-0.4404415190219879,
0.3336643874645233,
-0.24156229197978973,
-1.481524109840393,
0.08332900702953339,
-0.5830655097961426,
1.0401455163955688,
0.0098595404997468,
-0.4081710875034332,
1.3599687814712524,
0.6700462102890015,
-0.3101513683795929,
0.09142669290304184,
... |
func (b *AccessReviewRequestBuilder) AccountUsername(value string) *AccessReviewRequestBuilder {
b.accountUsername = value
b.bitmap_ |= 1
return b
} | [
-0.9402372241020203,
0.5159013271331787,
0.33298057317733765,
1.2201348543167114,
-0.37095680832862854,
0.2542886734008789,
1.7395886182785034,
0.8721696138381958,
0.3459816575050354,
-0.564691960811615,
0.20368258655071259,
0.28570201992988586,
0.5596495866775513,
0.3705703020095825,
-0... |
func (b *AccessReviewRequestBuilder) Action(value string) *AccessReviewRequestBuilder {
b.action = value
b.bitmap_ |= 2
return b
} | [
-0.45586806535720825,
-0.15963006019592285,
0.24458728730678558,
-0.19021105766296387,
-0.18864493072032928,
0.8358940482139587,
0.46476033329963684,
0.5361511707305908,
0.799964189529419,
0.09166107326745987,
0.38300585746765137,
0.4875573515892029,
0.04923565685749054,
0.644882321357727,... |
func (b *AccessReviewRequestBuilder) ClusterID(value string) *AccessReviewRequestBuilder {
b.clusterID = value
b.bitmap_ |= 4
return b
} | [
0.017055530101060867,
0.22751323878765106,
0.2814815640449524,
0.1340124011039734,
-0.28713566064834595,
1.136540174484253,
0.37641867995262146,
0.6712815165519714,
1.6509594917297363,
0.19040745496749878,
0.6289879679679871,
0.920212984085083,
0.09350576996803284,
0.8849382400512695,
-0... |
func (b *AccessReviewRequestBuilder) ClusterUUID(value string) *AccessReviewRequestBuilder {
b.clusterUUID = value
b.bitmap_ |= 8
return b
} | [
-0.5755767822265625,
0.4553740620613098,
0.280007541179657,
-0.2798697352409363,
-0.13120174407958984,
0.5283626914024353,
0.7219923734664917,
1.0774236917495728,
0.9380732774734497,
0.17307685315608978,
0.3059713542461395,
0.8953785300254822,
-0.04191917926073074,
-0.26161208748817444,
... |
func (b *AccessReviewRequestBuilder) OrganizationID(value string) *AccessReviewRequestBuilder {
b.organizationID = value
b.bitmap_ |= 16
return b
} | [
0.06853292882442474,
0.40424665808677673,
0.23785743117332458,
0.5201155543327332,
-0.3951491713523865,
1.314105749130249,
0.6646507978439331,
0.45341283082962036,
0.7066787481307983,
0.43185609579086304,
1.0967775583267212,
0.6406652331352234,
0.5798534154891968,
1.3865776062011719,
-0.... |
func (b *AccessReviewRequestBuilder) ResourceType(value string) *AccessReviewRequestBuilder {
b.resourceType = value
b.bitmap_ |= 32
return b
} | [
0.24912691116333008,
0.7175533175468445,
0.28975558280944824,
-0.5901976823806763,
-0.14745835959911346,
0.4374212622642517,
0.7087546586990356,
0.017392737790942192,
0.9616119861602783,
-0.09333758056163788,
1.036332130432129,
-0.2373659610748291,
-0.02257106825709343,
1.1533260345458984,... |
func (b *AccessReviewRequestBuilder) SubscriptionID(value string) *AccessReviewRequestBuilder {
b.subscriptionID = value
b.bitmap_ |= 64
return b
} | [
0.5199426412582397,
-0.0244451817125082,
0.21267801523208618,
0.37066370248794556,
-0.7440304756164551,
0.844480037689209,
0.2832043170928955,
0.5814310908317566,
1.1366130113601685,
-0.32535120844841003,
0.656288743019104,
0.43909215927124023,
0.5741141438484192,
1.2035526037216187,
-0.... |
func (b *AccessReviewRequestBuilder) Copy(object *AccessReviewRequest) *AccessReviewRequestBuilder {
if object == nil {
return b
}
b.bitmap_ = object.bitmap_
b.accountUsername = object.accountUsername
b.action = object.action
b.clusterID = object.clusterID
b.clusterUUID = object.clusterUUID
b.organizationID =... | [
-0.3736589252948761,
-1.0193185806274414,
0.753517746925354,
0.38252031803131104,
-1.428262710571289,
0.9665464758872986,
0.02335490472614765,
-0.07107512652873993,
1.2898608446121216,
0.08535267412662506,
1.050153374671936,
1.1042717695236206,
-0.1598203480243683,
-0.23861545324325562,
... |
func (b *AccessReviewRequestBuilder) Build() (object *AccessReviewRequest, err error) {
object = new(AccessReviewRequest)
object.bitmap_ = b.bitmap_
object.accountUsername = b.accountUsername
object.action = b.action
object.clusterID = b.clusterID
object.clusterUUID = b.clusterUUID
object.organizationID = b.orga... | [
-0.41346436738967896,
-1.3121711015701294,
0.4529838562011719,
0.11563199758529663,
-0.828109860420227,
-0.3939685523509979,
-0.4473332166671753,
0.35503044724464417,
0.1691645234823227,
-0.5986282229423523,
0.9660571217536926,
1.190310001373291,
-0.4818348288536072,
-0.147516667842865,
... |
func UrlMap(python *python.Python, dir string, app string) (map[string]string, error) {
var err error
code := template.Must(template.New("").Parse(test_py))
var pyCode bytes.Buffer
if err := code.Execute(&pyCode, map[string]string{"App": app}); nil!=err {
return nil, fmt.Errorf(`Failed parsing python template: %w... | [
-0.491698294878006,
-0.8387510180473328,
1.359697937965393,
-0.16685828566551208,
-0.3541654944419861,
0.04476062208414078,
0.43258920311927795,
-0.028577934950590134,
-0.4029702842235565,
0.9727328419685364,
-0.006853590719401836,
0.002436903538182378,
0.3706290125846863,
0.32226863503456... |
func HttpMapStatics(m map[string]string) {
for u, root := range m {
prefix := u
l := len(prefix)
if prefix[l-1] == '/' {
prefix = prefix[0 : l-1]
}
log.Printf("Handling %s (%s) to %s", u, prefix, root)
http.Handle(u, http.StripPrefix(prefix, http.FileServer(http.Dir(root))))
}
} | [
-1.1131772994995117,
-0.2330252230167389,
0.5247010588645935,
0.3722015917301178,
-0.22945436835289001,
0.06436721235513687,
-0.04677991941571236,
-0.1609346568584442,
-0.3634096384048462,
-0.06358863413333893,
0.17826688289642334,
-0.1476963311433792,
0.3936470150947571,
0.741682946681976... |
func CollectStatic(python *python.Python, dir string) error {
cmd := python.Command(nil, "manage.py", "collectstatic", "--noinput")
cmd.Dir = dir
cmd.Stdout, cmd.Stderr = os.Stdout, os.Stderr
err := cmd.Run()
if nil != err {
fmt.Println("ERROR: on collectstatic : %s", err.Error())
return err
}
return nil
} | [
-0.11543675512075424,
-0.3218482434749603,
0.8036416172981262,
0.3090077042579651,
0.05983678251504898,
0.6740240454673767,
0.13955871760845184,
-1.1215990781784058,
-0.6100677847862244,
0.41361725330352783,
-0.17638231813907623,
1.2916860580444336,
0.4971702992916107,
0.9556682109832764,
... |
func New(callback Processor) *Document {
return &Document{callback: callback}
} | [
0.08786323666572571,
-0.46495768427848816,
0.07502268254756927,
-0.20447134971618652,
-1.7725061178207397,
-0.4631536900997162,
0.010755910538136959,
0.29057398438453674,
0.11295312643051147,
0.4569116234779358,
-0.14501185715198517,
0.3869902193546295,
0.20400775969028473,
0.9831751585006... |
func (a *BaseAggregateSourced) Initialize(id string, typeName string) {
a.ID = id
a.TypeName = typeName
} | [
-0.5856078267097473,
-0.22547101974487305,
0.36373764276504517,
-0.697028636932373,
0.9143936634063721,
-0.03204462304711342,
-0.7330118417739868,
0.29293394088745117,
-0.5187909007072449,
0.15804381668567657,
0.038741908967494965,
0.943555474281311,
-0.636207103729248,
0.35058653354644775... |
func (a *BaseAggregateSourced) GetID() string {
return a.ID
} | [
1.531663417816162,
-0.09349258989095688,
0.27534303069114685,
-0.3602951467037201,
1.08809494972229,
1.004866600036621,
0.8083009719848633,
0.6335351467132568,
1.107896327972412,
-0.4332415759563446,
0.7100130915641785,
0.12837719917297363,
-0.09774759411811829,
0.543944239616394,
0.0663... |
func (a *BaseAggregateSourced) GetTypeName() string {
return a.TypeName
} | [
0.39918723702430725,
-0.1985241174697876,
0.4081885516643524,
-0.3028300404548645,
0.3377630412578583,
0.06229468807578087,
0.982404887676239,
0.3181152045726776,
0.12997664511203766,
-0.2283557653427124,
0.8505001664161682,
-0.44694897532463074,
-0.11039458960294724,
0.4358236491680145,
... |
func (a *BaseAggregateSourced) StoreEvent(data interface{}) {
v := a.GetVersion() + len(a.events) + 1
timestamp := GetTimestamp()
_, typeName := GetTypeName(data)
e := &Event{
Type: typeName,
Timestamp: timestamp,
AggregateID: a.ID,
AggregateType: a.TypeName,
Version: v,
Data: ... | [
-0.10256032645702362,
-0.03331168740987778,
0.5069073438644409,
-0.6720101833343506,
0.3069097101688385,
0.7849488258361816,
0.11159444600343704,
-0.042072806507349014,
0.8765291571617126,
-0.36984145641326904,
-0.3380037546157837,
0.3468921482563019,
-0.2662633955478668,
0.363473474979400... |
func (a *BaseAggregateSourced) GetVersion() int {
return a.Version
} | [
0.8409497141838074,
0.12570858001708984,
0.27814653515815735,
-0.1496269702911377,
0.9621562957763672,
0.25975045561790466,
1.5538409948349,
0.6907500624656677,
-0.05198883265256882,
-0.30812495946884155,
0.09106185287237167,
-0.0912189930677414,
0.09795336425304413,
0.6340835690498352,
... |
func (a *BaseAggregateSourced) IncrementVersion() {
a.Version = a.Version + 1
} | [
-0.037622593343257904,
-0.6616477966308594,
0.30823302268981934,
0.024596787989139557,
0.6357722282409668,
0.16004067659378052,
0.8023130297660828,
0.7433852553367615,
0.430562287569046,
-0.13813410699367523,
-0.04753947630524635,
-0.028177207335829735,
0.6043824553489685,
0.88395726680755... |
func (a *BaseAggregateSourced) Events() []*Event {
return a.events
} | [
0.2305171936750412,
-0.3038487136363983,
0.2660433351993561,
-0.36673852801322937,
0.7330635190010071,
0.7610562443733215,
0.3846936821937561,
0.4346112906932831,
0.844257116317749,
-0.813159704208374,
0.46531373262405396,
0.6694778800010681,
0.30267333984375,
0.7187385559082031,
0.25153... |
func (a *BaseAggregateSourced) ClearEvents() {
a.events = nil
} | [
1.1274685859680176,
0.5728577971458435,
0.07133153080940247,
-0.6336310505867004,
0.2722970247268677,
0.2858740985393524,
0.28868213295936584,
-0.0092313839122653,
0.5628378391265869,
-0.2834342122077942,
1.2013496160507202,
0.5432340502738953,
-0.006596987135708332,
0.25354376435279846,
... |
func (fn DeleteReposOwnerRepoKeysKeyIDHandlerFunc) Handle(params DeleteReposOwnerRepoKeysKeyIDParams) middleware.Responder {
return fn(params)
} | [
0.41124624013900757,
-0.26227954030036926,
0.36746859550476074,
0.20089203119277954,
0.03867417573928833,
-0.6396546959877014,
-0.007043036632239819,
0.12283860146999359,
0.25411278009414673,
0.01945592276751995,
0.10431788116693497,
0.22024673223495483,
-0.34177637100219727,
0.04325020313... |
func NewDeleteReposOwnerRepoKeysKeyID(ctx *middleware.Context, handler DeleteReposOwnerRepoKeysKeyIDHandler) *DeleteReposOwnerRepoKeysKeyID {
return &DeleteReposOwnerRepoKeysKeyID{Context: ctx, Handler: handler}
} | [
0.3538457155227661,
-0.8524765968322754,
0.1428752988576889,
-0.3203088939189911,
-0.28255680203437805,
-0.07573466747999191,
-0.3556470274925232,
0.4288649559020996,
0.37305447459220886,
0.40265050530433655,
-0.5148540139198303,
0.8499878644943237,
0.42339375615119934,
0.7008850574493408,... |
func TestExecute(t *testing.T) {
ctx := context.Background()
// Clear pre-existing golden files to avoid leaving stale ones around.
if *updateGoldens {
files, err := filepath.Glob(filepath.Join(*goldensDir, "*.golden.json"))
if err != nil {
t.Fatal(err)
}
for _, f := range files {
if err := os.Remove(... | [
0.2862325608730316,
0.2929791212081909,
0.6992601752281189,
0.3613911271095276,
1.2840967178344727,
-0.05709870904684067,
0.7178541421890259,
-0.3668629825115204,
0.050126705318689346,
0.07428213953971863,
-0.30677396059036255,
0.39612242579460144,
0.2628847658634186,
0.43028560280799866,
... |
func readShards(t *testing.T, path string) []testsharder.Shard {
var shards []testsharder.Shard
if err := jsonutil.ReadFromFile(path, &shards); err != nil {
if errors.Is(err, os.ErrNotExist) && strings.HasPrefix(path, *goldensDir) {
t.Fatalf("Golden file for case %q does not exist. To create it, run tools/integr... | [
-0.3409886062145233,
-0.40528014302253723,
0.6374757289886475,
-0.2770651876926422,
0.15575604140758514,
0.6034711599349976,
0.2052558958530426,
-1.4834412336349487,
0.09487970918416977,
0.43573927879333496,
0.12427600473165512,
0.8758142590522766,
0.00921439379453659,
-0.2626521587371826,... |
func NewEnvironment() *Environment {
return &Environment{
protos: make(map[string]Fetcher),
origins: make(map[string]Fetcher),
}
} | [
-0.09990487992763519,
-0.8514344692230225,
-0.07042954862117767,
0.08447791635990143,
-0.6665446162223816,
0.49729081988334656,
0.3717111349105835,
-0.24080881476402283,
-0.03851770982146263,
-0.24762767553329468,
-0.1664370745420456,
0.5085173845291138,
0.3628914952278137,
0.4829949140548... |
func (e *Environment) Clone() *Environment {
newEnv := NewEnvironment()
for proto, val := range e.protos {
newEnv.protos[proto] = val
}
for origin, val := range e.origins {
newEnv.origins[origin] = val
}
return newEnv
} | [
-0.7322447299957275,
-1.2828236818313599,
0.3506765365600586,
0.4937748312950134,
-0.4247904419898987,
1.4394441843032837,
0.05674631893634796,
0.11856445670127869,
0.06598705798387527,
0.44656211137771606,
0.14637969434261322,
0.39167484641075134,
-0.2525874674320221,
0.24204811453819275,... |
func (e *Environment) Browse(initialUri string) (*Resolver, error) {
u, err := url.Parse(initialUri)
if err != nil {
return nil, err
}
if !u.IsAbs() {
return nil, errors.New("Provided URI was not absolute, cannot browse relative URIs")
}
log.Println("Starting to browse at", initialUri)
// TODO: ensure the ... | [
0.08560286462306976,
0.007883619517087936,
0.5908889174461365,
0.528096616268158,
0.3942338824272156,
-0.018129032105207443,
0.04797378554940224,
-0.26273322105407715,
-0.29671114683151245,
-1.1977289915084839,
0.5444863438606262,
0.6100621819496155,
-0.3465583920478821,
0.4641902148723602... |
func (r *Resolver) ResolveURI(uri string) (string, error) {
u, err := r.url.Parse(uri)
if err != nil {
return "", err
}
log.Println("Resolved", uri, "to", u.String())
return u.String(), nil
} | [
-1.1150083541870117,
-0.07446838915348053,
0.49117234349250793,
-0.1047474592924118,
-0.26948073506355286,
-0.4003038704395294,
-0.5332124829292297,
0.39663010835647583,
0.1519412249326706,
-1.0600882768630981,
-0.2539408206939697,
-0.3472272455692291,
-0.6006351709365845,
-0.8874177932739... |
func getEnvVar(v string) (string, error) {
var err error
envVar := os.Getenv(v)
if len(envVar) < 1 {
err = errors.New("Could not retrieve Environment variable, or it had no content. " + v)
}
return envVar, err
} | [
-0.5165532827377319,
-0.143144890666008,
0.30295032262802124,
-0.30245867371559143,
-0.37368229031562805,
0.0776103287935257,
0.3624247908592224,
-0.8247812986373901,
-0.35815709829330444,
0.03282792493700981,
0.16361093521118164,
1.0285180807113647,
-0.2816084921360016,
0.5434834361076355... |
func getAllLogLevel() string {
var levelStrings []string
for _, level := range log.AllLevels {
levelStrings = append(levelStrings, level.String())
}
return strings.Join(levelStrings, ",")
} | [
0.24807095527648926,
-0.74367356300354,
0.5922163128852844,
0.16806133091449738,
-0.17737551033496857,
0.47441038489341736,
-1.8435171842575073,
-0.6771568059921265,
0.3870902359485626,
-0.09126719832420349,
-0.014807330444455147,
0.9070433378219604,
-0.22976814210414886,
0.399982184171676... |
func notifyChanLimiter(maxSpeed time.Duration, inChan chan struct{}, outChan chan struct{}) {
// we wait for an initial inChan message and then watch for spam to stop.
// when inChan closes, the func exits
for range inChan {
log.Infoln("channel notify limiter witnessed an upstream message on inChan")
// Label ... | [
0.05608609318733215,
-0.503868579864502,
0.3941595256328583,
-0.3403225243091583,
-0.7059153914451599,
0.0143157122656703,
-0.17209084331989288,
0.151603564620018,
-0.7315213084220886,
0.08616054803133011,
-0.2917652428150177,
0.8348456025123596,
-0.22164581716060638,
0.04985137656331062,
... |
func containsString(s string, list []string) bool {
for _, str := range list {
if s == str {
return true
}
}
return false
} | [
-0.049832358956336975,
-0.9579536318778992,
-0.01090239267796278,
0.46715033054351807,
-0.08269151300191879,
0.16720163822174072,
-1.1375967264175415,
-0.039736177772283554,
0.16792912781238556,
0.12117297202348709,
-0.8627674579620361,
0.04082051292061806,
-0.09850266575813293,
0.09389276... |
func ValidateDate(value string) bool {
_, err := ParseApplicationDate(value)
if err == nil {
return true
}
return false
} | [
0.24531647562980652,
0.3108418583869934,
0.8944521546363831,
0.9817925095558167,
-1.058652639389038,
1.166554570198059,
-0.12260213494300842,
-0.6539368033409119,
0.34254997968673706,
-0.4676753580570221,
0.6112907528877258,
-0.268934428691864,
-0.8097836971282959,
1.2138582468032837,
0.... |
func ParseApplicationDate(value string) (time.Time, error) {
layout := "02-01-2006" // magical reference date Mon Jan 2 15:04:05 MST 2006
return time.Parse(layout, value)
} | [
0.8301379680633545,
-0.24463637173175812,
0.6268736720085144,
0.31607362627983093,
-1.3976023197174072,
0.4859955608844757,
0.4355880320072174,
-0.4359283447265625,
0.7648949027061462,
0.9113022089004517,
1.1116933822631836,
0.10870564728975296,
0.3850777745246887,
0.980169415473938,
0.0... |
func PossibleAccessTierValues() []AccessTier {
return []AccessTier{Cool, Hot}
} | [
-0.8184269070625305,
-1.2908111810684204,
0.07156214863061905,
0.426726758480072,
-1.4706398248672485,
-0.08896040916442871,
-0.7599987387657166,
0.7830036282539368,
0.07405851036310196,
-0.6408036351203918,
0.026036538183689117,
0.5168835520744324,
0.6522226929664612,
1.1692596673965454,
... |
func PossibleAccountExpandValues() []AccountExpand {
return []AccountExpand{AccountExpandBlobRestoreStatus, AccountExpandGeoReplicationStats}
} | [
0.22718767821788788,
0.41517624258995056,
0.1043163388967514,
1.471535086631775,
-0.7491096258163452,
0.4720578193664551,
-0.18560251593589783,
0.5172648429870605,
1.3752286434173584,
-1.1307668685913086,
-0.019715948030352592,
0.3612280786037445,
0.2318517565727234,
0.9883779287338257,
... |
func PossibleAccountStatusValues() []AccountStatus {
return []AccountStatus{Available, Unavailable}
} | [
-0.2899637520313263,
-0.8288723230361938,
-0.07358919829130173,
0.514847993850708,
-0.5989899039268494,
0.9131344556808472,
-0.9722083806991577,
0.8618752956390381,
0.3814676105976105,
-0.4415808916091919,
-0.630190908908844,
0.3211609721183777,
0.858295202255249,
0.5868684649467468,
0.1... |
func PossibleActionValues() []Action {
return []Action{Allow}
} | [
0.010690601542592049,
-0.4963175654411316,
0.3793785870075226,
1.4903942346572876,
-0.9199981689453125,
0.711144208908081,
-0.1684550642967224,
0.3295081853866577,
-0.29659000039100647,
-0.09141869097948074,
-0.22003202140331268,
0.6203740835189819,
0.28519928455352783,
0.8457594513893127,... |
func PossibleAction1Values() []Action1 {
return []Action1{Acquire, Break, Change, Release, Renew}
} | [
-0.8599470853805542,
-0.8575268983840942,
0.34837737679481506,
2.054257392883301,
-0.46424600481987,
0.9098081588745117,
-0.48547568917274475,
-0.08415532857179642,
-0.17342568933963776,
0.763735294342041,
-0.34264594316482544,
0.9479074478149414,
0.05151349678635597,
0.9901386499404907,
... |
func PossibleBlobRestoreProgressStatusValues() []BlobRestoreProgressStatus {
return []BlobRestoreProgressStatus{Complete, Failed, InProgress}
} | [
0.7682437896728516,
-0.8946073651313782,
0.16310584545135498,
0.7217229604721069,
-0.15657716989517212,
0.7807096838951111,
-0.002143590012565255,
0.7727153301239014,
-0.29648086428642273,
-0.6671663522720337,
-1.3064290285110474,
-0.27566468715667725,
-1.3288792371749878,
-0.6971841454505... |
func PossibleBypassValues() []Bypass {
return []Bypass{AzureServices, Logging, Metrics, None}
} | [
-0.3060242235660553,
-0.17173244059085846,
0.33103036880493164,
0.683559775352478,
0.24238911271095276,
0.19277657568454742,
0.22134517133235931,
-0.5374280214309692,
-0.24711091816425323,
-0.6179847717285156,
-0.3218553960323334,
0.889979898929596,
0.11805838346481323,
0.8897891640663147,... |
func PossibleDefaultActionValues() []DefaultAction {
return []DefaultAction{DefaultActionAllow, DefaultActionDeny}
} | [
-0.508699893951416,
-0.4560498595237732,
0.2953650951385498,
1.3921003341674805,
0.42901554703712463,
0.055579014122486115,
-0.04790274798870087,
-0.5556344985961914,
0.005410246085375547,
-0.511946976184845,
-0.6335680484771729,
0.03856714442372322,
-0.05439526587724686,
1.547604441642761... |
func PossibleDirectoryServiceOptionsValues() []DirectoryServiceOptions {
return []DirectoryServiceOptions{DirectoryServiceOptionsAADDS, DirectoryServiceOptionsAD, DirectoryServiceOptionsNone}
} | [
-0.6833471059799194,
-0.20864565670490265,
0.2829582095146179,
0.6757004261016846,
-0.23596876859664917,
0.13338738679885864,
-0.025723572820425034,
-0.7244741320610046,
0.9256677627563477,
-0.7463928461074829,
0.1422325074672699,
0.589767336845398,
0.308235228061676,
1.4499385356903076,
... |
func PossibleEnabledProtocolsValues() []EnabledProtocols {
return []EnabledProtocols{NFS, SMB}
} | [
-0.20036771893501282,
-0.19170743227005005,
0.11583990603685379,
1.194338321685791,
-0.9157323241233826,
0.5197623372077942,
-0.6906265020370483,
-0.11292342841625214,
0.41015660762786865,
-0.469423770904541,
-0.8910746574401855,
0.1671101152896881,
-0.9810242652893066,
0.6151518821716309,... |
func PossibleEncryptionScopeSourceValues() []EncryptionScopeSource {
return []EncryptionScopeSource{MicrosoftKeyVault, MicrosoftStorage}
} | [
-0.9882480502128601,
0.12315043061971664,
0.019254814833402634,
0.3357430100440979,
-0.22852402925491333,
-0.34089598059654236,
-0.5676617622375488,
-0.053346771746873856,
0.9467639327049255,
0.8523446321487427,
-0.8486908674240112,
-0.07436623424291611,
0.0026508853770792484,
0.4344090223... |
func PossibleEncryptionScopeStateValues() []EncryptionScopeState {
return []EncryptionScopeState{Disabled, Enabled}
} | [
-1.1700419187545776,
-0.09366922825574875,
0.07728032022714615,
0.23507267236709595,
-0.4406106173992157,
-0.022878633812069893,
-0.6650530695915222,
-0.14529535174369812,
0.9976353645324707,
0.958200216293335,
-0.6058468222618103,
0.05965364724397659,
-0.4910043179988861,
0.62556815147399... |
func PossibleGeoReplicationStatusValues() []GeoReplicationStatus {
return []GeoReplicationStatus{GeoReplicationStatusBootstrap, GeoReplicationStatusLive, GeoReplicationStatusUnavailable}
} | [
-0.20405825972557068,
-0.24069154262542725,
0.1467450112104416,
0.573962390422821,
-0.268534392118454,
0.6823486685752869,
-0.21704630553722382,
0.641297459602356,
0.15993012487888336,
0.4170725643634796,
-0.6316627860069275,
-0.12359891831874847,
0.35133689641952515,
0.29289138317108154,
... |
func PossibleGetShareExpandValues() []GetShareExpand {
return []GetShareExpand{Stats}
} | [
0.14708133041858673,
0.9596676230430603,
0.3789913058280945,
1.3998849391937256,
-0.3694952726364136,
0.06078170984983444,
-0.3852950930595398,
-0.07546556740999222,
0.6407283544540405,
-1.0623176097869873,
-0.2558719515800476,
0.29184308648109436,
0.4637063145637512,
1.0370603799819946,
... |
func PossibleHTTPProtocolValues() []HTTPProtocol {
return []HTTPProtocol{HTTPS, Httpshttp}
} | [
-0.5319181084632874,
-0.39849579334259033,
0.25845766067504883,
0.9334225654602051,
-0.9254065752029419,
1.1114163398742676,
-1.3414762020111084,
-0.4533829987049103,
-0.5664088726043701,
-0.5333933234214783,
-1.1362658739089966,
0.21774789690971375,
-0.22260195016860962,
0.709645330905914... |
func PossibleImmutabilityPolicyStateValues() []ImmutabilityPolicyState {
return []ImmutabilityPolicyState{Locked, Unlocked}
} | [
-0.6535483598709106,
-0.6369094848632812,
0.1070743128657341,
0.8302618265151978,
-0.7288373708724976,
0.5025151371955872,
-0.6456926465034485,
-0.0267659779638052,
1.057434320449829,
-0.24452920258045197,
-0.4314332604408264,
-0.22543923556804657,
-1.2581461668014526,
0.10900670289993286,... |
func PossibleImmutabilityPolicyUpdateTypeValues() []ImmutabilityPolicyUpdateType {
return []ImmutabilityPolicyUpdateType{Extend, Lock, Put}
} | [
-1.1428699493408203,
-0.18210607767105103,
0.6546348929405212,
1.0502375364303589,
-0.26515617966651917,
0.9270429611206055,
-0.5247015357017517,
-0.00968072097748518,
0.3860548436641693,
0.4293425679206848,
-0.8987123966217041,
0.15541335940361023,
-1.154059648513794,
0.30183833837509155,... |
func PossibleKeyPermissionValues() []KeyPermission {
return []KeyPermission{Full, Read}
} | [
-0.6090566515922546,
0.2178916335105896,
0.29091137647628784,
1.2016981840133667,
-1.2798492908477783,
-0.13825222849845886,
-1.031457781791687,
0.44015634059906006,
-0.0803653821349144,
-0.06678205728530884,
-0.4454224407672882,
-0.6135221719741821,
-0.06771346926689148,
0.317361027002334... |
func PossibleKeySourceValues() []KeySource {
return []KeySource{KeySourceMicrosoftKeyvault, KeySourceMicrosoftStorage}
} | [
-0.1330740749835968,
0.4263182580471039,
0.08154401928186417,
0.8133692741394043,
-0.9177095293998718,
-0.3857300579547882,
-1.4972658157348633,
0.5251933336257935,
-0.14680315554141998,
-0.29514604806900024,
-1.2262401580810547,
0.08231913298368454,
-0.15963682532310486,
0.626798927783966... |
func PossibleKeyTypeValues() []KeyType {
return []KeyType{KeyTypeAccount, KeyTypeService}
} | [
-0.33555424213409424,
0.2820934057235718,
0.20451557636260986,
1.4298937320709229,
-0.42368727922439575,
0.01998015306890011,
-1.5092133283615112,
-0.2633998692035675,
0.3687905967235565,
-0.29185569286346436,
-1.1285127401351929,
0.29047372937202454,
-0.09610825777053833,
1.34276604652404... |
func PossibleKindValues() []Kind {
return []Kind{BlobStorage, BlockBlobStorage, FileStorage, Storage, StorageV2}
} | [
0.13343976438045502,
-0.5756203532218933,
0.35971376299858093,
1.9283527135849,
-0.3763379156589508,
0.34252986311912537,
-0.7962464094161987,
0.21323244273662567,
-0.4023536741733551,
-0.14004375040531158,
-0.7609872817993164,
0.7426072359085083,
-0.13680347800254822,
1.4608076810836792,
... |
func PossibleLargeFileSharesStateValues() []LargeFileSharesState {
return []LargeFileSharesState{LargeFileSharesStateDisabled, LargeFileSharesStateEnabled}
} | [
0.49942293763160706,
0.4145607352256775,
0.1489313691854477,
0.24662087857723236,
-0.33294397592544556,
0.4990706741809845,
-0.6935417056083679,
1.2859611511230469,
0.38195449113845825,
-1.1341359615325928,
-0.6134213805198669,
-0.9794484972953796,
-0.052046503871679306,
0.7929444313049316... |
func PossibleLeaseDurationValues() []LeaseDuration {
return []LeaseDuration{Fixed, Infinite}
} | [
0.04200020432472229,
-0.4522683918476105,
0.13383589684963226,
0.5662000775337219,
-0.5207635760307312,
0.8624402284622192,
-0.8333762288093567,
0.7305957078933716,
0.6734558939933777,
-0.8670682311058044,
-0.946102499961853,
0.3872639834880829,
0.25598621368408203,
1.48932945728302,
-0.... |
func PossibleLeaseStateValues() []LeaseState {
return []LeaseState{LeaseStateAvailable, LeaseStateBreaking, LeaseStateBroken, LeaseStateExpired, LeaseStateLeased}
} | [
-0.14648672938346863,
-0.6869805455207825,
0.30308297276496887,
0.050824474543333054,
-1.1675639152526855,
0.37942689657211304,
-1.5291364192962646,
0.767718493938446,
0.9611098766326904,
-0.7308890223503113,
-0.5091607570648193,
-0.16931691765785217,
0.0938572883605957,
0.759704053401947,... |
func PossibleLeaseStatusValues() []LeaseStatus {
return []LeaseStatus{LeaseStatusLocked, LeaseStatusUnlocked}
} | [
0.16042955219745636,
-0.7528238296508789,
0.13903197646141052,
-0.015474697574973106,
-0.5351172089576721,
0.7409098148345947,
-1.4048573970794678,
0.527129054069519,
0.8361213207244873,
-0.356233686208725,
-0.8643748760223389,
0.3894997537136078,
0.6825531721115112,
0.9768114686012268,
... |
func PossibleListContainersIncludeValues() []ListContainersInclude {
return []ListContainersInclude{Deleted}
} | [
0.48285573720932007,
-0.7472670674324036,
0.50818932056427,
0.9700098633766174,
-0.9090539216995239,
-0.012547059915959835,
-0.42394328117370605,
0.6384426951408386,
1.7787824869155884,
-1.378548502922058,
-0.5754759907722473,
0.38836610317230225,
0.4625747501850128,
0.9794412851333618,
... |
func PossibleListKeyExpandValues() []ListKeyExpand {
return []ListKeyExpand{Kerb}
} | [
-0.37820863723754883,
-0.13515500724315643,
0.14331558346748352,
1.2642730474472046,
-1.0603829622268677,
0.3041011393070221,
-2.008758068084717,
0.25692448019981384,
0.7941449880599976,
-0.5168595910072327,
-0.7430022358894348,
0.2643161714076996,
0.2724657356739044,
1.980644941329956,
... |
func PossibleListSharesExpandValues() []ListSharesExpand {
return []ListSharesExpand{ListSharesExpandDeleted}
} | [
0.2145143747329712,
0.5133176445960999,
0.38097381591796875,
1.3943747282028198,
-0.6722120046615601,
0.38790959119796753,
-0.8162702918052673,
0.9630872011184692,
0.8343061208724976,
-0.7233312726020813,
-0.6633597612380981,
0.05784442275762558,
0.45792481303215027,
1.5052984952926636,
... |
func PossibleMinimumTLSVersionValues() []MinimumTLSVersion {
return []MinimumTLSVersion{TLS10, TLS11, TLS12}
} | [
-0.3294196128845215,
-0.9868926405906677,
0.13867829740047455,
0.5380005836486816,
-1.3603845834732056,
0.7222825288772583,
-1.2110093832015991,
-0.7529336810112,
0.46883249282836914,
-0.4737507998943329,
-1.1133747100830078,
-0.28367796540260315,
-0.3585117757320404,
0.982264518737793,
... |
func PossiblePermissionsValues() []Permissions {
return []Permissions{A, C, D, L, P, R, U, W}
} | [
-0.5468383431434631,
0.345268189907074,
0.400795578956604,
0.6178615093231201,
-0.6644546389579773,
0.08484140783548355,
-0.20548352599143982,
-0.20926222205162048,
-0.2551095485687256,
-0.6880820989608765,
0.0841287299990654,
-0.37286198139190674,
0.01670840010046959,
0.5296686887741089,
... |
func PossiblePrivateEndpointConnectionProvisioningStateValues() []PrivateEndpointConnectionProvisioningState {
return []PrivateEndpointConnectionProvisioningState{PrivateEndpointConnectionProvisioningStateCreating, PrivateEndpointConnectionProvisioningStateDeleting, PrivateEndpointConnectionProvisioningStateFailed, Pr... | [
-0.6899598836898804,
-0.4892610013484955,
0.381052702665329,
0.3316786587238312,
0.12687532603740692,
-0.0825837031006813,
-1.2575942277908325,
0.3200189471244812,
0.5821852087974548,
0.22582963109016418,
0.36315903067588806,
-1.124828577041626,
-0.4327186942100525,
-0.4095195531845093,
... |
func PossiblePrivateEndpointServiceConnectionStatusValues() []PrivateEndpointServiceConnectionStatus {
return []PrivateEndpointServiceConnectionStatus{Approved, Pending, Rejected}
} | [
-0.5699002146720886,
-0.6453643441200256,
0.20719484984874725,
0.14360657334327698,
-0.27252674102783203,
0.28631073236465454,
-1.39967679977417,
0.19539709389209747,
-0.151760071516037,
-0.4141155183315277,
0.011531186290085316,
-0.6485737562179565,
0.035040631890296936,
0.532593309879303... |
func PossibleProvisioningStateValues() []ProvisioningState {
return []ProvisioningState{Creating, ResolvingDNS, Succeeded}
} | [
-0.6931986212730408,
0.7928742170333862,
-0.1897907257080078,
1.0220022201538086,
-0.6127803921699524,
0.4921068251132965,
-1.3014520406723022,
0.588184118270874,
0.29549455642700195,
-0.2269321233034134,
-0.724665641784668,
-1.0171825885772705,
0.12350883334875107,
0.8218159675598145,
0... |
func PossiblePublicAccessValues() []PublicAccess {
return []PublicAccess{PublicAccessBlob, PublicAccessContainer, PublicAccessNone}
} | [
-0.1863490641117096,
-0.5194234251976013,
0.4556492269039154,
0.6669228672981262,
-1.2878235578536987,
0.2608661353588104,
0.3944821059703827,
0.05341950058937073,
-0.6587159037590027,
-1.0922176837921143,
-0.021176213398575783,
0.27221792936325073,
0.33039620518684387,
1.3037155866622925,... |
func PossibleReasonValues() []Reason {
return []Reason{AccountNameInvalid, AlreadyExists}
} | [
0.11782049387693405,
-0.4069713056087494,
0.12882429361343384,
0.9177870750427246,
0.07512916624546051,
0.5498191714286804,
-0.4127929210662842,
0.05290023237466812,
0.6624894142150879,
-0.18128471076488495,
-0.4419219493865967,
0.6084839105606079,
-0.033307019621133804,
0.8660834431648254... |
func PossibleReasonCodeValues() []ReasonCode {
return []ReasonCode{NotAvailableForSubscription, QuotaID}
} | [
0.09816652536392212,
-0.5551521182060242,
0.24865128099918365,
1.1177071332931519,
-0.1877964437007904,
0.10318992286920547,
-1.1030904054641724,
0.07910412549972534,
0.38680127263069153,
-0.3609910309314728,
0.08825377374887466,
1.1010253429412842,
0.4763736128807068,
0.6555204391479492,
... |
func PossibleRootSquashTypeValues() []RootSquashType {
return []RootSquashType{AllSquash, NoRootSquash, RootSquash}
} | [
0.9677126407623291,
-0.9583046436309814,
0.3278902471065521,
0.7694177031517029,
-0.24096253514289856,
0.5505799651145935,
-0.5779301524162292,
-0.294527530670166,
0.6659035086631775,
-1.1454541683197021,
-0.8628863096237183,
0.3982665538787842,
0.493682861328125,
1.6660207509994507,
0.0... |
func PossibleRoutingChoiceValues() []RoutingChoice {
return []RoutingChoice{InternetRouting, MicrosoftRouting}
} | [
-1.3411285877227783,
-0.02715369500219822,
0.21688438951969147,
0.9305092096328735,
-0.05108795687556267,
0.8418878316879272,
-0.8573633432388306,
0.2367083877325058,
0.22392538189888,
0.3112638592720032,
-0.2352374792098999,
0.0794840082526207,
0.20236808061599731,
0.4051513075828552,
0... |
func PossibleServicesValues() []Services {
return []Services{B, F, Q, T}
} | [
-0.5891942977905273,
0.3239244222640991,
0.33876392245292664,
0.4449574947357178,
-0.28102588653564453,
0.6639148592948914,
-0.5876585245132446,
-0.6044191718101501,
-0.4490777552127838,
-1.1106290817260742,
-0.1918773055076599,
-0.47914016246795654,
0.07082721590995789,
0.6701523065567017... |
func PossibleShareAccessTierValues() []ShareAccessTier {
return []ShareAccessTier{ShareAccessTierCool, ShareAccessTierHot, ShareAccessTierPremium, ShareAccessTierTransactionOptimized}
} | [
0.13851810991764069,
-0.8483744263648987,
0.524653971195221,
0.46373671293258667,
-0.8705667853355408,
-0.16689442098140717,
0.2512698471546173,
0.25690150260925293,
0.05205139145255089,
-0.9955959916114807,
0.3936321437358856,
0.39704328775405884,
0.744868278503418,
0.9615780711174011,
... |
func PossibleSignedResourceValues() []SignedResource {
return []SignedResource{SignedResourceB, SignedResourceC, SignedResourceF, SignedResourceS}
} | [
0.15888026356697083,
-1.17801833152771,
0.082204170525074,
0.40475091338157654,
-0.2245633453130722,
0.2702282965183258,
-0.30317097902297974,
0.45651692152023315,
0.2716023921966553,
-0.8492721915245056,
-0.7172843813896179,
-0.7837775945663452,
-0.502278745174408,
0.8594993352890015,
-... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.