text
stringlengths
11
6.3k
embedding
listlengths
768
768
func (*RepeatedItem) Descriptor() ([]byte, []int) { return file_examples_documents_example_proto_rawDescGZIP(), []int{4} }
[ -0.46001315116882324, 0.7559146881103516, 0.16824771463871002, 0.8020251393318176, -0.04661450907588005, -0.2848231792449951, 0.17528119683265686, 0.5271803140640259, -0.3945404589176178, -0.4977378249168396, -1.6490020751953125, 0.32183781266212463, -0.32360053062438965, 0.234713926911354...
func (*SimpleMap) Descriptor() ([]byte, []int) { return file_examples_documents_example_proto_rawDescGZIP(), []int{5} }
[ -0.36281004548072815, 0.01351987849920988, 0.41538214683532715, 0.12075094133615494, -0.46661239862442017, 0.4931541979312897, 0.4370819628238678, 0.7319710850715637, 0.7465409636497498, -1.049174189567566, -0.5919386744499207, -0.11127475649118423, -0.07749272882938385, 0.3673209249973297...
func (*SimpleStringMap) Descriptor() ([]byte, []int) { return file_examples_documents_example_proto_rawDescGZIP(), []int{6} }
[ -0.2900347411632538, -0.38344520330429077, 0.45587706565856934, -0.3047684133052826, -0.14294682443141937, 0.06364007294178009, 0.2922492027282715, 0.5572785139083862, -0.07982095330953598, -1.1420403718948364, -1.1334211826324463, -0.3889525234699249, -1.2176952362060547, -0.1625186949968...
func (*NestedMap) Descriptor() ([]byte, []int) { return file_examples_documents_example_proto_rawDescGZIP(), []int{7} }
[ 0.028138428926467896, -0.17285941541194916, 0.31584593653678894, 0.37556594610214233, -0.3315201699733734, 0.3721989095211029, 0.39382076263427734, 0.5007936358451843, -0.06614658981561661, -1.2357664108276367, -0.7944411635398865, 0.4562584459781647, -0.9613503217697144, 0.548418223857879...
func (*SimpleEntry) Descriptor() ([]byte, []int) { return file_examples_documents_example_proto_rawDescGZIP(), []int{8} }
[ -0.00841893907636404, 0.07435891777276993, 0.2895042598247528, -0.050081767141819, 0.4444965720176697, 0.12425744533538818, -0.2433411031961441, 0.42179152369499207, 0.7990865707397461, -0.373763769865036, -1.1637417078018188, 0.5375775098800659, -0.0910152792930603, 0.5532756447792053, ...
func (*SimpleEntries) Descriptor() ([]byte, []int) { return file_examples_documents_example_proto_rawDescGZIP(), []int{9} }
[ 0.08721838146448135, 0.5908876657485962, 0.2433520257472992, -0.7880986332893372, -0.17466239631175995, -0.006184929981827736, -0.00863636750727892, 0.5006138682365417, 0.2108609974384308, -0.41866713762283325, -1.3090298175811768, 0.08594076335430145, -0.17621752619743347, 0.9416666030883...
func (*Entry) Descriptor() ([]byte, []int) { return file_examples_documents_example_proto_rawDescGZIP(), []int{10} }
[ -0.18991176784038544, 0.2968655824661255, 0.29584765434265137, -0.34624820947647095, 0.544461727142334, -0.13532690703868866, 0.17131611704826355, 0.28334397077560425, 0.4985712468624115, -0.036080729216337204, -0.6990559101104736, 0.6255723834037781, 0.11519595235586166, 0.441182315349578...
func (*Entries) Descriptor() ([]byte, []int) { return file_examples_documents_example_proto_rawDescGZIP(), []int{11} }
[ -0.40807923674583435, 1.2244410514831543, 0.2612930238246918, -0.9946130514144897, 0.04555566608905792, -0.1991373747587204, 0.08101896941661835, 0.3190925121307373, 0.14437106251716614, -0.33013302087783813, -0.40448904037475586, 0.0556841641664505, -0.04050353169441223, 0.952168583869934...
func (*BytesKeyEntry) Descriptor() ([]byte, []int) { return file_examples_documents_example_proto_rawDescGZIP(), []int{12} }
[ 0.7239511609077454, 0.006109583657234907, 0.018121635541319847, -0.22654180228710175, 0.4982350766658783, -0.568134605884552, -0.6965770125389099, -0.4280337393283844, -0.16217000782489777, 0.20399117469787598, -1.359649658203125, 1.3619816303253174, -0.42669227719306946, 0.850319564342498...
func (*BytesKeyEntries) Descriptor() ([]byte, []int) { return file_examples_documents_example_proto_rawDescGZIP(), []int{13} }
[ 0.544719398021698, 0.25128141045570374, -0.19273486733436584, -0.20617543160915375, 0.00463138846680522, -0.5903355479240417, -0.43243011832237244, -0.18723006546497345, -0.29971620440483093, 0.28465262055397034, -1.422597885131836, 0.7926735281944275, -1.1829708814620972, 1.01035463809967...
func (*TwoLevelRepeatedDocument) Descriptor() ([]byte, []int) { return file_examples_documents_example_proto_rawDescGZIP(), []int{14} }
[ -0.5171483755111694, 0.08682919293642044, 0.19151227176189423, 0.05306467041373253, -0.5356972217559814, -0.7538320422172546, 0.8292179703712463, 0.08941909670829773, -1.132878065109253, -0.3306962251663208, -1.8292479515075684, 0.8698531985282898, -0.5288587808609009, 0.6411938667297363, ...
func (*SimpleRepeatedDocument) Descriptor() ([]byte, []int) { return file_examples_documents_example_proto_rawDescGZIP(), []int{15} }
[ -0.01986214891076088, 0.6375830173492432, 0.4353480339050293, -0.6323204040527344, -0.4039396047592163, -0.1513948142528534, 0.6323319673538208, 0.951383650302887, -0.30458372831344604, -0.6984213590621948, -2.1660728454589844, 0.7089989185333252, -1.1367900371551514, 0.3117956817150116, ...
func (*SimpleMapDocument) Descriptor() ([]byte, []int) { return file_examples_documents_example_proto_rawDescGZIP(), []int{16} }
[ -0.18860164284706116, -0.036571890115737915, 0.3803391456604004, -0.5578899383544922, -1.1055738925933838, 0.49925729632377625, 0.06056104600429535, 0.6439204216003418, 0.3899157643318176, -0.7107605338096619, -0.9240214824676514, 0.03759365901350975, -0.4009358584880829, 0.736146390438079...
func (*TwoLevelItem) Descriptor() ([]byte, []int) { return file_examples_documents_example_proto_rawDescGZIP(), []int{17} }
[ 0.016525015234947205, -0.6836743354797363, 0.4492691457271576, 0.6686162352561951, -0.4109692871570587, 0.1498224288225174, -0.13449962437152863, 0.5043168067932129, -1.4214798212051392, -0.44587889313697815, -1.2596793174743652, 0.7791714668273926, 0.2512248158454895, 0.7421315908432007, ...
func (*NestedRepeatedDocument) Descriptor() ([]byte, []int) { return file_examples_documents_example_proto_rawDescGZIP(), []int{18} }
[ -0.18599405884742737, 0.45886290073394775, 0.1421942263841629, 0.21628905832767487, -0.12087655067443848, -0.3852558135986328, 0.6944085359573364, 0.07550472021102905, -0.8251299262046814, -0.5893675088882446, -1.5407387018203735, 0.6499069929122925, -1.2093459367752075, -0.078064933419227...
func (*InvalidHashedFieldDocument) Descriptor() ([]byte, []int) { return file_examples_documents_example_proto_rawDescGZIP(), []int{19} }
[ 0.45268645882606506, 0.8658599853515625, -0.03337037190794945, 0.08335073292255402, -0.10722044110298157, -0.006885062903165817, 0.7938452363014221, 0.35096868872642517, -1.130651831626892, -1.22225022315979, -0.7078781127929688, 0.037868767976760864, -0.7815502285957336, 1.187920570373535...
func (*OneofSample) Descriptor() ([]byte, []int) { return file_examples_documents_example_proto_rawDescGZIP(), []int{20} }
[ -0.5245481133460999, 0.36446624994277954, 0.28668248653411865, -0.4484618902206421, -0.7949268221855164, -1.2831898927688599, 0.7418580651283264, -0.6683077812194824, 0.17353974282741547, -0.5137372612953186, -0.22990387678146362, 0.0873015969991684, -0.4899166524410248, 1.1640944480895996...
func (*LongDocument) Descriptor() ([]byte, []int) { return file_examples_documents_example_proto_rawDescGZIP(), []int{21} }
[ 0.20332778990268707, 0.6780576109886169, 0.39901795983314514, -1.1664625406265259, -0.5059774518013, -0.04825299605727196, 0.6401950120925903, 0.4668844938278198, -0.12742996215820312, -0.2684329152107239, -1.5866278409957886, 0.792486846446991, -0.5438846945762634, 0.9587315917015076, -...
func (*Integers) Descriptor() ([]byte, []int) { return file_examples_documents_example_proto_rawDescGZIP(), []int{22} }
[ -0.9257017970085144, 1.1315748691558838, 0.23664453625679016, -0.9373091459274292, -0.3767927289009094, -0.3866494596004486, -0.3648849427700043, -0.10542023181915283, -0.6439019441604614, -0.22381643950939178, -0.6494295597076416, 0.40376776456832886, -0.05844150111079216, 1.0577085018157...
func (*ContainSalts) Descriptor() ([]byte, []int) { return file_examples_documents_example_proto_rawDescGZIP(), []int{23} }
[ 0.8964064121246338, 0.5344477891921997, 0.0079127736389637, -0.8779522776603699, -0.6483656167984009, 0.32877394556999207, 0.40109705924987793, -0.577409029006958, -0.029044875875115395, -0.4860537350177765, 0.00939023308455944, 0.8952682018280029, -0.3953128755092621, 0.23189875483512878,...
func (*ExampleWithoutSalts) Descriptor() ([]byte, []int) { return file_examples_documents_example_proto_rawDescGZIP(), []int{24} }
[ 0.4748973250389099, 0.4529534876346588, 0.18816319108009338, -0.46439453959465027, -0.3641373813152313, 0.3639712929725647, -0.46826496720314026, 0.21324504911899567, -0.28464627265930176, -0.11744590103626251, -1.2273247241973877, -0.07650589942932129, -0.10076681524515152, 0.499392747879...
func (*Name) Descriptor() ([]byte, []int) { return file_examples_documents_example_proto_rawDescGZIP(), []int{25} }
[ -0.5126243829727173, 0.049489736557006836, 0.5098708868026733, -0.13759607076644897, -1.2975163459777832, -0.3014719486236572, 0.09909045696258545, -0.4362730383872986, -0.39253348112106323, 0.7196750640869141, -1.7180438041687012, -0.35057124495506287, 0.0807824581861496, 0.83576363325119...
func (*PhoneNumber) Descriptor() ([]byte, []int) { return file_examples_documents_example_proto_rawDescGZIP(), []int{26} }
[ -0.9033492803573608, 0.28230249881744385, 0.19281020760536194, -0.09822031110525131, -0.25297611951828003, -0.6988586783409119, -0.10447271913290024, 0.456089049577713, 0.40997061133384705, -1.3674629926681519, -0.8110107183456421, -0.18987128138542175, 0.10330371558666229, 1.1384872198104...
func (*ExampleNested) Descriptor() ([]byte, []int) { return file_examples_documents_example_proto_rawDescGZIP(), []int{27} }
[ 0.46208059787750244, 0.005969552788883448, 0.44082990288734436, -0.07559236884117126, 0.47265174984931946, 0.09447687864303589, -0.5063648819923401, 0.6621562242507935, -0.3960008919239044, -0.5882213711738586, -1.654435396194458, 1.1262279748916626, 0.10669776052236557, 0.1017160266637802...
func (*AppendFieldDocument) Descriptor() ([]byte, []int) { return file_examples_documents_example_proto_rawDescGZIP(), []int{28} }
[ -0.06854456663131714, 1.3338648080825806, 0.3075261116027832, -0.7551094889640808, -0.4422864317893982, -0.49623605608940125, 0.5545949339866638, 0.0014282296178862453, -0.48012053966522217, -0.4431822896003723, -0.6590145826339722, -0.13362491130828857, -0.5374229550361633, 1.122916817665...
func (*UnsupportedAppendDocument) Descriptor() ([]byte, []int) { return file_examples_documents_example_proto_rawDescGZIP(), []int{29} }
[ -0.7761150598526001, 1.1515750885009766, 0.37681448459625244, -0.3516494333744049, -1.067523717880249, -0.3956820070743561, 0.2622506022453308, 0.2297392040491104, -0.312420517206192, 0.4300897717475891, -0.0416690967977047, 0.631065309047699, -0.4726252555847168, 0.8863276243209839, 0.4...
func (*NoSaltDocument) Descriptor() ([]byte, []int) { return file_examples_documents_example_proto_rawDescGZIP(), []int{30} }
[ -0.2903957962989807, 0.7857959866523743, 0.07528100162744522, -0.9141119718551636, -0.20506365597248077, -0.2265884131193161, 1.091036319732666, -0.23095962405204773, -0.9891883134841919, -0.04698944091796875, -0.7808377146720886, 1.0798648595809937, -0.9515529274940491, 1.3338253498077393...
func (*ExampleWithPaddingField) Descriptor() ([]byte, []int) { return file_examples_documents_example_proto_rawDescGZIP(), []int{31} }
[ 0.5371378660202026, 0.3276604115962982, 0.39580094814300537, 0.0677066296339035, -0.40531864762306213, 0.31929323077201843, 0.1227978765964508, -0.19839252531528473, -0.45933011174201965, 0.636796236038208, -1.8986306190490723, -0.34570884704589844, -0.5542798042297363, 0.6876684427261353,...
func (*NamePadded) Descriptor() ([]byte, []int) { return file_examples_documents_example_proto_rawDescGZIP(), []int{32} }
[ 0.03641766682267189, 0.142356276512146, 0.5370761752128601, -0.8036506175994873, -0.5426534414291382, 0.4105255901813507, -0.14253519475460052, -0.6647984385490417, 0.10739164799451828, 0.2189708650112152, -1.9132567644119263, 0.7625352144241333, -0.32882243394851685, 1.0920650959014893, ...
func (*AppendFieldPaddingDocument) Descriptor() ([]byte, []int) { return file_examples_documents_example_proto_rawDescGZIP(), []int{33} }
[ 0.03902074694633484, 1.7109583616256714, 0.39799416065216064, -0.19463706016540527, -0.5918221473693848, -0.09020296484231949, 0.3304840624332428, 0.07317884266376495, -0.590295672416687, -0.17167828977108002, -0.7778075933456421, -0.30256184935569763, -0.8169899582862854, 1.11243152618408...
func GetPixel(pixelX, pixelY, imageWidth, imageHeight int, MinX, MaxX, MinY, MaxY float64, transformY func(float64, float64, float64) float64, transformX func(float64) float64) int { x_0 := scaleValue(float64(pixelX), float64(imageWidth), MaxX, MinX) y_0 := scaleValue(float64(pixelY), float64(imageHeight), Ma...
[ 0.13133440911769867, 0.5584585666656494, 0.7249321937561035, -0.3666153848171234, -0.17759892344474792, -0.4860442578792572, 0.1008915975689888, -0.3337247967720032, 0.10899646580219269, -0.171647846698761, -0.19050250947475433, 0.6478055715560913, 0.25495898723602295, -0.39561566710472107...
func TricornTransformY(x, y, y_0 float64) float64 { return -2*x*y + y_0 }
[ 0.7243565917015076, -0.8433179259300232, 0.3987759053707123, -1.1084463596343994, 0.7764052152633667, -0.7983376979827881, -0.09402679651975632, -0.16366225481033325, -0.7901681661605835, 0.2799054980278015, -0.3388996422290802, -0.10640230029821396, 0.6717246174812317, -0.2206550389528274...
func GetAnnotation() Annotation { once.Do(func() { ann = Build() ann.Header("kubebuilder") ann.Header("genclient") // Header can be applied to any annotations }) return ann }
[ 0.7646000385284424, -0.46681997179985046, 0.3745323419570923, 1.1900076866149902, 0.601913571357727, -0.03215603530406952, -0.1284284144639969, 0.0849321186542511, 0.2945746183395386, -0.5771417617797852, 0.0619986429810524, 0.7142747640609741, -0.5145041942596436, 0.23265010118484497, 0...
func ParseAnnotationByDir(dir string, ann Annotation) error { fset := token.NewFileSet() err := filepath.Walk(dir, func(path string, info os.FileInfo, err error) error { if !isGoFile(info) { return nil } return ParseAnnotationByFile(fset, path, nil, ann) }) return err }
[ 0.0835258811712265, 0.017090512439608574, 0.4247972071170807, 0.06280414760112762, -0.5601608753204346, -0.5398693680763245, 1.1309527158737183, -0.2307606190443039, -0.43239015340805054, 0.8193359375, -0.323265016078949, -0.19361644983291626, 0.06363143026828766, 0.9032662510871887, -0....
func ParseAnnotationByFile(fset *token.FileSet, path string, src interface{}, ann Annotation) error { f, err := parser.ParseFile(fset, path, src, parser.ParseComments) if err != nil { fmt.Printf("error from parse.ParseFile: %v", err) return err } // using commentMaps here because it sanitizes the comment text ...
[ 0.780749499797821, -0.7442807555198669, 0.5679576992988586, -0.32147088646888733, -0.3990910053253174, -0.09349528700113297, 0.8390575647354126, -0.1270873099565506, -1.0930453538894653, 0.769315242767334, 0.21681177616119385, -0.23006552457809448, -0.05549684539437294, 0.5644093155860901,...
func OldGetAnnotation(c, name string) string { prefix := fmt.Sprintf("+%s:", name) if strings.HasPrefix(c, prefix) { return strings.TrimPrefix(c, prefix) } return "" }
[ 0.2591637074947357, -0.30900707840919495, 0.7941871881484985, -1.2122924327850342, -0.841728925704956, -0.8152382969856262, -0.5065610408782959, -0.10673068463802338, 0.4895438849925995, 0.9932164549827576, 0.039430782198905945, 0.10388258099555969, 0.6101106405258179, -0.1068645566701889,...
func ParseAll(tks []token.Lexeme) ([]tree.Node, error) { itr := token.NewLexItr(tks) ctx := newCtx(itr, nil) return statements(ctx) }
[ 0.4487292170524597, -0.6902435421943665, 0.37727057933807373, 0.5576900839805603, -0.2789074182510376, 0.013553524389863014, -0.33587968349456787, 0.7559958696365356, -0.12075196951627731, 0.8489833474159241, 0.5954396724700928, -0.08574269711971283, -0.4599038064479828, 0.6287213563919067...
func singleAssign(ctx *context) (tree.Node, error) { var e error var s tree.SingleAssign s.Left, e = expectAssignee(ctx.Get()) if e != nil { return s, e } ctx.Next() s.Right, e = expectExpr(ctx) if e != nil { return s, e } return s, nil }
[ -0.911047101020813, -0.6044473648071289, 0.7060908079147339, -0.3213895559310913, -0.9679617881774902, -0.14262962341308594, 0.6524591445922852, 0.5861400365829468, 0.8623039126396179, 0.3046938180923462, 0.5452767014503479, 0.521631121635437, -0.16454416513442993, 1.0127172470092773, -0...
func (Stage) Name() string { return "setup" }
[ -1.104828953742981, -0.6315556764602661, 0.628860354423523, 0.7838165163993835, -1.6584653854370117, 0.2986867427825928, 1.0980864763259888, -0.43217501044273376, -0.11038476973772049, 1.2601494789123535, -0.7137720584869385, -0.5473319292068481, 0.5497254729270935, 1.156182050704956, -0...
func (Stage) String() string { return "performing pre-flight setup and checks" }
[ -0.391948401927948, -0.9623008370399475, 0.4563550651073456, 0.8911775350570679, -0.9153164625167847, 0.66411954164505, 1.7377345561981201, -0.7575491070747375, -0.5654641389846802, 0.2135421186685562, 0.613079845905304, 0.008804806508123875, 0.06373089551925659, 0.7406988739967346, 0.44...
func (Stage) Run(ctx *ctx.Context) error { log.Debug("checking if git exists on PATH") if !utils.BinExists("git") { return ErrGitNotFound } log.Debug("checking if directory is a git repo") if !utils.InRepo() { if err := ctx.CheckDryRun(ErrNotInRepo); err != nil { return err } } log.Debug("checking if ...
[ -0.7517840266227722, -0.5671769380569458, 0.711913526058197, -0.042250219732522964, 0.032548170536756516, 0.8700609803199768, 0.5340971946716309, -0.08461419492959976, -0.11958997696638107, 0.3754609525203705, 0.07074937969446182, 1.0298027992248535, 0.060708917677402496, 1.407025694847107...
func (listener *EventListener) StartEventSource(eventSource *gateways.EventSource, eventStream gateways.Eventing_StartEventSourceServer) error { defer server.Recover(eventSource.Name) log := listener.Logger.WithField(common.LabelEventSource, eventSource.Name) log.Info("started processing the event source...") dat...
[ 0.10193674266338348, -0.19933898746967316, 0.3886774778366089, -0.8798581957817078, -0.10215811431407928, -0.7715480923652649, 0.08802151679992676, 0.4740813076496124, 0.007456622086465359, 0.15512263774871826, -0.9586133360862732, 0.02101253904402256, -0.19826632738113403, 0.5330715179443...
func (listener *EventListener) listenEvents(eventSource *gateways.EventSource, dataCh chan []byte, errorCh chan error, doneCh chan struct{}) { var sqsEventSource *v1alpha1.SQSEventSource if err := yaml.Unmarshal(eventSource.Value, &sqsEventSource); err != nil { errorCh <- err return } var awsSession *session.S...
[ 0.4560486376285553, -0.8925110101699829, 0.6681016683578491, -1.7246114015579224, 0.08198073506355286, -0.2044517993927002, -0.3576394021511078, -0.004702317528426647, 0.6215316653251648, 0.18399877846240997, -0.7516226172447205, 0.2974843978881836, 0.31296879053115845, 0.31107547879219055...
func NewSmoothingModelContainerBuilder() *SmoothingModelContainerBuilder { r := SmoothingModelContainerBuilder{ &SmoothingModelContainer{}, } return &r }
[ 0.2803419530391693, 0.382074236869812, 0.01732143945991993, 1.3253990411758423, -0.33096447587013245, -0.03485959395766258, 0.4070615768432617, -0.418520987033844, -0.41007524728775024, -0.9301360249519348, -0.5417162775993347, -0.2765015661716461, 0.3058435916900635, 0.7375878691673279, ...
func (rb *SmoothingModelContainerBuilder) Build() SmoothingModelContainer { return *rb.v }
[ 0.3609442412853241, -0.1699542999267578, 0.15806573629379272, 0.8457292318344116, 0.2825539708137512, -0.18545131385326385, 1.1724953651428223, -0.8607109189033508, -0.14998719096183777, -0.8110617995262146, -0.2689971327781677, 0.2934383153915405, -0.20994846522808075, 0.7922760844230652,...
func New( azureEnvironment azure.Environment, armDeployer arm.Deployer, serversClient sqlSDK.ServersClient, databasesClient sqlSDK.DatabasesClient, failoverGroupsClient sqlSDK.FailoverGroupsClient, ) service.Module { commonDatabasePairMgr := commonDatabasePairManager{ armDeployer: armDeployer, databa...
[ -0.03887387737631798, -0.36472246050834656, 0.5148648023605347, -1.1908215284347534, 0.3180612623691559, 0.569505512714386, 0.6759905815124512, -0.15877844393253326, -0.20776154100894928, 0.20619457960128784, 0.4499371349811554, 0.6829267740249634, -0.3570176959037781, 1.2140858173370361, ...
func TestBasicMethodChannelStringCodecSend(t *testing.T) { codec := StringCodec{} messenger := NewTestingBinaryMessenger() messenger.MockSetChannelHandler("ch", func(encodedMessage []byte, r ResponseSender) error { message, err := codec.DecodeMessage(encodedMessage) if err != nil { return errors.Wrap(err, "fa...
[ 0.6787011027336121, -0.5125584006309509, 0.8689612746238708, -0.42220696806907654, 0.17324067652225494, 0.47914713621139526, -0.2050742357969284, -1.1682480573654175, 0.02930520661175251, -0.3556186556816101, -0.04896386340260506, 0.8253217935562134, -0.7387549877166748, -0.034636639058589...
func TestBasicMethodChannelStringCodecHandle(t *testing.T) { codec := StringCodec{} messenger := NewTestingBinaryMessenger() channel := NewBasicMessageChannel(messenger, "ch", codec) channel.HandleFunc(func(message interface{}) (reply interface{}, err error) { messageString, ok := message.(string) if !ok { r...
[ 0.5182392001152039, -0.509318470954895, 0.8505452871322632, -0.6820245385169983, 0.3870660960674286, 0.5331690311431885, 0.03020455129444599, -0.9247353672981262, 0.11122586578130722, -0.7467390298843384, 0.3978922367095947, 0.8643701672554016, -0.9029430150985718, -0.29437902569770813, ...
func TestBasicMethodChannelBinaryCodecSend(t *testing.T) { codec := BinaryCodec{} messenger := NewTestingBinaryMessenger() messenger.MockSetChannelHandler("ch", func(encodedMessage []byte, r ResponseSender) error { message, err := codec.DecodeMessage(encodedMessage) if err != nil { return errors.Wrap(err, "fa...
[ 0.5804117321968079, -0.20174013078212738, 0.9358834624290466, -0.393974632024765, 0.45446205139160156, 0.22610127925872803, -0.1583254337310791, -1.16570246219635, 0.12827704846858978, -0.4795669913291931, -0.4570770263671875, 0.988528311252594, -0.7911785840988159, 0.48263654112815857, ...
func TestBasicMethodChannelBinaryCodecHandle(t *testing.T) { codec := BinaryCodec{} messenger := NewTestingBinaryMessenger() channel := NewBasicMessageChannel(messenger, "ch", codec) channel.HandleFunc(func(message interface{}) (reply interface{}, err error) { messageBytes, ok := message.([]byte) if !ok { re...
[ 0.41659316420555115, -0.13975423574447632, 0.9431888461112976, -0.4600703716278076, 0.7180151343345642, 0.35594916343688965, 0.07201122492551804, -1.0419163703918457, 0.2851931154727936, -0.8877720832824707, -0.07676228880882263, 0.9488038420677185, -0.9703689813613892, 0.3344291150569916,...
func (*VacancyV1) Descriptor() ([]byte, []int) { return file_api_ocp_vacancy_api_ocp_vacancy_api_proto_rawDescGZIP(), []int{0} }
[ -0.8086095452308655, -0.050222188234329224, 0.23842865228652954, 0.4700092375278473, -0.0488114133477211, 0.17382732033729553, 0.3023513853549957, 0.3745027482509613, 0.1707204431295395, 0.45286205410957336, 0.4513942003250122, 0.8644810318946838, -0.12369906902313232, 0.29086655378341675,...
func (*CreateVacancyV1Request) Descriptor() ([]byte, []int) { return file_api_ocp_vacancy_api_ocp_vacancy_api_proto_rawDescGZIP(), []int{1} }
[ -1.2882568836212158, 0.37363171577453613, 0.27412140369415283, 0.3010457158088684, -0.28352221846580505, 0.6243774890899658, 0.38431626558303833, -0.39837291836738586, 0.0071496497839689255, 0.6695267558097839, 0.7673357725143433, -0.10502538084983826, -0.5463604927062988, 0.80416738986968...
func (*CreateVacancyV1Response) Descriptor() ([]byte, []int) { return file_api_ocp_vacancy_api_ocp_vacancy_api_proto_rawDescGZIP(), []int{2} }
[ -0.7928841710090637, 0.26812708377838135, 0.12364806979894638, 0.11452057212591171, -0.0991799458861351, 0.08473758399486542, 0.841170072555542, -0.797883927822113, -0.12114714831113815, 0.9897215366363525, -0.2542363107204437, -0.5315582156181335, -1.1197700500488281, -0.07820416986942291...
func (*UpdateVacancyV1Request) Descriptor() ([]byte, []int) { return file_api_ocp_vacancy_api_ocp_vacancy_api_proto_rawDescGZIP(), []int{3} }
[ -2.1162900924682617, -0.20462951064109802, 0.41545939445495605, 0.40603089332580566, -0.6228708028793335, 0.19882558286190033, 0.4212019741535187, -0.0003646239638328552, 0.16281622648239136, 0.8956876993179321, 0.7032790780067444, 0.2575036585330963, -0.286875456571579, 0.0940018892288208...
func (*UpdateVacancyV1Response) Descriptor() ([]byte, []int) { return file_api_ocp_vacancy_api_ocp_vacancy_api_proto_rawDescGZIP(), []int{4} }
[ -1.5317816734313965, -0.47721073031425476, 0.4217551052570343, 0.44412481784820557, -0.44643858075141907, -0.0934806615114212, 0.806645393371582, -0.25966179370880127, 0.11988429725170135, 1.4810171127319336, -0.04580671712756157, -0.3277047574520111, -0.6374760866165161, -0.64533317089080...
func (*DescribeVacancyV1Request) Descriptor() ([]byte, []int) { return file_api_ocp_vacancy_api_ocp_vacancy_api_proto_rawDescGZIP(), []int{5} }
[ -1.2060604095458984, 0.8926502466201782, 0.5203409790992737, -0.02924545481801033, -0.16861070692539215, 0.19676323235034943, 0.12029900401830673, -0.18733377754688263, 0.14214864373207092, 0.5183817148208618, 0.6274077296257019, 1.3509876728057861, -0.6534264087677002, 0.4920707941055298,...
func (*DescribeVacancyV1Response) Descriptor() ([]byte, []int) { return file_api_ocp_vacancy_api_ocp_vacancy_api_proto_rawDescGZIP(), []int{6} }
[ -0.9300894737243652, 0.8960705399513245, 0.5160448551177979, 0.06478409469127655, -0.17324914038181305, -0.015912668779492378, 0.6562393307685852, -0.4105796813964844, 0.033520713448524475, 1.0819077491760254, -0.19209042191505432, 0.5713703036308289, -1.0722260475158691, -0.54197198152542...
func (*ListVacanciesV1Request) Descriptor() ([]byte, []int) { return file_api_ocp_vacancy_api_ocp_vacancy_api_proto_rawDescGZIP(), []int{7} }
[ -1.3524667024612427, 0.6450937390327454, 0.4835709035396576, -0.5850872993469238, -0.24834389984607697, 0.1875038743019104, -0.07591906934976578, -0.27715763449668884, 0.9428921937942505, -0.09054948389530182, 0.26762694120407104, 0.10845214873552322, 0.057097699493169785, 1.15325999259948...
func (*ListVacanciesV1Response) Descriptor() ([]byte, []int) { return file_api_ocp_vacancy_api_ocp_vacancy_api_proto_rawDescGZIP(), []int{8} }
[ -0.618573784828186, 0.45793676376342773, 0.27590250968933105, -0.4017692506313324, -0.30207139253616333, -0.18135018646717072, 0.4943713843822479, -0.28629979491233826, 0.7505505084991455, 0.33446207642555237, -0.5501280426979065, -0.3999035060405731, -0.22459657490253448, 0.29220062494277...
func (*RemoveVacancyV1Request) Descriptor() ([]byte, []int) { return file_api_ocp_vacancy_api_ocp_vacancy_api_proto_rawDescGZIP(), []int{9} }
[ -1.6550238132476807, 0.09599275141954422, 0.5915741920471191, 0.2238980233669281, -0.6954596042633057, -0.009475580416619778, 0.3902401626110077, 0.4272393584251404, 0.25317180156707764, 0.6372120380401611, 0.5394660234451294, -0.1376979649066925, -0.6712602376937866, 0.5385134220123291, ...
func (*RemoveVacancyV1Response) Descriptor() ([]byte, []int) { return file_api_ocp_vacancy_api_ocp_vacancy_api_proto_rawDescGZIP(), []int{10} }
[ -1.054221510887146, -0.0005585780600085855, 0.41607844829559326, 0.049252960830926895, -0.1979486495256424, -0.3664662837982178, 0.9635086059570312, 0.26114174723625183, 0.05766448378562927, 1.0777939558029175, -0.29182085394859314, -0.7336927056312561, -1.078244686126709, -0.4654474556446...
func (*MultiCreateVacanciesV1Request) Descriptor() ([]byte, []int) { return file_api_ocp_vacancy_api_ocp_vacancy_api_proto_rawDescGZIP(), []int{11} }
[ -1.4786244630813599, 0.8113309741020203, 0.20050571858882904, 0.2893976867198944, 0.05593439191579819, 0.45031774044036865, -0.09768281131982803, -0.7196148633956909, -0.15832871198654175, -0.5005919933319092, -0.08637622743844986, -0.4783724248409271, -0.3897932767868042, 1.34326016902923...
func (*MultiCreateVacanciesV1Response) Descriptor() ([]byte, []int) { return file_api_ocp_vacancy_api_ocp_vacancy_api_proto_rawDescGZIP(), []int{12} }
[ -0.896555483341217, 0.7972321510314941, -0.08104539662599564, 0.3922356963157654, -0.0063952612690627575, 0.030726958066225052, 0.3590891361236572, -0.6016225218772888, -0.25416311621665955, -0.14098507165908813, -0.9047883152961731, -0.916225254535675, -0.8076329827308655, 0.6701568961143...
func PlayGame(p1 Player, p2 Player, simulation bool) Player { if simulation { //hvis turneringen er i simuleringsmodus winner = simulateGame(p1, p2) return winner } runde = 1 board = map[int]string{ // Lagrer spillets trekk. Tomme felt forblir tall som representerer posisjonen dens på brettet. 1: "1", 2: "2...
[ -0.42239001393318176, 0.6961199045181274, 0.8210923075675964, 0.6156272888183594, -0.7633957266807556, 0.6002015471458435, 0.312552273273468, 0.08047850430011749, -0.4061379134654999, 0.6845017671585083, 0.5256832838058472, -0.1623576134443283, -0.6984654664993286, 0.34919124841690063, -...
func simulateGame(p1 Player, p2 Player) Player { rand.Seed(time.Now().UnixNano()) //forandrer seedet etter hva tiden er. var rng int = rand.Intn(2) var winner Player if rng == 0 { winner = p1 } else { winner = p2 } return winner }
[ -0.5693288445472717, 0.5948421955108643, 0.7139863967895508, -0.011872220784425735, -0.5203621983528137, 0.6452275514602661, -0.7402610182762146, -0.11601999402046204, -0.04919285327196121, 0.4816487729549408, 0.23254723846912384, -0.30865228176116943, -0.5037020444869995, -0.0038401447236...
func printBoard() { line := " ------------- " wall := " | " shiftLine := 0 fmt.Println("\n" + line) for g := 0; g < 3; g++ { // Printer ut brettet, en linje om gangen. for i := 1; i <= 3; i++ { fmt.Print(wall, board[i+shiftLine]) } fmt.Println(wall) shiftLine += 3 fmt.Println(line) } }
[ 0.5664736032485962, 0.8907908797264099, 0.9052309393882751, 0.7746976017951965, 0.47489652037620544, 1.0027921199798584, 0.18273919820785522, -0.046913329511880875, -0.9399116635322571, -0.31440338492393494, 0.04527159035205841, 0.5435322523117065, -0.7811436057090759, 0.5460385084152222, ...
func newRoundOrGameOver(p1 Player, p2 Player) { newRound: winningCombos := [][]int{{1, 2, 3}, {4, 5, 6}, {7, 8, 9}, {1, 4, 7}, {2, 5, 8}, {3, 6, 9}, {1, 5, 9}, {3, 5, 7}} p1, p2 = placeMove(p1, p2) // plasserer brikken i på brettet og oppdaterer hver spiller har brukt. printBoard() for i := 0; i < len(winningCombo...
[ -0.15576645731925964, -0.2786727845668793, 1.0465770959854126, 0.4618111550807953, -0.5815162062644958, 0.23340590298175812, 0.4116758108139038, -0.4923078417778015, -0.8829860687255859, 1.2613353729248047, -0.06612903624773026, 1.0232797861099243, -0.15694008767604828, 0.8088430166244507,...
func prefixHandler(query string) (string, string) { if strings.HasPrefix(query, "<=") || strings.HasPrefix(query, ">=") { return query[:2], query[2:] } else if strings.HasPrefix(query, "<") || strings.HasPrefix(query, ">") { return query[:1], query[1:] } else if strings.HasPrefix(query, "(") { return "star...
[ -0.5181736946105957, -0.6383379101753235, 0.6792812347412109, -0.979523777961731, -0.6936598420143127, -0.07653810828924179, -0.44971874356269836, -0.5603892207145691, 0.6196070909500122, 0.6696106195449829, 0.5997611284255981, -0.2505991458892822, -0.5803554058074951, 0.22692951560020447,...
func typeToOp(valueType string, op string) string { switch valueType { case "string": if op == "default" { return "contains" } default: if op == "default" { return "=" } } return op }
[ -0.754973828792572, -0.4912903904914856, 0.42035725712776184, -0.04440788924694061, 0.6600403189659119, 0.016964692622423172, -0.6037243604660034, -1.2711901664733887, -0.014294769614934921, 1.9830889701843262, 0.6256890296936035, 0.28577834367752075, -0.02127239853143692, -1.2819750308990...
func queryBuilder(jsonq *gojsonq.JSONQ, query, op, value string) { jsonq.Where(query, typeToOp("string", op), value) newOp := typeToOp("notString", op) if v, err := strconv.ParseInt(value, 10, 64); err == nil { jsonq.OrWhere(query, newOp, v) } if v, err := strconv.ParseFloat(value, 64); err == nil { jsonq.OrWh...
[ -0.4855464696884155, -0.1926703006029129, 0.5141444206237793, -0.08422200381755829, -0.9692094922065735, 0.019243359565734863, -0.5516303777694702, -0.05687997117638588, 0.19007311761379242, -0.08102577179670334, 0.006105424370616674, -0.8761482238769531, 0.24317722022533417, -0.3712601959...
func AutoQuery(jsonq *gojsonq.JSONQ, values url.Values, limit, offset int) interface{} { data := jsonq.Copy() for query, value := range values { if query == "limit" || query == "offset" { continue } for _, el := range value { op, cleanValue := prefixHandler(el) queryBuilder(data, query, op, cleanValue)...
[ -0.34371256828308105, -0.3107357621192932, 0.6304036378860474, -0.31571245193481445, -0.704170823097229, -0.3401820659637451, -0.5771228075027466, 0.06650097668170929, -0.033301930874586105, -0.3955557942390442, 0.33835941553115845, 0.6939613819122314, 0.3474087715148926, -0.31814584136009...
func InterfaceMacro(value interface{}, key interface{}) (bool, error) { keyString, ok := key.(string) if !ok { return false, fmt.Errorf("%v must be a string", key) } rawBytes, err := json.Marshal(value) if err != nil { return false, err } return strings.Contains(strings.ToLower(string(rawBytes)), strings...
[ -0.19465893507003784, 0.17844191193580627, 0.8570004105567932, 0.0153676001355052, -1.3629623651504517, -0.20969341695308685, -0.8238276839256287, -0.42886489629745483, -0.6901164054870605, 1.2564475536346436, 0.09449522942304611, 0.6495944261550903, -0.6863508224487305, 0.3225539922714233...
func (c *Cert) TLS() *tls.Certificate { if c.leaf == nil { log.Panicf("cert TLS called with nil leaf!") } return c.leaf }
[ 1.2625343799591064, 0.3189624547958374, 0.34679168462753296, -0.1015535295009613, -0.30589962005615234, 0.2726404666900635, -0.27451568841934204, -0.7507572174072266, 1.0596765279769897, -0.7539960145950317, 0.5227298736572266, -0.5700453519821167, -0.7331089377403259, -0.08267141133546829...
func (g *GlobalHaState) RotateRoot(templateMaker func() (*x509.Certificate, error)) (err error) { // Generate an initial certificate root. var template *x509.Certificate template, err = templateMaker() if err != nil { return } var finalCert *tls.Certificate finalCert, err = makeCert(template, nil) if err != n...
[ 0.32363149523735046, 0.23500773310661316, 0.6375510096549988, 0.40065595507621765, -0.4050429165363312, 0.05440931394696236, 0.4002249240875244, -0.24217136204242706, 0.15882006287574768, 0.46168050169944763, -0.053756233304739, 1.0075061321258545, -0.3340252935886383, 0.2525835335254669, ...
func (c *CurrentHAState) EndpointCert(templateMaker func() (*x509.Certificate, error)) (*tls.Certificate, error) { tmpl, err := templateMaker() if err != nil { return nil, err } addr, _, err := net.SplitHostPort(c.ConsensusAddr) if err != nil { return nil, err } tmpl.IPAddresses = []net.IP{net.ParseIP(addr)}...
[ 0.4303031861782074, 0.3348546326160431, 0.49916163086891174, -0.719796895980835, -0.3801371455192566, 0.2676393687725067, 0.06572258472442627, 0.271786093711853, -0.4108332395553589, 0.7362011671066284, 1.049019694328308, -0.5563412308692932, -0.6282894611358643, -0.2612474262714386, -0....
func (c *CurrentHAState) OurIp() (string, error) { if !c.Enabled { return "", errors.New("HA not enabled") } if c.ConsensusAddr != "" { return c.VirtAddr, nil } if c.LoadBalanced { return c.VirtAddr, nil } ip, _, err := net.ParseCIDR(c.VirtAddr) return ip.String(), err }
[ 0.042747389525175095, -0.8637620210647583, 0.5343264937400818, 0.38932138681411743, -0.12131323665380478, -0.6030296683311462, -0.6000837087631226, 0.8578375577926636, 0.16471445560455322, 0.7925673127174377, 0.9731154441833496, -0.4705372750759125, -0.21408702433109283, -0.667750537395477...
func (cOpts *CurrentHAState) Validate() error { // Validate HA args. if !cOpts.Enabled { return nil } ourAddrs, err := net.InterfaceAddrs() if err != nil { return err } consensusAddr := "" consensusPort := "" if cOpts.ConsensusAddr != "" { consensusAddr, consensusPort, err = net.SplitHostPort(cOpts.Con...
[ 0.4123777151107788, -0.461772620677948, 0.7667996883392334, -0.3939036428928375, 0.5367259383201599, 0.3445524573326111, -0.04104438051581383, 0.050008781254291534, -0.13313423097133636, 0.3080478608608246, 1.2871556282043457, 0.11488565057516098, -0.5038214325904846, 0.7761124968528748, ...
func GetHaState(base string) (*CurrentHAState, error) { haStateFile := path.Join(base, "ha-state.json") stateFi, err := os.OpenFile(haStateFile, os.O_CREATE|os.O_RDONLY, 0644) if err != nil { return nil, err } defer stateFi.Close() dec := json.NewDecoder(stateFi) st := &CurrentHAState{} if err = dec.Decode(st...
[ 0.2694469094276428, 0.009594745002686977, 0.7244901657104492, 0.3617610037326813, -0.22395935654640198, 0.26633113622665405, -0.6930321455001831, 0.23691275715827942, -0.8814427256584167, 0.06941637396812439, 0.19426549971103668, -0.7269585132598877, -0.3376038670539856, -0.240659281611442...
func SetHaState(base string, state *CurrentHAState) error { haStateFile := path.Join(base, "ha-state.json") stateFi, err := ioutil.TempFile(base, ".ha-state-") if err != nil { return err } state.Valid = true defer os.Remove(stateFi.Name()) defer stateFi.Close() stateFi.Truncate(0) enc := json.NewEncoder(stat...
[ 0.7577685713768005, -0.23504604399204254, 0.8534895777702332, -0.11440543085336685, -0.41553428769111633, 0.23565763235092163, -0.4743396043777466, 0.5111579895019531, -0.6333816051483154, 0.5538617372512817, -0.4457414150238037, -0.15988248586654663, 0.516139805316925, 0.13260525465011597...
func init() { cobra.OnInitialize(configInit) rootCmd.PersistentFlags().StringP( "format", "f", "{{padlen .NameValue 20}}\t{{.NotBefore}}\t{{.NotAfter}}", "Output formatting (go template).\n Possible items are IssuerCaID, IssuerName, "+ "NameValue, MinCertID, MinEntryTimestamp, NotBefore, NotAfter.\n", ) ...
[ 0.40071573853492737, -0.2865011692047119, 0.6908589601516724, 0.07440920174121857, 0.20525547862052917, 0.019103096798062325, 0.3193663954734802, 0.13550400733947754, -0.7128049731254578, 0.022717310115695, -0.10797475278377533, 0.5161135196685791, 0.04965700954198837, 1.5017151832580566, ...
func luaGetSession(L *lua.LState, sess *core.MilterSession) lua.LValue { ud := L.NewUserData() ud.Value = sess L.SetMetatable(ud, L.GetTypeMetatable("session")) L.Push(ud) return ud }
[ -0.80218505859375, 0.1195102334022522, 0.41092368960380554, -0.9875106811523438, -0.6754549741744995, 0.22017648816108704, -0.6672170162200928, -0.9620233774185181, 1.4730665683746338, 0.02373124472796917, -0.2166435718536377, 0.846068799495697, 0.48637792468070984, -0.5775461792945862, ...
func RunServer() { sess = session.Must(session.NewSession()) r := mux.NewRouter() r.PathPrefix("/debug/pprof/").Handler(http.DefaultServeMux) r.HandleFunc("/warmup/{funcName}", proxyWarmupHandler) r.HandleFunc("/{funcName}", proxyHandler) srv := &http.Server{ Handler: r, Addr: ":8000", WriteTim...
[ -1.3232349157333374, -0.7338510751724243, 0.7765870094299316, -0.18525202572345734, 0.6666185855865479, 0.08161763846874237, 0.4390665292739868, 1.1182883977890015, 0.21935304999351501, -1.1338361501693726, -0.5152687430381775, 0.5281739234924316, -0.5980932116508484, 0.20907717943191528, ...
func (client *Client) SearchMultiAccountResources(request *SearchMultiAccountResourcesRequest) (response *SearchMultiAccountResourcesResponse, err error) { response = CreateSearchMultiAccountResourcesResponse() err = client.DoAction(request, response) return }
[ -0.1735389083623886, -0.09737196564674377, 0.2853050231933594, 0.5447365641593933, -0.2707587778568268, -0.6294374465942383, 0.7432761788368225, -0.17706215381622314, -0.3543197214603424, -0.515397310256958, -0.42993250489234924, -0.5576586723327637, -0.5813292860984802, 0.3871373534202575...
func (client *Client) SearchMultiAccountResourcesWithChan(request *SearchMultiAccountResourcesRequest) (<-chan *SearchMultiAccountResourcesResponse, <-chan error) { responseChan := make(chan *SearchMultiAccountResourcesResponse, 1) errChan := make(chan error, 1) err := client.AddAsyncTask(func() { defer close(resp...
[ -0.3229402005672455, -0.46980440616607666, 0.3932797312736511, -0.19790737330913544, -0.2834707498550415, -0.3374175727367401, 0.6230080127716064, -0.38313281536102295, 0.14350803196430206, -0.5210184454917908, 0.23712202906608582, -0.17943398654460907, -0.31536704301834106, 0.560035228729...
func (client *Client) SearchMultiAccountResourcesWithCallback(request *SearchMultiAccountResourcesRequest, callback func(response *SearchMultiAccountResourcesResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { var response *SearchMultiAccountResourcesResponse var err...
[ -0.056133367121219635, 0.043910909444093704, 0.6486998200416565, -0.02292703278362751, -0.4146708548069, -0.5396366119384766, 0.8503217697143555, -0.36565062403678894, 0.584553599357605, -0.2654452621936798, 0.3140062689781189, -1.1013445854187012, -0.07818882167339325, 0.6374805569648743,...
func CreateSearchMultiAccountResourcesRequest() (request *SearchMultiAccountResourcesRequest) { request = &SearchMultiAccountResourcesRequest{ RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("ResourceCenter", "2022-12-01", "SearchMultiAccountResources", "", "") request.Method = requests.POST return...
[ -0.03087128885090351, -0.4032190144062042, 0.30887630581855774, -0.15342485904693604, -0.049806125462055206, -0.42700380086898804, 0.5245859026908875, -0.08325594663619995, -0.5138489007949829, -0.6273577809333801, -0.17386338114738464, -0.4809625744819641, -0.47488176822662354, 0.80851376...
func CreateSearchMultiAccountResourcesResponse() (response *SearchMultiAccountResourcesResponse) { response = &SearchMultiAccountResourcesResponse{ BaseResponse: &responses.BaseResponse{}, } return }
[ 0.300699919462204, -0.9280487298965454, -0.19170795381069183, -0.13637374341487885, 0.012562379240989685, -0.7504504919052124, 0.8401244878768921, -0.47225421667099, 0.01697644405066967, -0.22432689368724823, -0.7560245990753174, -1.6934123039245605, -0.8231829404830933, 0.3401679098606109...
func NewGreeterClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *GreeterClient { return &GreeterClient{ c: thrift.NewTStandardClient(f.GetProtocol(t), f.GetProtocol(t)), } }
[ 0.27325439453125, -0.7393011450767517, 0.29224124550819397, -0.8363626599311829, -0.6165464520454407, 0.5859709978103638, 0.17345067858695984, -0.39609143137931824, -0.912920355796814, 0.03647248446941376, -0.2340065985918045, 0.05118780583143234, -0.22070635855197906, -0.43625518679618835...
func NewGreeterClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *GreeterClient { return &GreeterClient{ c: thrift.NewTStandardClient(iprot, oprot), } }
[ 0.6169318556785583, -0.4392559230327606, 0.289008766412735, -0.5129192471504211, -0.8488269448280334, 0.7608311176300049, 0.18039996922016144, -0.7860048413276672, -0.8899424076080322, 0.5943778157234192, -0.9998122453689575, -0.08271840959787369, -0.8357201218605042, -0.7853180170059204, ...
func NewLoadBalancersFromELBv2(loadBalancers []*elbv2.LoadBalancer, loadBalancerArnToTargets map[string][]*elbv2.TargetDescription) LoadBalancers { models := make(LoadBalancers, 0, len(loadBalancers)) for _, lb := range loadBalancers { targets := loadBalancerArnToTargets[*lb.LoadBalancerArn] if len(targets) == 0...
[ -0.3726581335067749, -1.4201334714889526, 0.4545855224132538, 0.5167562365531921, 0.7584789991378784, 0.33455607295036316, -1.603216290473938, -0.6081250905990601, 0.2653046250343323, 0.3095603287220001, -0.08656827360391617, 0.7208204865455627, -0.4406469762325287, 0.7354437708854675, 0...
func (lbs LoadBalancers) String() string { return strings.Join(lbs.NameSlice(), ",") }
[ 0.3922668993473053, -1.0899722576141357, 0.3862840533256531, -0.6758673787117004, 0.22624728083610535, 1.3619409799575806, -1.31239652633667, -1.740553617477417, 0.07678140699863434, 0.7880789637565613, -0.3100143373012543, 0.40574297308921814, -0.9544429183006287, 0.12833915650844574, 0...
func (lbs LoadBalancers) NameSlice() []string { names := make([]string, 0, len(lbs)) for _, lb := range lbs { names = append(names, lb.Name) } return names }
[ -0.8425917029380798, -0.9337204694747925, 0.7059553861618042, -0.0032832538709044456, 0.3538631796836853, 0.6342219114303589, -1.7290107011795044, -1.2782628536224365, -0.3753494918346405, 1.0731273889541626, -0.7593123316764832, -0.10651947557926178, -0.7319133281707764, 0.953570365905761...
func (lbs LoadBalancers) NamePointerSlice() []*string { names := make([]*string, 0, len(lbs)) for _, lb := range lbs { name := lb.Name names = append(names, &name) } return names }
[ -0.7113760113716125, -1.447260856628418, 0.6119335293769836, -0.5545095205307007, -0.2850553095340729, 0.784616231918335, -1.8737819194793701, -1.7623000144958496, -0.18784411251544952, 1.5348373651504517, -0.1330908089876175, -0.329019695520401, -1.137841820716858, 1.1615248918533325, 0...
func (l *LoadBalancer) String() string { return l.Name }
[ 0.6893060803413391, -1.127173662185669, 0.050982601940631866, -0.2860512435436249, -0.8250734210014343, 1.2946741580963135, -0.5667037963867188, -1.6872684955596924, -0.012955007143318653, 0.4528222978115082, -0.39051347970962524, 0.5549418926239014, -0.8631690144538879, 0.7747266888618469...
func ColumnTypes() []ColumnType { return []ColumnType{ColumnTypeString, ColumnTypeFloat, ColumnTypeInteger, ColumnTypeBoolean} }
[ -0.1162157654762268, -0.08701857924461365, 0.23826198279857635, 0.736739456653595, 0.8525619506835938, -0.8569318056106567, -0.10570168495178223, -0.4527810215950012, -0.14249901473522186, -0.208174467086792, -1.4798643589019775, -0.2055906355381012, -1.0940965414047241, 0.2150022089481353...
func (a *HTTPCachesApiService) DeleteHttpCacheZoneStat(ctx context.Context, httpCacheZoneName string) ( *http.Response, error) { var ( localVarHttpMethod = strings.ToUpper("Delete") localVarPostBody interface{} localVarFileName string localVarFileBytes []byte ) // create path and map variables localVarPath...
[ -0.6551348567008972, -0.7048808336257935, 0.9247485995292664, -0.4335267245769501, -0.9514636993408203, 0.19808155298233032, 0.5941749215126038, -0.6365122199058533, -0.33243420720100403, 0.0470825731754303, -0.2725808620452881, 0.7569429874420166, -1.0130949020385742, 0.5526619553565979, ...
func NewRegistry(registry *prometheus.Registry) MetricsRegistry { return &promRegistryFacade{Registry: registry} }
[ 0.31049084663391113, 1.2298845052719116, 0.0638919249176979, 0.18728607892990112, 0.22429023683071136, -0.466797798871994, 0.5792236924171448, -0.1380590945482254, 0.3238104581832886, -0.17215663194656372, 0.0905153751373291, 1.0300686359405518, -1.0229666233062744, 0.4951417148113251, -...
func stripTrailingSpace(str string) string { buf := bytes.NewBuffer(nil) scan := bufio.NewScanner(strings.NewReader(str)) for scan.Scan() { buf.WriteString(strings.TrimRight(scan.Text(), " \t\r\n")) buf.WriteString("\n") } return buf.String() }
[ 0.4224812388420105, -0.514295756816864, 0.29651108384132385, -0.8447433114051819, -1.1830368041992188, 0.6234130859375, -0.02681337110698223, 0.14470984041690826, 0.1040332019329071, -0.06718488037586212, -0.7346756458282471, -0.2776431441307068, -0.20502087473869324, -0.2768602967262268, ...
func MarshalToDB(fromValue interface{}) (interface{}, bool) { switch fromValue.(type) { case primitive.ObjectID: return fromValue, true case bool: return fromValue, true case string: return fromValue, true case int: return int32(fromValue.(int)), true case int8: return int32(fromValue.(int8)), true cas...
[ 0.27514582872390747, -0.4325730502605438, 1.0004984140396118, 0.017180413007736206, -0.8743026852607727, -0.04405162110924721, 0.06548604369163513, -0.3150177299976349, 0.5034812092781067, 0.18607567250728607, 0.3001146614551544, 0.6471526622772217, -0.6090052127838135, 0.4037664234638214,...
func newFletcher32Reader(r io.Reader, size uint64) remReader { assert(size >= 4, "bad size for fletcher") return &fletcher{ r: r, size: size, count: 0, sum1: 0, sum2: 0, partial: 0, checksum: 0, readChecksum: false, } }
[ 0.9045981764793396, -0.5401465892791748, 0.35485726594924927, -0.2994595170021057, -0.9508116841316223, -0.047597844153642654, -0.0272854994982481, -0.3973008394241333, 0.10072126239538193, -1.1477254629135132, -0.16317132115364075, -0.37555521726608276, -0.14328277111053467, 0.34540146589...