text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func (desc *PdfFontDescriptor) ToPdfObject() core.PdfObject {
d := core.MakeDict()
if desc.container == nil {
desc.container = &core.PdfIndirectObject{}
}
desc.container.PdfObject = d
d.Set("Type", core.MakeName("FontDescriptor"))
if desc.FontName != nil {
d.Set("FontName", desc.FontName)
}
if desc.FontF... | [
0.24269746243953705,
-0.4135063886642456,
0.9034213423728943,
-1.3973392248153687,
-0.601173460483551,
-0.17396889626979828,
0.3923363983631134,
-0.7884185910224915,
-0.34413060545921326,
-0.7404406070709229,
0.07122062891721725,
0.4986060857772827,
0.5861456990242004,
0.2670958638191223,
... |
func NewTestConfig(t *testing.T, testServer *httptest.Server) config.Config {
cfg := config.New()
// Set some defaults from Testing constants
cfg.LogLevel = LogLevel
cfg.PersonalAPIKey = PersonalAPIKey
cfg.UserAgent = UserAgent
cfg.LicenseKey = LicenseKey
if testServer != nil {
cfg.Region().SetInfrastructure... | [
-0.2014664262533188,
-0.5691251754760742,
0.2563701272010803,
-0.22027793526649475,
-0.4743470549583435,
-0.3099014163017273,
-0.44314348697662354,
0.03848162665963173,
0.12681958079338074,
0.6030550003051758,
-0.25317731499671936,
0.43252620100975037,
-0.7016754746437073,
1.13970565795898... |
func NewIntegrationTestConfig(t *testing.T) config.Config {
envPersonalAPIKey := os.Getenv("NEW_RELIC_API_KEY")
envInsightsInsertKey := os.Getenv("NEW_RELIC_INSIGHTS_INSERT_KEY")
envLicenseKey := os.Getenv("NEW_RELIC_LICENSE_KEY")
envRegion := os.Getenv("NEW_RELIC_REGION")
envLogLevel := os.Getenv("NEW_RELIC_LOG_L... | [
0.216505229473114,
-0.3781696557998657,
0.4880979061126709,
-0.5671449899673462,
-0.22654195129871368,
-0.021036513149738312,
0.17472323775291443,
0.09127793461084366,
-0.22993597388267517,
0.9540324807167053,
0.09587408602237701,
-0.04685667157173157,
-0.8791420459747314,
0.89294749498367... |
func Bootstrap() {
err := env.Load(".env")
if err != nil {
log.Fatal("Error loading .env file", err)
os.Exit(1)
}
i18n.MustLoadTranslationFile("resources/lang/en-US.yaml")
routerInstance = initRouter()
} | [
0.07354771345853806,
0.16012102365493774,
0.8556158542633057,
0.17674587666988373,
0.4600878953933716,
0.13141457736492157,
0.24660702049732208,
1.0024017095565796,
-0.968824565410614,
0.6060063242912292,
-0.3603462874889374,
0.1801784634590149,
1.0564302206039429,
0.2795690596103668,
0.... |
func init() {
funcMap := template.FuncMap{
"isAccepeted": func(problemID string, haveAccepeted []string) bool {
return CheckInStringArray(problemID, haveAccepeted)
},
"haveWrong": func(x int) bool {
return x != 0
},
"i2c": func(x int) string {
s := []string{"A", "B", "C", "D", "E", "F", "G", "H", "I... | [
-0.36218273639678955,
0.7427897453308105,
0.8418720960617065,
0.1610373854637146,
0.15942685306072235,
0.46421658992767334,
-0.02656872384250164,
0.05551045387983322,
-0.30324453115463257,
-0.06337502598762512,
-0.7680774331092834,
0.22226525843143463,
0.21140633523464203,
0.30111789703369... |
func RequireAdmin(opts ...Option) func(next http.Handler) http.Handler {
opt := newOptions(opts...)
mustRender := func(w http.ResponseWriter, r *http.Request, renderer render.Renderer) {
if err := render.Render(w, r, renderer); err != nil {
opt.Logger.Err(err).Msgf("failed to write response for ocs request %s o... | [
-0.24393850564956665,
0.3394739627838135,
0.8184131979942322,
-0.21127578616142273,
-0.5501194000244141,
-0.19053827226161957,
-0.2591967284679413,
-0.9699611663818359,
0.9870860576629639,
0.33523139357566833,
1.3704159259796143,
0.6600198149681091,
-0.4941806197166443,
0.4901505708694458,... |
func NewNameFormSchemaViaGenericSchema(generic *GenericSchema) (result *NameFormSchema, err error) {
if "" == generic.NumericOID {
err = ErrMissingNumericOID
return
}
objectClass := generic.getValueOfParameterizedKeyword("OC")
if "" == objectClass {
err = &ErrMissingField{
FieldName: "OC",
}
return
}
... | [
-0.7219704985618591,
-0.6484096050262451,
0.5606046915054321,
-0.13079707324504852,
-0.47087597846984863,
0.16289159655570984,
-0.6614241003990173,
-0.7164835333824158,
-0.20143069326877594,
0.1454937756061554,
-0.34467148780822754,
0.08231714367866516,
0.13714301586151123,
0.8582037687301... |
func ParseNameFormSchema(schemaText string) (nameFormSchema *NameFormSchema, err error) {
genericSchema, err := Parse(schemaText)
if nil != err {
return
}
return NewNameFormSchemaViaGenericSchema(genericSchema)
} | [
-0.8238990902900696,
-0.10535741597414017,
0.24745573103427887,
0.2673250138759613,
-1.1763861179351807,
-0.06605788320302963,
-0.835871696472168,
-0.11665039509534836,
0.13469290733337402,
-0.18007200956344604,
-1.119431495666504,
-0.7027135491371155,
-0.3616807162761688,
0.96950787305831... |
func NewElasticBeanstalkApplicationVersion(properties ElasticBeanstalkApplicationVersionProperties, deps ...interface{}) ElasticBeanstalkApplicationVersion {
return ElasticBeanstalkApplicationVersion{
Type: "AWS::ElasticBeanstalk::ApplicationVersion",
Properties: properties,
DependsOn: deps,
}
} | [
0.5376803874969482,
-1.450366735458374,
0.20385098457336426,
0.4700860381126404,
-0.5467119812965393,
0.0430268831551075,
-0.5511085391044617,
-0.44053611159324646,
-0.08390255272388458,
0.735310435295105,
-0.22731944918632507,
-0.3010449707508087,
1.084639549255371,
0.8037394285202026,
... |
func NewStepCreateBlockStorageInstance(conn *ncloud.Conn, ui packer.Ui, config *Config) *StepCreateBlockStorageInstance {
var step = &StepCreateBlockStorageInstance{
Conn: conn,
Say: func(message string) { ui.Say(message) },
Error: func(e error) { ui.Error(e.Error()) },
Config: config,
}
step.CreateBl... | [
0.13069678843021393,
0.16608422994613647,
0.18844766914844513,
0.6700533628463745,
0.08767212927341461,
0.46897947788238525,
0.18853642046451569,
-0.015235292725265026,
-0.9395036101341248,
0.28600820899009705,
-0.8700675368309021,
-0.6153560876846313,
-0.9019798040390015,
1.14299964904785... |
func BatchCreateFriendInfoEntity(items []interface{}) []*FriendInfoEntity {
friends := make([]*FriendInfoEntity, len(items))
for k, v := range items {
friends[k] = CreateFriendInfoEntity(v.(map[string]interface{}))
}
return friends
} | [
-0.5853992104530334,
-0.9873522520065308,
0.35707980394363403,
0.49732595682144165,
1.9967252016067505,
1.1801027059555054,
-0.5724918842315674,
-0.5262293219566345,
-0.6406658291816711,
-0.16697752475738525,
-1.3948432207107544,
-0.3185625672340393,
0.19971105456352234,
0.7111205458641052... |
func EqualSubnet(subnet *net.IPNet) gomegaTypes.GomegaMatcher {
return &equalSubnetMatcher{
expected: subnet,
}
} | [
0.19341367483139038,
-0.2321581244468689,
0.260616660118103,
0.27884089946746826,
0.2690942585468292,
-0.10322948545217514,
-0.5635103583335876,
0.03670325502753258,
0.7083860635757446,
-0.38801392912864685,
-0.4400760531425476,
0.6070313453674316,
-0.025545282289385796,
0.1845718771219253... |
func (d *CSData) Write(buf []byte, off uint64) (n uint32, err error) {
if len(d.CSItems) == 0 {
err = fmt.Errorf("no chunkserver found")
return
}
for _, cs := range d.CSItems {
var c *CSClient
c, err = _cspool.Get(cs)
if err != nil {
return
}
css := []interface{}{
d.ProtocolId,
d.ChunkId,
d... | [
-0.41369307041168213,
-0.3095831274986267,
0.7558000683784485,
0.15144948661327362,
0.08355613052845001,
0.25791117548942566,
0.5269145965576172,
-0.4432400166988373,
-1.1338587999343872,
0.4142678380012512,
-0.9165878295898438,
0.3244212865829468,
-0.4945606589317322,
0.6177356243133545,
... |
func (d *CSData) Read(buf []byte, off uint64) (n uint32, err error) {
if len(d.CSItems) == 0 {
err = fmt.Errorf("no chunkserver found")
return
}
for _, cs := range d.CSItems {
var c *CSClient
c, err = _cspool.Get(cs)
if err != nil {
return
}
msg := PackCmd(CLTOCS_READ, d.ProtocolId, d.ChunkId, d.Ver... | [
-0.06516900658607483,
-0.3991850018501282,
0.7571172118186951,
-0.1322154700756073,
-0.7406901717185974,
0.32807067036628723,
0.500871479511261,
-0.37419232726097107,
-0.7408818006515503,
0.08635906875133514,
-0.21551018953323364,
0.37162742018699646,
-0.6846655011177063,
0.485956132411956... |
func (self *ChainOverlord) PeersForChain(rootHash SHA256) []string {
var peerList []string
for _, ps := range self.Peers {
if ps.Addr == addr {
peerList = append(peerList, ps.Addr)
}
}
return peerList
} | [
-0.5692768096923828,
-1.2860777378082275,
0.175571471452713,
-0.3501756191253662,
0.5359817743301392,
-0.5307399034500122,
-0.8289631605148315,
0.3345421254634857,
0.49415963888168335,
0.5038792490959167,
0.19329912960529327,
0.5705552697181702,
-0.9233654141426086,
0.6552652716636658,
0... |
func (self *ChainOverlord) BroadcastMessage(rootHash SHA256, m interface{}) {
for _, ps := range self.Peers {
if ps.RootHash == rootHash {
c := pool.Pool.Addresses[addr]
if c == nil {
log.Panic("ERROR Address does not exist")
}
pool.Pool.SendMessage(c, m)
}
}
} | [
0.09418777376413345,
-0.6129953265190125,
0.7399506568908691,
0.7680279612541199,
0.9282596111297607,
-0.484711229801178,
0.36429867148399353,
0.09114567190408707,
0.03133970871567726,
0.35639649629592896,
0.794049859046936,
1.3952140808105469,
-0.8983471989631653,
1.113130807876587,
-1.... |
func (self *ChainDataMessage) Handle(mc *gnet.MessageContext,
daemon interface{}) error {
self.c = mc
return daemon.(*Daemon).recordMessageEvent(self, mc)
} | [
0.3433004319667816,
0.4661822021007538,
0.3844931423664093,
-0.397311270236969,
1.5210013389587402,
0.06794212758541107,
-0.12955716252326965,
-1.0176153182983398,
-0.296322762966156,
-1.1232712268829346,
0.06870073825120926,
1.1212143898010254,
-1.0416510105133057,
0.7306402921676636,
0... |
func (self *ChainDataMessage) Process(d *Daemon) {
//route to channel
br := d.GetChainReplicator(self.Channel)
if br == nil {
log.Panic("ChainDataMessage, Process Chain replicator channel does not exist\n ")
}
br.CompleteRequest(ChainHash(self.Data), self.c.Conn.Addr())
//ChainHash(
br.InjectChain(self.Data)... | [
0.2295592874288559,
-0.008323930203914642,
0.5274935960769653,
-1.2488435506820679,
1.5042775869369507,
-0.02513214200735092,
-0.5807446837425232,
-0.21136374771595,
0.17366620898246765,
-0.24441564083099365,
-0.07571467012166977,
1.2367066144943237,
-0.294803261756897,
0.43785789608955383... |
func (self *AnnounceChainsMessage) Handle(mc *gnet.MessageContext,
daemon interface{}) error {
self.c = mc
return daemon.(*Daemon).recordMessageEvent(self, mc)
} | [
0.6805666089057922,
0.5141070485115051,
0.39129412174224854,
-0.26076453924179077,
1.4412723779678345,
0.08865649998188019,
0.03482050076127052,
-1.0718233585357666,
-0.17120541632175446,
-0.8419826626777649,
0.32007381319999695,
1.1181228160858154,
-1.2339963912963867,
0.8183742761611938,... |
func MatrixMultiply(a [][]float64, b [][]float64) ([][]float64, error) {
var err error
arows := len(a)
acols := len(a[0])
brows := len(b)
bcols := len(b[0])
err = nil
if acols != brows {
err = fmt.Errorf("Number of Columns in the Matrix a must equal number rows in b")
return nil, err
}
// creat a new t... | [
-0.5312821865081787,
-0.28817397356033325,
1.1122912168502808,
0.12280033528804779,
0.3193143904209137,
-0.21560189127922058,
-0.01907193474471569,
0.3006212115287781,
0.36240270733833313,
0.875751256942749,
0.46789345145225525,
0.05105714499950409,
-0.46250489354133606,
0.2156250923871994... |
func MatrixMultiplyVector(a [][]float64, v []float64) ([]float64, error) {
var err error
nrows := len(a)
ncols := len(a[0])
vlen := len(v)
err = nil
if ncols != vlen {
err = fmt.Errorf("Number of Columns in the Matrix must equal number rows in Vector")
return nil, err
}
// create a new array/vector with... | [
-0.6509774923324585,
-0.22666649520397186,
0.8481897711753845,
-0.05813486501574516,
0.29265096783638,
-0.2374856173992157,
0.15939366817474365,
0.2696685492992401,
0.9261345267295837,
0.8207062482833862,
0.388889878988266,
0.07541768997907639,
0.01425191294401884,
0.3881085216999054,
-0... |
func New(styleguideFolder string, layoutsFolder string, viewsFolder string, ext string) (*Atomustache, error) {
r := Atomustache{
StyleguideFolder: styleguideFolder,
LayoutsFolder: layoutsFolder,
ViewsFolder: viewsFolder,
Ext: ext,
Views: make(map[string]*Template),
// the ... | [
0.16457824409008026,
-0.20737166702747345,
0.3821977972984314,
0.041991736739873886,
-1.3337453603744507,
-0.37138456106185913,
0.2734023630619049,
-0.07614742964506149,
-0.5604658722877502,
-0.41816267371177673,
0.08100583404302597,
-0.09883737564086914,
0.486783891916275,
0.1348777264356... |
func (r *Atomustache) loadLayouts() error {
files, err := ioutil.ReadDir(r.LayoutsFolder)
if err != nil {
return errors.New("Error reading layouts folder: " + err.Error())
}
for _, file := range files {
if strings.HasSuffix(file.Name(), r.Ext) {
k := noExt(file.Name())
path := r.LayoutsFolder + "/" + f... | [
0.7241107821464539,
-0.03351980820298195,
0.5964595675468445,
-0.24190901219844818,
-1.1013723611831665,
0.13184994459152222,
0.3967735767364502,
-0.27966997027397156,
-0.4988733232021332,
-0.0811864584684372,
-0.03601044416427612,
-0.2444581836462021,
-0.37622058391571045,
0.0702341422438... |
func (l *ManifestLoader) LoadManifestDataFromPath() (*ManifestData, error) {
m, err := l.loadManifestFileFromPath()
if err != nil {
return nil, err
}
return l.manifestToManifestData(m)
} | [
0.1550893634557724,
-0.8390641212463379,
0.11381653696298599,
0.022720642387866974,
-1.6801655292510986,
0.7959268093109131,
-1.5431766510009766,
-0.16108594834804535,
0.28217750787734985,
-0.6955774426460266,
-0.1319822072982788,
0.08337435871362686,
-0.36459386348724365,
0.91419017314910... |
func (l *ManifestLoader) loadManifestFileFromPath() (*manifest.Manifest, error) {
mLoader := ManifestLoader{FS: l.FS}
// Expand the initial directory or file path into the full manifest file path.
fullFilepath, err := mLoader.MakeValidManifestPath(l.InitialPath)
if err != nil {
return nil, err
}
l.fullFilePath ... | [
0.9167614579200745,
-0.9497953653335571,
0.3292321562767029,
0.11218839883804321,
-1.2010971307754517,
0.1273917257785797,
-0.7384288311004639,
0.4730771481990814,
-0.4626510739326477,
-0.5796565413475037,
0.1802775114774704,
-0.7885422110557556,
-0.2862323820590973,
0.44633397459983826,
... |
func (l *ManifestLoader) manifestToManifestData(m *manifest.Manifest) (*ManifestData, error) {
mdata, err := l.loadManifestDataFromManifestFileAndResources(m)
if err != nil {
return nil, err
}
pkgs := []*ManifestData{}
for _, pkg := range m.Packages {
loader := &ManifestLoader{FS: l.FS, InitialPath: pkg}
pk... | [
-0.6171314120292664,
-0.8050729632377625,
0.42604464292526245,
-0.12809398770332336,
-1.3937814235687256,
0.40198516845703125,
-1.450278639793396,
0.34881943464279175,
0.7920503616333008,
-0.46915027499198914,
-0.367242693901062,
-0.3494255542755127,
0.2878839671611786,
0.5466307997703552,... |
func (*Interest) Descriptor() ([]byte, []int) {
return file_api_protobuf_spec_connection_resource_v1_proto_rawDescGZIP(), []int{0}
} | [
-0.58292555809021,
-0.006197845563292503,
0.5688595771789551,
-1.0532987117767334,
0.4910425543785095,
0.015820268541574478,
-0.06498998403549194,
-0.2805996835231781,
-0.7114058136940002,
-0.2769579589366913,
-0.5655775666236877,
0.42442816495895386,
-0.8465441465377808,
-0.28314670920372... |
func (*Service) Descriptor() ([]byte, []int) {
return file_api_protobuf_spec_connection_resource_v1_proto_rawDescGZIP(), []int{1}
} | [
-0.9404844641685486,
-0.42565232515335083,
0.3244999349117279,
-0.17963141202926636,
-0.1705562174320221,
0.0748848244547844,
-0.01858983375132084,
-0.061702679842710495,
-0.5824609994888306,
-0.29454758763313293,
-0.4669279456138611,
0.020309921354055405,
-0.5664551258087158,
0.7985415458... |
func (*GetInterestsRequests) Descriptor() ([]byte, []int) {
return file_api_protobuf_spec_connection_resource_v1_proto_rawDescGZIP(), []int{2}
} | [
-0.561236560344696,
0.92908775806427,
0.631714403629303,
-0.35611504316329956,
0.5376670956611633,
-0.11057201027870178,
0.1544063240289688,
-0.42481306195259094,
0.007137862965464592,
-0.45798560976982117,
-0.4479362964630127,
0.3642905652523041,
-1.1256986856460571,
-0.5135409832000732,
... |
func (*GetInterestsResponse) Descriptor() ([]byte, []int) {
return file_api_protobuf_spec_connection_resource_v1_proto_rawDescGZIP(), []int{3}
} | [
-0.061826128512620926,
0.6330750584602356,
0.1809375286102295,
-0.8925817608833313,
0.9675891399383545,
-0.593784749507904,
0.7068471312522888,
-0.6657010316848755,
0.1326359659433365,
-0.621664822101593,
-0.6356818079948425,
-0.09965935349464417,
-1.3262943029403687,
-1.1176702976226807,
... |
func (*GetMainInterestsResponse) Descriptor() ([]byte, []int) {
return file_api_protobuf_spec_connection_resource_v1_proto_rawDescGZIP(), []int{4}
} | [
0.11596811562776566,
-0.10615678131580353,
0.3235945701599121,
-0.7454277276992798,
0.6608790755271912,
-0.18067938089370728,
0.5911647081375122,
-0.3647407293319702,
0.09085707366466522,
-0.7878926992416382,
-0.11083854734897614,
-0.2836611866950989,
-1.915017008781433,
-0.881651043891906... |
func (*GetAllInterestsResponse) Descriptor() ([]byte, []int) {
return file_api_protobuf_spec_connection_resource_v1_proto_rawDescGZIP(), []int{5}
} | [
0.33014583587646484,
-0.025995321571826935,
0.22540752589702606,
-0.15989211201667786,
0.367108017206192,
-0.7158280611038208,
0.20910891890525818,
-0.0356907993555069,
0.44627851247787476,
-0.8306151628494263,
-0.5789988040924072,
0.057594168931245804,
-1.6223139762878418,
-0.626143157482... |
func (*GetUserInterestsRequests) Descriptor() ([]byte, []int) {
return file_api_protobuf_spec_connection_resource_v1_proto_rawDescGZIP(), []int{6}
} | [
-0.21485599875450134,
0.5284024477005005,
0.5449984073638916,
0.2194524109363556,
0.2147592455148697,
0.09558883309364319,
0.17087942361831665,
-0.4931676387786865,
-0.27911436557769775,
-0.7526739835739136,
-0.5939872860908508,
0.12364927679300308,
-0.8882265090942383,
-0.6318622827529907... |
func (*GetTribeInterestsRequests) Descriptor() ([]byte, []int) {
return file_api_protobuf_spec_connection_resource_v1_proto_rawDescGZIP(), []int{7}
} | [
0.1880466789007187,
0.20971806347370148,
0.29777792096138,
-0.3492523729801178,
0.595241367816925,
-0.25481560826301575,
-0.2381369024515152,
-0.5810590386390686,
-0.5284939408302307,
-0.3703756034374237,
-0.3483073115348816,
0.1770651936531067,
-0.965262770652771,
-1.0476868152618408,
-... |
func (*SearchInterestsRequests) Descriptor() ([]byte, []int) {
return file_api_protobuf_spec_connection_resource_v1_proto_rawDescGZIP(), []int{8}
} | [
-0.5274869799613953,
0.5648224353790283,
0.20274198055267334,
-0.5312054753303528,
0.31635382771492004,
-0.24610711634159088,
-0.15020307898521423,
-0.6160743832588196,
-0.16558003425598145,
-0.3124442398548126,
-0.4451330602169037,
-0.06835662573575974,
-0.9581223130226135,
-0.76158589124... |
func (*SearchInterestsResponse) Descriptor() ([]byte, []int) {
return file_api_protobuf_spec_connection_resource_v1_proto_rawDescGZIP(), []int{9}
} | [
0.12640628218650818,
0.20266780257225037,
0.021360496059060097,
-0.8427175283432007,
0.6736556887626648,
-0.8595699071884155,
0.5434356331825256,
-1.0153168439865112,
-0.0028206282295286655,
-0.13805580139160156,
-0.7586506605148315,
-0.2058454304933548,
-1.2566109895706177,
-1.23263275623... |
func (*SearchServicesRequests) Descriptor() ([]byte, []int) {
return file_api_protobuf_spec_connection_resource_v1_proto_rawDescGZIP(), []int{10}
} | [
-0.781329870223999,
0.6162638664245605,
-0.08805906772613525,
-0.17205321788787842,
-0.3995334208011627,
-0.7783588767051697,
-0.41521352529525757,
-1.0008302927017212,
-0.633647084236145,
-0.7350386381149292,
0.14686405658721924,
0.09679442644119263,
0.048909734934568405,
0.30082827806472... |
func (*SearchServicesResponse) Descriptor() ([]byte, []int) {
return file_api_protobuf_spec_connection_resource_v1_proto_rawDescGZIP(), []int{11}
} | [
-0.16041335463523865,
0.46548593044281006,
0.056186843663454056,
-0.5041825175285339,
0.22437117993831635,
-1.0595449209213257,
0.3132544159889221,
-1.122600793838501,
-0.2647695243358612,
-0.3816056251525879,
-0.517368495464325,
-0.805500864982605,
-0.6120964288711548,
-0.2687384188175201... |
func (*SharedInterestsResponse) Descriptor() ([]byte, []int) {
return file_api_protobuf_spec_connection_resource_v1_proto_rawDescGZIP(), []int{12}
} | [
0.09329333156347275,
0.4553157389163971,
0.21492062509059906,
-0.6927228569984436,
0.581450343132019,
-0.35367894172668457,
1.3257442712783813,
-0.46280133724212646,
0.2525617480278015,
-0.2337043434381485,
-0.9893937706947327,
-0.518484354019165,
-1.5181169509887695,
-1.043257713317871,
... |
func (*SharedInterestsRequests) Descriptor() ([]byte, []int) {
return file_api_protobuf_spec_connection_resource_v1_proto_rawDescGZIP(), []int{13}
} | [
-0.46795377135276794,
0.7780054211616516,
0.36230313777923584,
-0.21971343457698822,
0.1794794350862503,
0.14562098681926727,
0.5733622312545776,
-0.2535327970981598,
-0.008164678700268269,
-0.3811108469963074,
-0.68267422914505,
-0.2160700410604477,
-1.3168139457702637,
-0.536013662815094... |
func (*SharedTribeUserInterestsResponse) Descriptor() ([]byte, []int) {
return file_api_protobuf_spec_connection_resource_v1_proto_rawDescGZIP(), []int{14}
} | [
0.7077503800392151,
0.4077460467815399,
0.10515565425157547,
-0.6727430820465088,
0.6750235557556152,
-0.24703292548656464,
1.4711527824401855,
-0.4633282721042633,
0.25864464044570923,
-0.08341996371746063,
-0.8766448497772217,
-0.11938556283712387,
-1.4331034421920776,
-1.199347615242004... |
func (*SharedTribeUserInterestsRequests) Descriptor() ([]byte, []int) {
return file_api_protobuf_spec_connection_resource_v1_proto_rawDescGZIP(), []int{15}
} | [
0.06603793054819107,
0.6523624062538147,
0.3692680299282074,
-0.2931867837905884,
0.4739888310432434,
0.14281311631202698,
0.8024481534957886,
-0.5047063231468201,
-0.3403417766094208,
-0.5150088667869568,
-0.4831983149051666,
0.20542843639850616,
-1.126335620880127,
-0.7337917685508728,
... |
func (*GetUserInterestsResponse) Descriptor() ([]byte, []int) {
return file_api_protobuf_spec_connection_resource_v1_proto_rawDescGZIP(), []int{16}
} | [
0.283525288105011,
0.3829173147678375,
0.12958604097366333,
-0.41846945881843567,
0.40400588512420654,
-0.36352378129959106,
0.965349555015564,
-0.7710117101669312,
0.019403187558054924,
-0.5070773959159851,
-0.8026794195175171,
-0.20495426654815674,
-1.3953936100006104,
-1.259930372238159... |
func (*GetTribeInterestsResponse) Descriptor() ([]byte, []int) {
return file_api_protobuf_spec_connection_resource_v1_proto_rawDescGZIP(), []int{17}
} | [
0.6293317675590515,
0.09729480743408203,
-0.017794404178857803,
-1.1300997734069824,
0.81349116563797,
-0.6393467783927917,
0.324266254901886,
-0.768683910369873,
-0.3886421322822571,
-0.041185952723026276,
-0.8679915070533752,
-0.37809282541275024,
-1.067728877067566,
-1.2127201557159424,... |
func (*ConnectUserInterestsRequests) Descriptor() ([]byte, []int) {
return file_api_protobuf_spec_connection_resource_v1_proto_rawDescGZIP(), []int{18}
} | [
-0.673599362373352,
-0.14596955478191376,
0.14094392955303192,
0.21302898228168488,
0.3081841468811035,
0.4705674648284912,
0.2855485677719116,
-0.9851685762405396,
-0.5017415285110474,
-0.3236391544342041,
0.6258581876754761,
-0.32331913709640503,
-1.0491656064987183,
-0.6429663300514221,... |
func (*ConnectTribeInterestsRequests) Descriptor() ([]byte, []int) {
return file_api_protobuf_spec_connection_resource_v1_proto_rawDescGZIP(), []int{19}
} | [
-0.014403454959392548,
-0.34434327483177185,
0.13900630176067352,
-0.052658405154943466,
0.5414696335792542,
0.2377581149339676,
-0.04340022802352905,
-1.3870540857315063,
-0.9908674955368042,
0.18111620843410492,
0.3693069517612457,
-0.5883387923240662,
-0.9880144596099854,
-0.86520820856... |
func (*GetServicesRequests) Descriptor() ([]byte, []int) {
return file_api_protobuf_spec_connection_resource_v1_proto_rawDescGZIP(), []int{20}
} | [
-0.5368103981018066,
0.6698273420333862,
0.18201445043087006,
-0.22433121502399445,
-0.3811967074871063,
-0.6516101360321045,
0.15742738544940948,
-0.6907116770744324,
-0.397527813911438,
-0.7985440492630005,
0.10977750271558762,
0.24741946160793304,
-0.3959546387195587,
0.3963899910449981... |
func (*GetServicesResponse) Descriptor() ([]byte, []int) {
return file_api_protobuf_spec_connection_resource_v1_proto_rawDescGZIP(), []int{21}
} | [
0.03902546688914299,
0.7390236258506775,
0.04878280684351921,
-0.7845804691314697,
0.2502777576446533,
-1.0589100122451782,
0.7458381652832031,
-0.6729276776313782,
-0.1264413744211197,
-0.5903266668319702,
-0.3184405267238617,
-0.9212148189544678,
-0.6667898893356323,
-0.27674153447151184... |
func (*GetAllServicesResponse) Descriptor() ([]byte, []int) {
return file_api_protobuf_spec_connection_resource_v1_proto_rawDescGZIP(), []int{22}
} | [
0.37502747774124146,
0.13871529698371887,
0.12225376814603806,
-0.3562721610069275,
-0.19326692819595337,
-1.0585789680480957,
-0.06023718789219856,
-0.23132462799549103,
0.43635621666908264,
-0.7406607270240784,
-0.12186425179243088,
-0.800235390663147,
-0.6520203351974487,
-0.02102561853... |
func (*UserOfferServicesRequests) Descriptor() ([]byte, []int) {
return file_api_protobuf_spec_connection_resource_v1_proto_rawDescGZIP(), []int{23}
} | [
-0.8216794729232788,
0.5737350583076477,
0.16543501615524292,
-0.18572305142879486,
-0.8184750080108643,
-0.17128302156925201,
0.1631409376859665,
-0.731482982635498,
0.027521394193172455,
-0.16785582900047302,
0.7321470379829407,
-0.10711734741926193,
0.1314472258090973,
0.592627763748169... |
func (*UserOfferServicesResponse) Descriptor() ([]byte, []int) {
return file_api_protobuf_spec_connection_resource_v1_proto_rawDescGZIP(), []int{24}
} | [
-0.21706648170948029,
0.5471091270446777,
-0.14051881432533264,
-0.6178524494171143,
-0.6811363101005554,
-0.3083575367927551,
0.6657410264015198,
-0.5749544501304626,
0.4228837192058563,
0.13070417940616608,
0.06654388457536697,
-0.84361332654953,
-0.6928830742835999,
0.08750903606414795,... |
func (*UserRequestedServicesRequests) Descriptor() ([]byte, []int) {
return file_api_protobuf_spec_connection_resource_v1_proto_rawDescGZIP(), []int{25}
} | [
-1.0964303016662598,
-0.23756536841392517,
-0.055032260715961456,
-0.327360600233078,
-0.2856729030609131,
-0.2601563334465027,
-0.40109318494796753,
-0.8402120471000671,
-0.11856359988451004,
-1.032920241355896,
-0.04896092414855957,
-0.23023241758346558,
0.1466972380876541,
0.13590580224... |
func (*UserRequestedServicesResponse) Descriptor() ([]byte, []int) {
return file_api_protobuf_spec_connection_resource_v1_proto_rawDescGZIP(), []int{26}
} | [
-0.7710049748420715,
-0.3371381163597107,
-0.16253800690174103,
-0.797792911529541,
0.22682327032089233,
-0.29078447818756104,
-0.16498151421546936,
-0.6784316301345825,
0.3105649948120117,
-0.9190857410430908,
-0.589298665523529,
-0.8409337401390076,
-0.1958300918340683,
-0.24074040353298... |
func (*ConnectUserOfferServicesRequests) Descriptor() ([]byte, []int) {
return file_api_protobuf_spec_connection_resource_v1_proto_rawDescGZIP(), []int{27}
} | [
-0.9050998687744141,
0.30270326137542725,
0.32001468539237976,
0.06577016413211823,
-0.7464527487754822,
0.17413803935050964,
0.4711441397666931,
-0.47519394755363464,
-0.6376510858535767,
0.021439190953969955,
1.3293302059173584,
-0.2934077978134155,
-0.06817891448736191,
0.30208337306976... |
func (*ConnectUserRequestedServicesRequests) Descriptor() ([]byte, []int) {
return file_api_protobuf_spec_connection_resource_v1_proto_rawDescGZIP(), []int{28}
} | [
-1.402005910873413,
-0.6093137264251709,
0.19374221563339233,
0.264979749917984,
-0.10319811850786209,
0.09360115230083466,
-0.1247396320104599,
-1.1128592491149902,
-0.3482682406902313,
-0.8638671040534973,
0.831311047077179,
-0.45163360238075256,
0.060547519475221634,
0.06284651160240173... |
func (*CreateInterestRequest) Descriptor() ([]byte, []int) {
return file_api_protobuf_spec_connection_resource_v1_proto_rawDescGZIP(), []int{29}
} | [
0.011222236789762974,
0.3966677188873291,
0.5130201578140259,
-0.3487434685230255,
0.9531264901161194,
0.2724076807498932,
0.5409911274909973,
-0.19962264597415924,
-0.8276296257972717,
0.008511449210345745,
-0.2391902655363083,
0.04438491538167,
-1.43654465675354,
0.5939862132072449,
0.... |
func (*CreateInterestResponse) Descriptor() ([]byte, []int) {
return file_api_protobuf_spec_connection_resource_v1_proto_rawDescGZIP(), []int{30}
} | [
0.0760006457567215,
0.1715984344482422,
-0.05858442187309265,
-0.8878746032714844,
0.8950136303901672,
0.12791436910629272,
0.3435019552707672,
-0.7407078742980957,
-0.4415208697319031,
-0.0920548215508461,
-0.7850863337516785,
-0.08549970388412476,
-1.900708556175232,
-0.31406369805336,
... |
func (*CreateOfferedServiceRequest) Descriptor() ([]byte, []int) {
return file_api_protobuf_spec_connection_resource_v1_proto_rawDescGZIP(), []int{31}
} | [
-0.5037335157394409,
0.2677707076072693,
0.31902649998664856,
-0.3811896741390228,
-0.06765580922365189,
0.16752749681472778,
0.27096351981163025,
-0.7890928983688354,
-0.4630090892314911,
-0.3184639513492584,
0.9003565907478333,
-0.0341527983546257,
-0.7099359035491943,
2.0539982318878174... |
func (*CreateOfferedServiceResponse) Descriptor() ([]byte, []int) {
return file_api_protobuf_spec_connection_resource_v1_proto_rawDescGZIP(), []int{32}
} | [
-0.020956676453351974,
-0.0573001503944397,
-0.10783915221691132,
-0.5615184307098389,
0.04090774804353714,
-0.1892571598291397,
0.15912610292434692,
-1.0829463005065918,
-0.10656102746725082,
-0.2711881697177887,
0.17170870304107666,
-0.2931486964225769,
-1.315539836883545,
1.133036494255... |
func (*CreateRequestedServiceRequest) Descriptor() ([]byte, []int) {
return file_api_protobuf_spec_connection_resource_v1_proto_rawDescGZIP(), []int{33}
} | [
-1.3714832067489624,
-0.05942654609680176,
0.36833950877189636,
0.14479273557662964,
0.40259021520614624,
0.15047910809516907,
0.0030477456748485565,
-0.4404413104057312,
-0.9124387502670288,
-0.6855844855308533,
0.35290318727493286,
0.07625861465930939,
-0.5899826884269714,
1.496712803840... |
func (*CreateRequestedServiceResponse) Descriptor() ([]byte, []int) {
return file_api_protobuf_spec_connection_resource_v1_proto_rawDescGZIP(), []int{34}
} | [
-1.0232417583465576,
-0.10297451913356781,
-0.11702825129032135,
-0.28903913497924805,
0.54413241147995,
-0.1392017900943756,
-0.3744819760322571,
-0.7185524702072144,
-0.6279241442680359,
-0.5397480726242065,
-0.24621424078941345,
-0.04334030672907829,
-1.0331028699874878,
0.5646243691444... |
func ToRomanNumeral(number int) (string, error) {
if number <= 0 || number >= 4000 {
return "", ErrOutOfBounds
}
var buf bytes.Buffer
for _, numericInfo := range intToNumeral {
limit := number / numericInfo.value
for i := 0; i < limit; i++ {
buf.WriteString(numericInfo.numeral)
number -= numericInfo.va... | [
-1.0729402303695679,
-0.45981258153915405,
0.6671735644340515,
-1.2630935907363892,
-0.3567464053630829,
0.1502663493156433,
-0.16365227103233337,
-0.6033532619476318,
0.09068822860717773,
0.3021128177642822,
-0.6095884442329407,
0.2045665681362152,
-0.03553011268377304,
-0.002063125837594... |
func NewHTMLContentTypeBinder(decoder *formam.Decoder) HTMLContentTypeBinder {
decoder.RegisterCustomType(decoders.TimeDecoderFn(), []interface{}{time.Time{}}, nil)
decoder.RegisterCustomType(decoders.NullTimeDecoderFn(), []interface{}{nulls.Time{}}, nil)
return HTMLContentTypeBinder{
decoder: decoder,
}
} | [
0.024132080376148224,
-0.4622538387775421,
0.26016053557395935,
-0.12256322801113129,
-0.7892135381698608,
-0.6888126730918884,
-0.5429192185401917,
-0.3420751988887787,
-0.20804502069950104,
-0.3339206278324127,
-0.6995274424552917,
0.19771915674209595,
0.09870739281177521,
1.888868212699... |
func (ht HTMLContentTypeBinder) ContentTypes() []string {
return []string{
"application/html",
"text/html",
"application/x-www-form-urlencoded",
"html",
}
} | [
0.0982939600944519,
-0.17215952277183533,
0.418313592672348,
0.49797993898391724,
-0.047568339854478836,
0.48148733377456665,
-0.42569416761398315,
-0.3056076765060425,
-0.2529463768005371,
-0.060878828167915344,
-0.4586651027202606,
0.39332687854766846,
-0.8453888297080994,
1.301654338836... |
func (ht HTMLContentTypeBinder) BinderFunc() Binder {
return func(req *http.Request, i interface{}) error {
err := req.ParseForm()
if err != nil {
return err
}
if err := ht.decoder.Decode(req.Form, i); err != nil {
return err
}
return nil
}
} | [
0.15356533229351044,
-0.6930153965950012,
0.5658016800880432,
-0.20754234492778778,
-0.5843096971511841,
-0.14610189199447632,
0.1269029974937439,
0.28926485776901245,
-0.6996422410011292,
-0.36977624893188477,
-0.09831878542900085,
0.13684611022472382,
0.690170168876648,
0.425050616264343... |
func New(pharosConfig string) (*Config, error) {
if pharosConfig == "" {
pharosConfig = fmt.Sprintf("%s/.kube/pharos/config", os.Getenv("HOME"))
}
dir := filepath.Dir(pharosConfig)
err := os.MkdirAll(dir, directoryPermissions)
if err != nil {
return nil, err
}
return &Config{filePath: pharosConfig}, nil
} | [
0.13570860028266907,
0.024703962728381157,
0.4014703035354614,
0.8122006058692932,
-0.11786199361085892,
0.17055882513523102,
0.1545441448688507,
0.746030867099762,
-0.46692800521850586,
-0.30725833773612976,
-0.2501002550125122,
-0.6539069414138794,
0.6929781436920166,
0.852696418762207,
... |
func (c *Config) Load() error {
if _, err := os.Stat(c.filePath); os.IsNotExist(err) {
return errors.New("pharos hasn't been configured yet")
}
raw, err := ioutil.ReadFile(c.filePath)
if err != nil {
return err
}
if string(raw) == "" {
return errors.New("pharos hasn't been configured yet")
}
return json.... | [
-0.6887613534927368,
-0.4996435046195984,
0.644730806350708,
-1.3524672985076904,
0.06802941113710403,
-0.22966349124908447,
-0.4824959337711334,
-0.034730009734630585,
-0.8799341320991516,
0.41302502155303955,
-0.6182100772857666,
-0.9937459826469421,
-0.06459594517946243,
-0.522002637386... |
func (c *Config) Save() error {
path := filepath.Dir(c.filePath)
err := os.MkdirAll(path, directoryPermissions)
if err != nil {
return err
}
raw, err := json.MarshalIndent(c, "", " ")
if err != nil {
return err
}
err = ioutil.WriteFile(c.filePath, raw, filePermissions)
if err != nil {
return err
}
r... | [
-0.5912874341011047,
0.2306787073612213,
0.5042921900749207,
-0.6183666586875916,
0.7155429124832153,
-0.0288609080016613,
0.6536067724227905,
-0.1809891164302826,
-0.9394854307174683,
0.7342166304588318,
-1.3506090641021729,
-0.2991095185279846,
-0.10152121633291245,
0.2902250587940216,
... |
func (c coordinate) decimal() float64 {
sign := 1.0
switch c.h {
case 'S', 'W', 's', 'w':
sign = -1
}
return sign * (c.d + c.m/60 + c.s/3600)
} | [
0.6717802286148071,
-0.8757198452949524,
0.640699028968811,
-0.16736644506454468,
0.004688970744609833,
-0.34184104204177856,
0.175641268491745,
-0.44626176357269287,
-0.4927406907081604,
-0.7636696696281433,
0.03877846151590347,
-0.009646550752222538,
0.2724759578704834,
0.432176351547241... |
func rad(deg float64) float64 {
return deg * math.Pi / 180
} | [
-0.20933155715465546,
0.032294806092977524,
0.08360257744789124,
-1.2848542928695679,
-0.7639157176017761,
1.132978081703186,
-0.17129109799861908,
-0.09650061279535294,
-0.1509346216917038,
-1.0681298971176147,
0.7794775366783142,
0.07880134880542755,
-0.0120850233361125,
0.97203016281127... |
func (w world) distance(p1, p2 location) float64 {
s1, c1 := math.Sincos(rad(p1.lat))
s2, c2 := math.Sincos(rad(p2.lat))
clong := math.Cos(rad(p1.long - p2.long))
return w.radius * math.Acos(s1*s2+c1*c2*clong)
} | [
0.02082505263388157,
-0.572901725769043,
0.385122686624527,
-0.28735095262527466,
-0.7410382032394409,
1.4785702228546143,
-0.41940411925315857,
0.46611833572387695,
0.08826029300689697,
0.9463070631027222,
0.132210373878479,
0.4029795527458191,
-0.037905942648649216,
-0.18939106166362762,... |
func (c *LibinteractiveCompiler) GetInteractiveSettings(
contents io.Reader,
moduleName string,
parentLang string,
) (*common.InteractiveSettings, error) {
libinteractiveJarPath := "/usr/share/java/libinteractive.jar"
if c.LibinteractiveJarPath != "" {
libinteractiveJarPath = c.LibinteractiveJarPath
}
cmd := e... | [
0.12141523510217667,
-0.9565595388412476,
0.9544617533683777,
-0.1954706609249115,
-0.28590354323387146,
-0.6171977519989014,
0.6096380949020386,
-1.176942229270935,
-1.1820682287216187,
0.5228332877159119,
-0.10343974083662033,
0.13160687685012817,
-1.3165098428726196,
0.06981763988733292... |
func (c *FakeInteractiveSettingsCompiler) GetInteractiveSettings(
contents io.Reader,
moduleName string,
parentLang string,
) (*common.InteractiveSettings, error) {
return c.Settings, c.Err
} | [
-0.07348988950252533,
-0.00889856368303299,
0.28604817390441895,
-0.17515252530574799,
-0.3412325084209442,
-0.5941028594970703,
0.872741162776947,
-0.7527623176574707,
-0.8611935973167419,
0.3318758010864258,
-0.762660801410675,
-0.7783852219581604,
-1.8749239444732666,
0.0281058195978403... |
func Path(path string) PathRetriever {
return func() (string, error) { return path, nil }
} | [
0.3723367750644684,
0.004546535201370716,
-0.026251981034874916,
0.06906548142433167,
-0.9439917802810669,
0.10241077840328217,
0.13818566501140594,
-0.40648382902145386,
0.6770175099372864,
-1.7273753881454468,
0.0950259417295456,
-0.7438011169433594,
-0.5955982804298401,
-0.4185482859611... |
func Join(paths ...PathRetriever) PathRetriever {
var components []string
var err error
for _, path := range paths {
var component string
component, err = path()
if err != nil {
break
}
components = append(components, component)
}
path := filepath.Join(components...)
return func() (string, error) {
... | [
0.0381186306476593,
-0.016656383872032166,
0.4396771788597107,
0.5346145629882812,
-0.13247746229171753,
0.14389395713806152,
-0.1067194789648056,
0.7151615023612976,
-0.17229308187961578,
-0.9217571020126343,
0.43778935074806213,
-1.483803391456604,
-0.5553736090660095,
0.0376000516116619... |
func JoinFromHome(paths ...PathRetriever) PathRetriever {
return Join(append([]PathRetriever{os.UserHomeDir}, paths...)...)
} | [
0.8425106406211853,
-0.18819668889045715,
0.2929418981075287,
1.4926633834838867,
-0.002838332671672106,
0.6784799098968506,
0.07458819448947906,
0.46912238001823425,
0.04395120590925217,
-0.8808567523956299,
-0.06890302151441574,
-0.8637048602104187,
-0.6883628368377686,
0.375798702239990... |
func List(paths ...PathRetriever) PathsRetriever {
var list []string
var err error
for _, path := range paths {
var resolved string
resolved, err = path()
if err != nil {
break
}
list = append(list, resolved)
}
return func() ([]string, error) {
return list, err
}
} | [
-0.29206231236457825,
-0.04708092659711838,
0.408843994140625,
0.7618486881256104,
0.6452208161354065,
-0.383808434009552,
-0.23467974364757538,
1.0339674949645996,
0.027968132868409157,
-1.0886125564575195,
-0.3378152847290039,
-1.5010164976119995,
-0.11330220103263855,
0.5266958475112915... |
func (o *ListEdgeClustersReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
switch response.Code() {
case 200:
result := NewListEdgeClustersOK()
if err := result.readResponse(response, consumer, o.formats); err != nil {
return nil, err
}
return result, ... | [
-0.790219783782959,
-1.0252264738082886,
0.7169854044914246,
-0.013392348773777485,
0.5455870032310486,
-0.8575717210769653,
0.44893836975097656,
-0.8810898065567017,
0.660431981086731,
0.40479159355163574,
0.161373108625412,
-0.2744017541408539,
-1.2503273487091064,
-0.20585641264915466,
... |
func NewListEdgeClustersOK() *ListEdgeClustersOK {
return &ListEdgeClustersOK{}
} | [
-0.6992189884185791,
-0.9868717789649963,
0.13134008646011353,
0.403746634721756,
0.19670630991458893,
-0.21009506285190582,
0.06742347776889801,
-0.26435133814811707,
0.02600521221756935,
0.03618992865085602,
-0.8525190353393555,
-0.10416615009307861,
-0.46060124039649963,
-0.309477537870... |
func NewListEdgeClustersBadRequest() *ListEdgeClustersBadRequest {
return &ListEdgeClustersBadRequest{}
} | [
-1.5245187282562256,
-1.0225681066513062,
0.19622327387332916,
0.4895295202732086,
0.4085889458656311,
-0.20463086664676666,
-1.1286109685897827,
-0.29940494894981384,
-0.00565608823671937,
-0.5353546738624573,
-0.0033771793823689222,
0.35825347900390625,
-0.8856345415115356,
0.06206504628... |
func NewListEdgeClustersForbidden() *ListEdgeClustersForbidden {
return &ListEdgeClustersForbidden{}
} | [
-0.5204439759254456,
-0.48699548840522766,
0.3375290036201477,
0.6182381510734558,
-0.1105942502617836,
0.47876036167144775,
0.004926649387925863,
-1.0047203302383423,
0.019649947062134743,
-0.2647504508495331,
-0.2501475512981415,
0.42746955156326294,
-0.9439672827720642,
-1.0591198205947... |
func NewListEdgeClustersNotFound() *ListEdgeClustersNotFound {
return &ListEdgeClustersNotFound{}
} | [
-1.0908689498901367,
-1.4468094110488892,
-0.0024703426752239466,
0.005655980668962002,
0.8085277676582336,
0.2429180145263672,
0.30469784140586853,
-0.3234323561191559,
0.14166970551013947,
-0.45697858929634094,
-0.6455960869789124,
0.07193867117166519,
-0.7412312626838684,
-0.44932439923... |
func NewListEdgeClustersPreconditionFailed() *ListEdgeClustersPreconditionFailed {
return &ListEdgeClustersPreconditionFailed{}
} | [
-0.5083110928535461,
-0.5139119625091553,
0.14084726572036743,
0.14954085648059845,
0.02317081019282341,
0.34125465154647827,
0.6204017400741577,
-0.06432470679283142,
-0.10098852962255478,
-0.5297752022743225,
-0.22816722095012665,
-0.28491532802581787,
-0.4105425477027893,
0.407856553792... |
func NewListEdgeClustersServiceUnavailable() *ListEdgeClustersServiceUnavailable {
return &ListEdgeClustersServiceUnavailable{}
} | [
-1.8041408061981201,
-1.1412725448608398,
0.5118057131767273,
-0.3126266598701477,
0.3993382453918457,
-0.16057533025741577,
-0.32575342059135437,
0.19517867267131805,
0.13523587584495544,
0.07356947660446167,
-0.4474988877773285,
0.14925415813922882,
-0.3455331325531006,
-0.81745427846908... |
func NewDelegateAuthService(controllerOrigin string) *DelegateAuthService {
return &DelegateAuthService{
controllerOrigin: controllerOrigin,
}
} | [
0.2216273844242096,
-0.3613215684890747,
0.37510743737220764,
-0.5002463459968567,
-0.8822984099388123,
0.3626233637332916,
-0.12748205661773682,
0.20579570531845093,
0.872930645942688,
-0.7606515884399414,
0.0894891545176506,
1.3748310804367065,
0.6056528091430664,
-0.17754030227661133,
... |
func (auth *DelegateAuthService) Verify(token string) (string, error) {
data, err := json.Marshal(map[string]interface{}{
"token": token,
})
if err != nil {
return "", err
}
endpoint := url.URL{
Scheme: "http",
Host: auth.controllerOrigin,
Path: "/api/v1/user/verify",
}
resp, err := http.Post(endpo... | [
-0.11417043954133987,
0.5413848757743835,
1.0906703472137451,
-0.27258631587028503,
-0.18998707830905914,
0.13028162717819214,
-0.38815781474113464,
-0.7069492936134338,
0.008260509930551052,
0.3441457450389862,
-1.1680524349212646,
1.0467228889465332,
-0.3119414150714874,
0.55227154493331... |
func (o TriggerBuildOutput) Artifacts() TriggerBuildArtifactsPtrOutput {
return o.ApplyT(func(v TriggerBuild) *TriggerBuildArtifacts { return v.Artifacts }).(TriggerBuildArtifactsPtrOutput)
} | [
0.26104727387428284,
-0.6899478435516357,
0.3310082256793976,
0.3001474440097809,
0.4522861838340759,
0.15066111087799072,
1.1803299188613892,
0.37288326025009155,
0.6985887289047241,
-0.8131905794143677,
-1.1012611389160156,
0.8259211778640747,
1.0067578554153442,
-1.4719374179840088,
-... |
func (o TriggerBuildOutput) Images() pulumi.StringArrayOutput {
return o.ApplyT(func(v TriggerBuild) []string { return v.Images }).(pulumi.StringArrayOutput)
} | [
-0.37415188550949097,
-0.3568008542060852,
0.42108339071273804,
0.581183671951294,
0.862335205078125,
0.19912861287593842,
0.2271721363067627,
0.24888905882835388,
0.2100359946489334,
-0.41269394755363464,
-0.950566828250885,
0.5777788758277893,
0.32536768913269043,
-0.3023839294910431,
... |
func (o TriggerBuildOutput) Options() TriggerBuildOptionsPtrOutput {
return o.ApplyT(func(v TriggerBuild) *TriggerBuildOptions { return v.Options }).(TriggerBuildOptionsPtrOutput)
} | [
0.7272981405258179,
-0.9150765538215637,
0.35796356201171875,
0.330789178609848,
0.7098076343536377,
-0.1880233734846115,
1.2406971454620361,
0.11977200210094452,
0.6411502957344055,
-1.0184770822525024,
-0.9547699093818665,
0.5965648889541626,
0.6896600723266602,
-0.7343719005584717,
-1... |
func (o TriggerBuildOutput) QueueTtl() pulumi.StringPtrOutput {
return o.ApplyT(func(v TriggerBuild) *string { return v.QueueTtl }).(pulumi.StringPtrOutput)
} | [
1.2888792753219604,
-0.736708402633667,
0.359988272190094,
-0.6530904173851013,
0.11218740046024323,
0.4481683671474457,
-0.1792585402727127,
-0.1983160823583603,
0.5346812009811401,
-0.2650393545627594,
-0.8872730135917664,
0.3072923421859741,
0.8645198941230774,
-1.145429015159607,
-1.... |
func (o TriggerBuildOutput) Secrets() TriggerBuildSecretArrayOutput {
return o.ApplyT(func(v TriggerBuild) []TriggerBuildSecret { return v.Secrets }).(TriggerBuildSecretArrayOutput)
} | [
-0.16408580541610718,
-0.4138811230659485,
0.5048879384994507,
1.0750104188919067,
0.7673575282096863,
-0.2194623351097107,
0.6488894820213318,
-0.19367194175720215,
0.45827585458755493,
-0.9632298946380615,
-1.5629262924194336,
0.9617754220962524,
0.7495025396347046,
-0.5074718594551086,
... |
func (o TriggerBuildOutput) Source() TriggerBuildSourcePtrOutput {
return o.ApplyT(func(v TriggerBuild) *TriggerBuildSource { return v.Source }).(TriggerBuildSourcePtrOutput)
} | [
0.4346621036529541,
-0.18737438321113586,
0.28432920575141907,
0.387529194355011,
-0.19850574433803558,
-0.32286491990089417,
1.51119863986969,
0.6353058218955994,
1.156701683998108,
-0.7850977778434753,
-0.8800840973854065,
1.0283726453781128,
0.8176465630531311,
-0.9885956048965454,
-0... |
func (o TriggerBuildOutput) Steps() TriggerBuildStepArrayOutput {
return o.ApplyT(func(v TriggerBuild) []TriggerBuildStep { return v.Steps }).(TriggerBuildStepArrayOutput)
} | [
0.30104008316993713,
-0.5424337983131409,
0.4099118709564209,
0.9235734343528748,
0.6105611324310303,
0.2178158462047577,
0.6986056566238403,
-0.16448424756526947,
0.21311359107494354,
-1.3070707321166992,
-1.073829174041748,
0.22890597581863403,
0.7536921501159668,
0.19394245743751526,
... |
func (o TriggerBuildOutput) Substitutions() pulumi.StringMapOutput {
return o.ApplyT(func(v TriggerBuild) map[string]string { return v.Substitutions }).(pulumi.StringMapOutput)
} | [
0.47269904613494873,
-0.7869905829429626,
0.6262593269348145,
-0.3410640060901642,
-0.01499488390982151,
0.5195846557617188,
0.34216412901878357,
0.8535751700401306,
0.2498777061700821,
-1.0866148471832275,
-1.4524872303009033,
0.24006712436676025,
0.4262532591819763,
-0.8056225180625916,
... |
func (o TriggerBuildOutput) Tags() pulumi.StringArrayOutput {
return o.ApplyT(func(v TriggerBuild) []string { return v.Tags }).(pulumi.StringArrayOutput)
} | [
0.661091685295105,
-0.08493737131357193,
0.46233588457107544,
0.7382153868675232,
1.2501606941223145,
0.30992215871810913,
-0.24110101163387299,
0.16055627167224884,
-0.19627699255943298,
-0.3507004380226135,
-1.4824551343917847,
0.7171417474746704,
0.19839102029800415,
-0.1004870608448982... |
func (o TriggerBuildOutput) Timeout() pulumi.StringPtrOutput {
return o.ApplyT(func(v TriggerBuild) *string { return v.Timeout }).(pulumi.StringPtrOutput)
} | [
1.005232810974121,
-0.5861101150512695,
0.33849263191223145,
0.08752774447202682,
0.3429846465587616,
0.5102016925811768,
0.5004727244377136,
1.0759245157241821,
0.45199552178382874,
-0.0330173596739769,
-0.35172322392463684,
0.4102395474910736,
0.19374261796474457,
-1.6279963254928589,
... |
func (o TriggerBuildPtrOutput) Artifacts() TriggerBuildArtifactsPtrOutput {
return o.ApplyT(func(v *TriggerBuild) *TriggerBuildArtifacts {
if v == nil {
return nil
}
return v.Artifacts
}).(TriggerBuildArtifactsPtrOutput)
} | [
0.23315390944480896,
-0.6187297105789185,
0.3593241572380066,
0.37293338775634766,
0.6867489814758301,
-0.01762481778860092,
1.1616978645324707,
0.13309715688228607,
0.7001697421073914,
-0.8543288707733154,
-1.1048640012741089,
0.5777292847633362,
0.749469518661499,
-1.3449567556381226,
... |
func (o TriggerBuildPtrOutput) Images() pulumi.StringArrayOutput {
return o.ApplyT(func(v *TriggerBuild) []string {
if v == nil {
return nil
}
return v.Images
}).(pulumi.StringArrayOutput)
} | [
-0.36757218837738037,
-0.13567809760570526,
0.507732629776001,
0.6521534323692322,
1.2447596788406372,
0.1268484741449356,
0.20238111913204193,
0.1238430067896843,
0.13814319670200348,
-0.6259843707084656,
-1.1242154836654663,
0.3064231872558594,
0.3076957166194916,
-0.33731240034103394,
... |
func (o TriggerBuildPtrOutput) Options() TriggerBuildOptionsPtrOutput {
return o.ApplyT(func(v *TriggerBuild) *TriggerBuildOptions {
if v == nil {
return nil
}
return v.Options
}).(TriggerBuildOptionsPtrOutput)
} | [
0.8392410278320312,
-0.6720028519630432,
0.37400445342063904,
0.4496753513813019,
0.9962900280952454,
-0.31111663579940796,
1.1555508375167847,
-0.005172451958060265,
0.558603823184967,
-1.1083550453186035,
-1.0574467182159424,
0.3811146318912506,
0.45229336619377136,
-0.6289327144622803,
... |
func (o TriggerBuildPtrOutput) QueueTtl() pulumi.StringPtrOutput {
return o.ApplyT(func(v *TriggerBuild) *string {
if v == nil {
return nil
}
return v.QueueTtl
}).(pulumi.StringPtrOutput)
} | [
1.1295874118804932,
-0.6458613276481628,
0.4201069474220276,
-0.5601983666419983,
0.32703664898872375,
0.23037390410900116,
-0.20921584963798523,
-0.24105194211006165,
0.6030327081680298,
-0.30662068724632263,
-0.9288347959518433,
0.08610255271196365,
0.7619844079017639,
-1.052242517471313... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.