text
stringlengths
11
6.3k
embedding
listlengths
768
768
func (o RentalRowerSlice) DeleteAll(exec boil.Executor) (int64, error) { if o == nil { return 0, errors.New("models: no RentalRower slice provided for delete all") } if len(o) == 0 { return 0, nil } if len(rentalRowerBeforeDeleteHooks) != 0 { for _, obj := range o { if err := obj.doBeforeDeleteHooks(exe...
[ -0.1463327407836914, 0.06477154791355133, 1.0195581912994385, 0.598622739315033, -0.054447662085294724, -0.49014055728912354, 0.4631081521511078, 0.24603284895420074, -0.21561814844608307, 0.45086151361465454, 0.36594662070274353, 0.28510600328445435, 0.19931387901306152, 1.288225054740905...
func (o *RentalRower) ReloadG() error { if o == nil { return errors.New("models: no RentalRower provided for reload") } return o.Reload(boil.GetDB()) }
[ -0.964489221572876, 1.366343379020691, 0.5050919651985168, 1.1679428815841675, -0.04467625543475151, 0.10458549112081528, -0.11300726234912872, 0.15966777503490448, -0.6348912715911865, 0.4147830605506897, -0.02896791882812977, -0.034324731677770615, 0.10106472671031952, 1.4246751070022583...
func (o *RentalRower) Reload(exec boil.Executor) error { ret, err := FindRentalRower(exec, o.ID) if err != nil { return err } *o = *ret return nil }
[ -0.3045797646045685, 0.11849585175514221, 0.7164079546928406, 0.7627926468849182, 0.4755689799785614, -0.5441270470619202, 0.2617958188056946, -0.44011715054512024, -0.3051759898662567, 0.35608983039855957, -0.1514858901500702, 0.22300587594509125, 0.02016892470419407, 0.061219748109579086...
func (o *RentalRowerSlice) ReloadAllG() error { if o == nil { return errors.New("models: empty RentalRowerSlice provided for reload all") } return o.ReloadAll(boil.GetDB()) }
[ -0.3116215467453003, 0.8524753451347351, 0.6496562957763672, 1.2724072933197021, -0.6567806601524353, -0.3120588958263397, -1.0419328212738037, 0.44057726860046387, 0.2851729393005371, 0.5258956551551819, -0.03879117965698242, 0.13046316802501678, -0.16993337869644165, 1.924330711364746, ...
func (o *RentalRowerSlice) ReloadAll(exec boil.Executor) error { if o == nil || len(*o) == 0 { return nil } slice := RentalRowerSlice{} var args []interface{} for _, obj := range *o { pkeyArgs := queries.ValuesFromMapping(reflect.Indirect(reflect.ValueOf(obj)), rentalRowerPrimaryKeyMapping) args = append(ar...
[ -0.315136581659317, 0.21102574467658997, 0.8450812697410583, 0.9768499732017517, -0.18378004431724548, -0.37571871280670166, -0.246165931224823, -0.15425100922584534, -0.20440563559532166, 0.5815432071685791, -0.3240107595920563, 0.49041053652763367, 0.1407795399427414, 1.0732333660125732,...
func RentalRowerExistsG(iD int) (bool, error) { return RentalRowerExists(boil.GetDB(), iD) }
[ -1.4428329467773438, 0.7739936113357544, 0.5016000866889954, -0.13350744545459747, 0.5337145328521729, 0.2261083871126175, -0.714406430721283, 0.6203692555427551, -0.7193630933761597, 1.0453497171401978, -0.2581877112388611, -0.7764838933944702, -0.34120333194732666, 1.7779006958007812, ...
func RentalRowerExists(exec boil.Executor, iD int) (bool, error) { var exists bool sql := "select exists(select 1 from \"rental_rowers\" where \"id\"=$1 limit 1)" if boil.DebugMode { fmt.Fprintln(boil.DebugWriter, sql) fmt.Fprintln(boil.DebugWriter, iD) } row := exec.QueryRow(sql, iD) err := row.Scan(&exis...
[ -1.0492312908172607, 0.3090272843837738, 0.7317712306976318, -0.37991270422935486, 0.7245968580245972, -0.3612317144870758, -0.7197462320327759, 0.07991326600313187, -0.3605516254901886, 0.4607933461666107, -0.0686340257525444, -0.0609971322119236, -0.3611088693141937, 0.7882465720176697, ...
func GetAllClients() ([]*Client, error) { rows, err := db.Query("select * from client") if err != nil { return nil, err } defer rows.Close() clients := make([]*Client, 0) for rows.Next() { var isActive int c := new(Client) err := rows.Scan(&c.ID, &c.Name, &c.Latitude, &c.Longitude, &c.ProjectCount, &isAct...
[ -0.1971902847290039, -0.28423115611076355, 0.47524821758270264, 0.5470080375671387, 0.3495655953884125, 0.4034905433654785, -0.40338000655174255, -0.3248646855354309, -0.49820393323898315, -0.24396485090255737, 0.10032731294631958, 0.9358124732971191, -0.8279367685317993, 0.386533915996551...
func main() { topic := flag.String("topic", "", "The topic name to/from which to publish/subscribe") broker := flag.String("broker", "tcp://iot.eclipse.org:1883", "The broker URI. ex: tcp://10.10.1.1:1883") password := flag.String("password", "", "The password (optional)") user := flag.String("user", "", "The User ...
[ 1.220428228378296, -0.4373376667499542, 0.9803465008735657, 0.3013686239719391, 0.10906662791967392, 0.357393741607666, 0.3668246567249298, -0.30211758613586426, -0.8425303101539612, 0.3158082067966461, 0.27698418498039246, 0.9895755052566528, -0.4608786404132843, -0.12974171340465546, -...
func NewSSHClient(ctx context.Context, projectID string, repo Repo) *SSHClient { return &SSHClient{ projectID: projectID, repo: repo, log: logFromContext(ctx).WithField("project-id", projectID), } }
[ 0.7428280115127563, -0.4671091139316559, 0.05430953577160835, 0.12455091625452042, -0.4521251618862152, 0.607512354850769, -1.013466238975525, -0.14969921112060547, -0.08504761755466461, -0.07733047753572464, -0.3729122281074524, 1.520098328590393, -0.027343712747097015, -0.348166346549987...
func (s *SSHClient) Execute(host, cmd string) (string, error) { hostname := fmt.Sprintf("%s.%s.%s:%d", host, s.projectID, DropletDomain, defaultSSHPort) pemBytes, err := s.repo.GetKey(s.projectID) if err != nil { return "", err } signer, err := ssh.ParsePrivateKey(pemBytes) if err != nil { return "", fmt.Er...
[ -0.17314480245113373, -0.17953144013881683, 1.0396900177001953, -0.07838195562362671, -0.4221439063549042, 0.6351895928382874, -0.6137706637382507, -0.3028438091278076, -0.8882588744163513, 0.6235880851745605, -0.49866101145744324, -0.16423597931861877, -0.08300081640481949, -0.44414249062...
func LinewiseFunction(name string, f LinewiseStageFunc) Stage { return ScannerFunction( name, func(r io.Reader) (Scanner, error) { scanner := bufio.NewScanner(r) // Split based on strict LF (we don't accept CRLF): scanner.Split(ScanLFTerminatedLines) return scanner, nil }, f, ) }
[ 0.23513801395893097, -0.9379920363426208, 0.5664079785346985, -0.006484723649919033, -0.9515894651412964, -0.2664523124694824, -0.5515285134315491, 0.7312632203102112, -0.4548892676830292, -0.017579201608896255, -0.5413068532943726, -0.46609848737716675, 0.10570862144231796, -0.27474951744...
func ScanLFTerminatedLines(data []byte, atEOF bool) (advance int, token []byte, err error) { if atEOF && len(data) == 0 { return 0, nil, nil } if i := bytes.IndexByte(data, '\n'); i != -1 { return i + 1, data[0:i], nil } if atEOF { return len(data), data, nil } return 0, nil, nil }
[ -0.08129910379648209, 0.06457649916410446, 0.734749436378479, -0.43933284282684326, -0.7565442323684692, -0.5834604501724243, -0.6413667798042297, 0.18375255167484283, 0.8113779425621033, -0.43807628750801086, -0.4433870017528534, -0.01924167573451996, -0.20047348737716675, 1.1265304088592...
func Find(needle string, haystack []string) ([]string, error) { result := make([]string, len(haystack)) temp := make([]string, 0, len(result)) copy(result, haystack) for i, l := 0, len(needle); i < l; i++ { for j := 0; j < len(result); j++ { if i >= len(result[j]) { continue } if needle[i] == resul...
[ 0.6651833057403564, -0.03933003917336464, 0.6809664368629456, 0.046997908502817154, 0.22994965314865112, -1.0980130434036255, 0.41719987988471985, -0.8460820913314819, -0.12766176462173462, 1.2493113279342651, 0.2770419418811798, 0.4251660406589508, -0.6285515427589417, 0.7150143384933472,...
func ArgsChecked(ts TypesSpec, args... interface{}) (NamedArgs, error) { n := len(args) if n % 2 != 0 { return nil, fmt.Errorf("Length of args must be multiple of two. Length of args was %d.", n) } m := make(map[string]interface{}) argNo := 1 for i := 0; i < n; i += 2 { k := args[i] val := args[i+1] ...
[ -0.48416009545326233, -0.2104494720697403, 0.7852656841278076, -0.5131321549415588, 0.3954610228538513, -0.6709370613098145, -0.45026546716690063, -0.7273894548416138, -0.7739635705947876, 1.4676913022994995, -0.2845907211303711, 0.5001657605171204, 0.7454808950424194, 0.6202266216278076, ...
func Args(args... interface{}) (NamedArgs, error) { return ArgsChecked(nil, args...) }
[ -0.004509286023676395, 0.3939305245876312, 0.37074509263038635, 0.6766055822372437, 0.8023301362991333, -0.48411810398101807, -0.5949901938438416, -0.4778113067150116, -0.34916695952415466, 0.4174082577228546, 0.2858089804649353, 0.6925914883613586, -0.2182239294052124, 0.44459718465805054...
func mipsOpcode32bit(opc *mipsOpcode) bool { return (opc.mask >> 16) != 0 }
[ -0.6044688820838928, 0.10850509256124496, 0.6710020899772644, -0.0937984436750412, -0.5190857648849487, 1.028483510017395, -0.7695925235748291, -0.722615659236908, 0.8338726162910461, 0.32487234473228455, -0.5953620076179504, -0.7176100611686707, -0.9119426012039185, -0.3788221776485443, ...
func ResponseFromStruct(w http.ResponseWriter, data []byte) { w.Header().Set("Content-Type", "application/json") w.WriteHeader(http.StatusOK) w.Write(data) }
[ 0.5503442883491516, -1.1424460411071777, 0.5165125131607056, -0.1957242637872696, -0.34825319051742554, -0.08503104001283646, 0.6840850710868835, -0.07798948884010315, 0.7778866291046143, -0.08043410629034042, -1.3133736848831177, -0.38123413920402527, 0.7912108302116394, 0.220809742808341...
func New(parts []interface{}, opts Options) *Blob { blob := js.Global.Get("Blob").New(parts, opts) return &Blob{Object: blob} }
[ 0.6716038584709167, -0.9786307215690613, 0.4405474364757538, 0.5901306867599487, -0.17453743517398834, 0.48979341983795166, -0.4201071858406067, -0.7702069878578186, -0.6744908690452576, 0.4852364957332611, -0.6252992153167725, 0.0488748699426651, -0.029913684353232384, 0.32667744159698486...
func Internalize(o *js.Object) *Blob { return &Blob{Object: o} }
[ 0.7113153338432312, 0.0526101216673851, 0.4825142025947571, -0.2522066533565521, -0.8246835470199585, 0.178609237074852, -0.038090579211711884, -1.0670325756072998, 0.13287529349327087, -0.07061989605426788, -1.335654616355896, 0.5892820358276367, -0.3193388879299164, -0.3932192027568817, ...
func (b *Blob) Close() { b.Call("close") }
[ 0.5791595578193665, 0.12246416509151459, 0.40792280435562134, 1.0838398933410645, 0.4121367931365967, 1.217077374458313, 0.531140923500061, -0.7511181831359863, -0.9043027758598328, -0.35708460211753845, -0.09663450717926025, -0.20217247307300568, -1.801339864730835, 1.028008222579956, 0...
func (b *Blob) Slice(start, end int, contenttype string) *Blob { newBlobObject := b.Call("slice", start, end, contenttype) return &Blob{ Object: newBlobObject, } }
[ 0.006414039060473442, -0.9371771216392517, 0.46341586112976074, 1.087807059288025, -0.3312360644340515, 0.056928347796201706, -0.6273910403251648, -1.08030104637146, -1.139255404472351, 0.18159450590610504, -0.7926595211029053, 0.21000683307647705, -1.040658950805664, -0.569158136844635, ...
func (b *Blob) Bytes() ([]byte, error) { done := make(chan struct{}) fr := js.Global.Get("FileReader").New() fr.Set("onloadend", func() { close(done) }) fr.Call("readAsArrayBuffer", b) <-done // Wait for the read to finish if err := fr.Get("error"); err != nil { return nil, &js.Error{err} } return js.Global.G...
[ -0.047715894877910614, -0.3153504729270935, 0.6505823135375977, -0.28698307275772095, 0.4444434344768524, -0.020688140764832497, -0.7541291117668152, -0.7382627129554749, 0.13452784717082977, -0.1754922866821289, 0.06594601273536682, 0.49128955602645874, -0.7843102812767029, 0.298458695411...
func (c *Client) GetCampaign(ctx context.Context, params *GetCampaignInput, optFns ...func(*Options)) (*GetCampaignOutput, error) { if params == nil { params = &GetCampaignInput{} } result, metadata, err := c.invokeOperation(ctx, "GetCampaign", params, optFns, c.addOperationGetCampaignMiddlewares) if err != nil ...
[ -0.5258991122245789, 0.13160313665866852, 0.6093740463256836, 0.9156739711761475, 0.6125406622886658, -0.6117871403694153, 0.44052472710609436, -0.9740428924560547, 0.5164707899093628, -0.6019881367683411, 0.02641797624528408, 1.8897055387496948, -0.9921046495437622, -0.6566142439842224, ...
func (io *JSONWSIO) SetReadDeadline(time time.Time) error { return io.WSConn.SetReadDeadline(time) }
[ -0.5308630466461182, -0.5570088028907776, 0.6976176500320435, -0.3111855983734131, -0.21058334410190582, 0.5786393284797668, -0.36445629596710205, -1.4133604764938354, 0.0334353893995285, 0.12167991697788239, -0.6303899884223938, 0.612106442451477, 0.8952767848968506, 0.6690444350242615, ...
func (io *JSONWSIO) SetWriteDeadline(time time.Time) error { return io.WSConn.SetWriteDeadline(time) }
[ -0.8754939436912537, -0.8128804564476013, 0.5486849546432495, -0.0926905944943428, 1.2246767282485962, 0.4987671673297882, -0.24533753097057343, -1.1257567405700684, -0.34387829899787903, 0.054854076355695724, -0.6923785209655762, 0.25157472491264343, 0.43123146891593933, 0.796607792377471...
func (io *JSONWSIO) ReadData(d interface{}) (int, error) { _, buf, err := io.WSConn.ReadMessage() if err != nil { return 0, err } err = json.Unmarshal(buf, d) return len(buf), err }
[ -0.9192434549331665, 1.018399953842163, 1.018010139465332, -1.0998603105545044, -0.4089093804359436, 0.38097983598709106, 0.6348605155944824, -0.752466082572937, -0.02175840735435486, -0.6162965297698975, 0.12024125456809998, 0.8497354984283447, 0.04837476462125778, 0.7994653582572937, 0...
func (io *JSONWSIO) WriteData(d interface{}) error { return io.WSConn.WriteJSON(d) }
[ -1.2415155172348022, 0.18369029462337494, 0.46522101759910583, -0.05420218035578728, 0.0642990693449974, 0.5963733792304993, 0.6122453212738037, -0.7222773432731628, 0.6176877617835999, -0.8516787886619568, -0.5495055317878723, 0.8534090518951416, 0.9843606352806091, 1.5487674474716187, ...
func (io *JSONWSIO) Close() error { return io.WSConn.Close() }
[ 0.08600180596113205, -0.5000876188278198, 0.7535305023193359, 0.03158934414386749, -0.6658344268798828, 0.3968488276004791, 0.21058769524097443, -1.764789342880249, -0.4684782326221466, -0.6868230700492859, -0.0876428633928299, 0.6051549315452576, 0.12325317412614822, 0.895812451839447, ...
func (i *Ibmc) Resources() []string { return []string{ "user", "syslog", "ntp", "ldap", "ldap_group", "network", } }
[ -0.2065994292497635, 0.10339920967817307, 0.04106168448925018, -0.5340945720672607, -0.02310819737613201, 0.14173465967178345, -0.2775390148162842, -0.660540759563446, 0.6584794521331787, 0.04064368084073067, -0.598066508769989, 0.17718513309955597, -0.9391342997550964, 0.648541271686554, ...
func (i *Ibmc) User(cfg []*cfgresources.User) error { return nil }
[ -0.7869662642478943, 0.014150273986160755, 0.21531906723976135, 0.7020934224128723, 0.17215099930763245, -0.5562165975570679, 2.15740704536438, -0.06298305094242096, -0.27223312854766846, -0.8279756903648376, -0.9545114636421204, -0.039363715797662735, -0.6954421997070312, 0.77593141794204...
func (i *Ibmc) Syslog(cfg *cfgresources.Syslog) error { return nil }
[ 0.971804678440094, 0.5359602570533752, 0.16702152788639069, 0.5317546725273132, -0.5685230493545532, -1.0219765901565552, 1.1812069416046143, 1.6632494926452637, 0.015133545733988285, -0.7220712304115295, -1.5969865322113037, -0.1873624473810196, -0.07958505302667618, 0.641338586807251, ...
func (i *Ibmc) Ntp(cfg *cfgresources.Ntp) error { return nil }
[ 1.2245880365371704, 0.48678719997406006, 0.4102407395839691, -0.5165207982063293, 0.16843710839748383, -0.2394103854894638, 1.42681086063385, 0.11383318156003952, -0.2768242061138153, 0.6903035640716553, -0.004961507860571146, -0.8690409064292908, -1.3209761381149292, -0.4533512592315674, ...
func (i *Ibmc) Ldap(cfg *cfgresources.Ldap) error { return nil }
[ -0.6980665326118469, 0.4949248135089874, 0.22822028398513794, -0.05287453532218933, 0.5813724994659424, -0.4045429825782776, 1.2825478315353394, 0.0398838110268116, 0.6292554140090942, -0.28518444299697876, -0.008577728644013405, 0.17725403606891632, -0.9565331935882568, 0.1447594761848449...
func (i *Ibmc) LdapGroup(cfgGroup []*cfgresources.LdapGroup, cfgLdap *cfgresources.Ldap) error { return nil }
[ -0.6697008013725281, 1.0548876523971558, 0.19622638821601868, -0.6123824119567871, -0.46969717741012573, -0.6264264583587646, 0.3701806962490082, -0.16933266818523407, 0.28239646553993225, -0.5398973226547241, -0.20924429595470428, 0.417611688375473, -0.34192973375320435, 0.895309686660766...
func (i *Ibmc) Network(cfg *cfgresources.Network) error { return nil }
[ -1.1699120998382568, -0.15810345113277435, 0.12922446429729462, 0.9501986503601074, 0.8244919776916504, -0.8876937031745911, 1.284439206123352, 0.40256181359291077, -0.3677993416786194, -0.7564835548400879, -0.9021586775779724, -0.9397095441818237, -0.7479560971260071, 0.4633994698524475, ...
func (i *Ibmc) SetLicense(*cfgresources.License) error { return nil }
[ 0.610403299331665, 0.0571100115776062, 0.32817310094833374, 0.654643714427948, 0.1927517056465149, -1.1722970008850098, 0.9465742111206055, 0.44492465257644653, -0.05362100526690483, -1.0184862613677979, -0.29112061858177185, 0.9233164191246033, -1.659023404121399, 1.152885913848877, 0.6...
func (i *Ibmc) Bios(cfg *cfgresources.Bios) error { return nil }
[ -0.13365839421749115, 0.5679762959480286, 0.2950915992259979, 1.041663408279419, -0.45074278116226196, -0.7201462388038635, 1.015016794204712, -0.17550718784332275, -0.17508259415626526, -0.9888635873794556, -0.3363942503929138, 0.40100544691085815, -0.8904579877853394, 0.25570374727249146...
func greet1(fname string, lname string) { fmt.Println(fname, lname) }
[ 0.5598008036613464, -0.7415351867675781, 0.625300943851471, 0.28558990359306335, -0.9186997413635254, 1.0528345108032227, -0.407328337430954, 0.36785969138145447, -1.487117052078247, 0.26937928795814514, -0.3329055905342102, 1.7391449213027954, 0.32913702726364136, 0.6216539740562439, -0...
func greet3(fname, lname string) (s string) { s = fmt.Sprint(fname, " ", lname) return s }
[ 0.2620815932750702, 0.33640918135643005, 0.4355548918247223, -0.4784429371356964, -0.8993204236030579, 0.9700971245765686, -1.6326909065246582, -0.20333600044250488, -0.5581210851669312, 0.35602542757987976, -0.029811879619956017, 0.7511475682258606, -0.05525024235248566, 0.177996352314949...
func greet4(fname, lname string) (string, string) { return fname, lname }
[ 0.16341224312782288, -0.9846534729003906, 0.43326249718666077, -0.4448035657405853, -1.1376601457595825, 0.049511220306158066, -0.8676891922950745, -0.36925750970840454, -1.3021012544631958, -0.2972946763038635, -0.53675377368927, -0.18854375183582306, -0.06480247527360916, 0.8197325468063...
func average(n ...float64) float64 { var total float64 for _, v := range n { total += v } return total / float64(len(n)) }
[ -0.5661473274230957, 0.9204949140548706, 0.17369145154953003, 0.6515523195266724, 0.49159637093544006, 0.4167709946632385, 0.037189602851867676, -0.1626899391412735, -1.116172432899475, 0.28227871656417847, -0.2330462634563446, -0.1281251758337021, -0.33999133110046387, 0.9167373180389404,...
func (c *Container) Attach(vAttach, hAttach AttachPoint) *Container { c.vAttach, c.hAttach = vAttach, hAttach return c }
[ 1.1799900531768799, -0.9466776847839355, 0.3947146236896515, -0.4301275610923767, 0.08033067733049393, 0.8947262763977051, 0.38704270124435425, -0.2899703085422516, -0.003208935260772705, -0.9836772680282593, 0.02340654470026493, 0.2259928584098816, 1.1414839029312134, -0.11390265822410583...
func (c *Container) Draw(r Region, delta float64) { }
[ -0.10134828090667725, 0.053257156163454056, 0.3008919358253479, 0.27391186356544495, 0.29305586218833923, 0.8605250120162964, 0.7094643115997314, -0.7058132886886597, -0.21866217255592346, -1.3446002006530762, -0.0043991440907120705, -0.054031915962696075, -0.21656566858291626, 0.573920071...
func (c *Container) Offset() (float64, float64) { return c.x, c.y }
[ -0.31225845217704773, -0.7138086557388306, 0.7296134233474731, 0.034270111471414566, -0.016843561083078384, 1.1415246725082397, 0.5030995607376099, 0.15039567649364471, -0.013123629614710808, 0.11882036179304123, -0.4742197096347809, 0.19224469363689423, 0.5015622973442078, 0.5229381918907...
func (c *Container) Size() (float64, float64) { return c.w, c.h }
[ -0.17440682649612427, 0.07572899013757706, 0.5151439905166626, -0.11819818615913391, 0.20137327909469604, -0.022689837962388992, 0.8324054479598999, -0.7535130381584167, -0.4043729901313782, 0.07961457967758179, -0.3818846046924591, -0.19112569093704224, -0.1887674629688263, 1.111309885978...
func (ogc *OutcomeGroupCreate) SetOutcomeGroupID(s string) *OutcomeGroupCreate { ogc.mutation.SetOutcomeGroupID(s) return ogc }
[ -0.9510164856910706, 0.5589207410812378, -0.13051098585128784, -0.03776634484529495, -0.5602808594703674, 0.12632228434085846, 0.542565107345581, 1.13960599899292, -0.26607635617256165, 1.2860491275787354, 0.027626914903521538, 0.7377272248268127, -0.1659059375524521, 1.6527857780456543, ...
func (ogc *OutcomeGroupCreate) SetOutcomeGroupTitle(s string) *OutcomeGroupCreate { ogc.mutation.SetOutcomeGroupTitle(s) return ogc }
[ -0.9464598298072815, 0.9900461435317993, 0.11927878111600876, 0.4401324391365051, -0.6637216210365295, -0.11364974081516266, 0.2747149169445038, 0.27325424551963806, -1.4084327220916748, 1.0655685663223267, -0.006667819339782, -0.35892510414123535, -0.5966823101043701, 0.2498903125524521, ...
func (ogc *OutcomeGroupCreate) SetOutcomeGroupDescription(s string) *OutcomeGroupCreate { ogc.mutation.SetOutcomeGroupDescription(s) return ogc }
[ -0.8696094155311584, 0.878272533416748, 0.14037665724754333, -0.3118765354156494, -0.1739439219236374, 0.1217835396528244, 0.432759553194046, 0.9549264311790466, -1.0463626384735107, 0.9198005795478821, 0.40247058868408203, 0.6865756511688232, -0.2323223352432251, 1.091015100479126, -0.7...
func (ogc *OutcomeGroupCreate) SetParentID(id int) *OutcomeGroupCreate { ogc.mutation.SetParentID(id) return ogc }
[ -0.2471058964729309, -0.1792864203453064, 0.38402771949768066, 0.9163920283317566, -0.5548943281173706, 0.992922842502594, 1.1199700832366943, -0.06037857383489609, 0.13574981689453125, 0.6454470157623291, -0.11147193610668182, -0.01814877800643444, -0.4469796121120453, 0.2649369537830353,...
func (ogc *OutcomeGroupCreate) SetNillableParentID(id *int) *OutcomeGroupCreate { if id != nil { ogc = ogc.SetParentID(*id) } return ogc }
[ -0.11597670614719391, 0.17240266501903534, 0.38147270679473877, 0.1341063231229782, -1.1322470903396606, 0.4127400815486908, 0.5493038296699524, -0.40046966075897217, 0.018951958045363426, 0.45368415117263794, 0.4022466242313385, -0.3205505907535553, -0.8855969309806824, 0.4245313405990600...
func (ogc *OutcomeGroupCreate) SetParent(o *OutcomeMeasure) *OutcomeGroupCreate { return ogc.SetParentID(o.ID) }
[ 0.22651997208595276, 0.7993196845054626, 0.2973874509334564, 0.18522340059280396, -0.5339202880859375, 0.6365007758140564, 1.376621127128601, -1.1995582580566406, -0.644589364528656, -0.2634753882884979, 0.18156777322292328, -0.25411394238471985, -0.35397469997406006, 0.1132689118385315, ...
func (ogc *OutcomeGroupCreate) Mutation() *OutcomeGroupMutation { return ogc.mutation }
[ -1.1265316009521484, -0.029395664110779762, 0.18261031806468964, 0.4472094774246216, -0.10947324335575104, 0.4766045808792114, 0.8461278080940247, -0.6870468258857727, 0.0287269689142704, 0.0452248640358448, 0.7367407083511353, -0.79737788438797, -0.4475894570350647, -0.5327261686325073, ...
func (ogc *OutcomeGroupCreate) Save(ctx context.Context) (*OutcomeGroup, error) { var ( err error node *OutcomeGroup ) if len(ogc.hooks) == 0 { if err = ogc.check(); err != nil { return nil, err } node, err = ogc.sqlSave(ctx) } else { var mut Mutator = MutateFunc(func(ctx context.Context, m Mutation...
[ -0.880248486995697, 0.2671278417110443, 0.5247229337692261, -0.3859331011772156, 0.3701803386211395, -0.43840038776397705, 0.6128125190734863, -1.1606336832046509, -1.2168149948120117, 0.8057032823562622, 0.2145163118839264, -0.04845373332500458, -0.47752174735069275, -0.06039060652256012,...
func (ogc *OutcomeGroupCreate) SaveX(ctx context.Context) *OutcomeGroup { v, err := ogc.Save(ctx) if err != nil { panic(err) } return v }
[ -0.7172574996948242, 0.9028545022010803, 0.3227684199810028, 0.38242989778518677, -0.737003743648529, 1.2360700368881226, -0.6001718640327454, -0.31633850932121277, 0.2261267453432083, 0.26389753818511963, -0.6536045074462891, -0.4849317669868469, -0.6424490213394165, -0.13755549490451813,...
func (ogc *OutcomeGroupCreate) Exec(ctx context.Context) error { _, err := ogc.Save(ctx) return err }
[ -0.2721380889415741, 0.47614651918411255, 0.447284996509552, 0.16506831347942352, 0.3634088933467865, 1.2730076313018799, 0.1560906618833542, -0.7247499823570251, -1.1700843572616577, 0.4010414183139801, 0.11806970089673996, -0.4133051037788391, -0.3375224173069, -0.33908239006996155, 0....
func (ogc *OutcomeGroupCreate) ExecX(ctx context.Context) { if err := ogc.Exec(ctx); err != nil { panic(err) } }
[ 0.17320872843265533, 0.9306154847145081, 0.5308480262756348, 0.20588482916355133, 0.1779693365097046, 1.3778386116027832, -0.44168660044670105, -0.6410326957702637, -0.5352274775505066, -0.05203564092516899, 0.5521679520606995, 0.3678509294986725, 0.20889343321323395, -0.11969953775405884,...
func (ogc *OutcomeGroupCreate) check() error { if _, ok := ogc.mutation.OutcomeGroupID(); !ok { return &ValidationError{Name: "outcome_group_id", err: errors.New(`models: missing required field "OutcomeGroup.outcome_group_id"`)} } if _, ok := ogc.mutation.OutcomeGroupTitle(); !ok { return &ValidationError{Name: ...
[ -0.9570371508598328, 0.504949688911438, 0.37157875299453735, 0.056055787950754166, 0.347446084022522, 0.9678702354431152, 0.17742179334163666, -0.22197893261909485, -1.6949875354766846, 0.3267641067504883, 0.5364135503768921, -0.5541172623634338, -0.06615006178617477, 0.9953708648681641, ...
func (ogcb *OutcomeGroupCreateBulk) Save(ctx context.Context) ([]*OutcomeGroup, error) { specs := make([]*sqlgraph.CreateSpec, len(ogcb.builders)) nodes := make([]*OutcomeGroup, len(ogcb.builders)) mutators := make([]Mutator, len(ogcb.builders)) for i := range ogcb.builders { func(i int, root context.Context) { ...
[ -0.8911292552947998, 0.3834628760814667, 0.7776002287864685, 0.4181593060493469, 0.7458978295326233, -0.5559533834457397, 0.6818394064903259, -0.8975781798362732, -0.6444205045700073, 0.5232998728752136, 0.13529841601848602, 0.17980557680130005, -0.5544163584709167, -0.22751383483409882, ...
func (ogcb *OutcomeGroupCreateBulk) SaveX(ctx context.Context) []*OutcomeGroup { v, err := ogcb.Save(ctx) if err != nil { panic(err) } return v }
[ -1.0656932592391968, 0.9342884421348572, 0.5085529685020447, 0.846186101436615, -0.0606793537735939, 0.7723718285560608, -0.723667562007904, -0.1424967497587204, 0.41336795687675476, 0.6510457396507263, -1.0677506923675537, -0.27581754326820374, -0.4930116832256317, 0.35546785593032837, ...
func (ogcb *OutcomeGroupCreateBulk) Exec(ctx context.Context) error { _, err := ogcb.Save(ctx) return err }
[ -0.41995981335639954, 0.644636869430542, 0.5400395393371582, 0.35377076268196106, 0.7962777614593506, 0.8895734548568726, 0.1438140720129013, -0.5485755205154419, -0.8223004937171936, 0.5012090802192688, -0.1919480264186859, -0.16142919659614563, -0.3131880462169647, -0.03967984765768051, ...
func (ogcb *OutcomeGroupCreateBulk) ExecX(ctx context.Context) { if err := ogcb.Exec(ctx); err != nil { panic(err) } }
[ 0.10296738147735596, 1.0525331497192383, 0.6218125820159912, 0.44603219628334045, 0.49164697527885437, 1.1208412647247314, -0.406853049993515, -0.38488754630088806, -0.24997593462467194, 0.130165234208107, 0.258324533700943, 0.4699181914329529, 0.11087597161531448, 0.1385294497013092, 0....
func (a *API) AddTransaction(t *Transaction) error { if err := t.Error(); err != nil { return fmt.Errorf("gowhmcs addtranscation error: %v", err) } if _, err := a.Do("addtransaction", &t); err != nil { return fmt.Errorf("gowhmcs addtranscation error: %v", err) } return nil }
[ -0.8636507987976074, 0.3155660331249237, 0.8436466455459595, -0.5923128128051758, 0.9762820601463318, 0.3121322989463806, 0.29427045583724976, -0.4187445044517517, 0.7976587414741516, 0.5274415612220764, -0.5178241729736328, -0.2414190024137497, -0.5916627645492554, 0.19584940373897552, ...
func (a *API) UpdateInvoice(i *UpdateInvoiceRequest) (r *UpdateInvoiceResponse, err error) { err = i.Error() if err != nil { return } body, err := a.Do("updateinvoice", i) if err != nil { err = fmt.Errorf("gowhmcs updateinvoice error: %v", err) return } r = &UpdateInvoiceResponse{} if err = json.Unmars...
[ -2.12117338180542, -1.0953034162521362, 0.8347735404968262, 0.0872468501329422, 0.3120671808719635, -0.45402535796165466, -0.16689960658550262, -0.35445436835289, 0.40393155813217163, 0.8013888597488403, 0.3526374399662018, 0.9062929153442383, -1.7447127103805542, -0.2068546563386917, 0....
func (a *API) CreateInvoice(i *CreateInvoiceRequest) (r *CreateInvoiceResponse, err error) { err = i.Error() if err != nil { return } body, err := a.Do("createinvoice", i) if err != nil { return } r = &CreateInvoiceResponse{} err = json.Unmarshal(body, r) return }
[ -1.3468987941741943, -0.32327747344970703, 0.5340523719787598, 0.47087347507476807, 0.5484915375709534, -0.308521568775177, 0.10800337791442871, -0.6401845216751099, 0.08915633708238602, -0.0009921760065481067, -0.11915978044271469, 0.4423169195652008, -1.2079905271530151, 0.37558409571647...
func (a *API) UpdateExistingClient(c *ExistingClient) (r *UpdateClientResult, err error) { err = c.Error() if err != nil { err = fmt.Errorf("Error: %v", err) return } body, err := a.Do("updateclient", &c) if err != nil { err = fmt.Errorf("Error: %v", err) return } r = &UpdateClientResult{} if err = j...
[ -1.826587200164795, -1.100019097328186, 0.4346209764480591, -0.4314981997013092, -0.3124564290046692, 0.13844479620456696, 0.8179483413696289, -0.3193453550338745, -0.1713215559720993, 1.2130783796310425, -0.3748367130756378, 0.9122007489204407, -1.2693099975585938, 0.0960867628455162, 0...
func (a *API) AcceptOrder(o *AcceptOrderRequest) (err error) { err = o.Error() if err != nil { err = fmt.Errorf("gowhmcs acceptorder error: %v", err) return } if _, err = a.Do("acceptorder", o); err != nil { err = fmt.Errorf("gowhmcs acceptorder error: %v", err) } return }
[ -1.5907074213027954, -0.1314035952091217, 0.9629923701286316, 0.32321009039878845, -0.3025856614112854, 0.07326032221317291, 0.08463916927576065, -0.17796169221401215, 0.29788970947265625, 0.2720812261104584, 0.11833935230970383, 0.4802496135234833, -0.6907424330711365, 1.1875364780426025,...
func (a *API) AddOrder(o *Order) (r *OrderResponse, err error) { err = o.Error() if err != nil { err = fmt.Errorf("gowhmcs addorder error: %v", err) return } body, err := a.Do("addorder", o) if err != nil { err = fmt.Errorf("gowhmcs addorder error: %v (%s)", err, string(body)) return } if err = json.U...
[ -1.2996101379394531, -0.13758735358715057, 0.9751877784729004, -0.000327451154589653, 0.2565274238586426, -0.39557474851608276, -0.35447853803634644, -0.5815427303314209, 0.9656614065170288, -0.018272297456860542, -0.6634697318077087, -0.040250495076179504, -1.4479273557662964, 0.743540227...
func (a *API) Whois(domain string) (w WhoisInfo, err error) { body, err := a.Do("domainwhois", &WhoisRequest{"domainwhois", domain}) if err != nil { err = fmt.Errorf("gowhmcs whois error: %v", err) return } if err = json.Unmarshal(body, &w); err != nil { err = fmt.Errorf("gowhmcs whois error: %v", err) } ...
[ -1.4064855575561523, -0.04299480468034744, 0.5857435464859009, -0.643753707408905, 0.12801578640937805, -0.18238964676856995, -0.484193354845047, -1.1261353492736816, 0.5757590532302856, 0.12519949674606323, 0.06286611407995224, 1.089228630065918, 0.14658509194850922, -0.6672244071960449, ...
func (a *API) ClientExists(email string) (bool, error) { c := ClientDetailsReq{Email: email} if _, err := a.Do("getclientsdetails", &c); err != nil { if err.Error() == ErrClientNotFound { return false, nil } return false, fmt.Errorf("gowhmcs clientexists error: %v", err) } return true, nil }
[ -0.6927931308746338, -0.25126662850379944, 0.8374215960502625, -0.9297121167182922, 1.3359147310256958, 0.6884809136390686, 0.1364518105983734, -0.258334219455719, -0.47913870215415955, 0.5114072561264038, -0.07417964190244675, 0.6499459147453308, -0.4840962290763855, -0.6140522360801697, ...
func (a *API) AddClient(c *NewClient) (r *AddClientResult, err error) { err = c.Error() if err != nil { return } body, err := a.Do("addclient", &c) if err != nil { err = fmt.Errorf("gowhmcs addclient error: %v", err) return } r = &AddClientResult{} if err = json.Unmarshal(body, &r); err != nil { err ...
[ -1.36412513256073, 0.021190589293837547, 0.9214807152748108, -0.4923190474510193, 0.3912074565887451, 0.11332456767559052, 0.20616404712200165, -0.870309591293335, 0.11744410544633865, 0.20533010363578796, -0.02365727350115776, 0.39663127064704895, -1.5417683124542236, 0.0606994591653347, ...
func GetInput(sorted bool) []string { reader := getPipeReader() var input []string for { lineBytes, _, err := reader.ReadLine() if err == io.EOF { break } lineString := string(lineBytes) input = append(input, lineString) } if sorted { sort.Strings(input) } return input }
[ 0.06095074862241745, -0.10469107329845428, 0.6116266250610352, -0.05374220386147499, -0.1264614760875702, 0.5714586973190308, -0.305026113986969, -0.2635074555873871, -0.6386431455612183, 0.12638267874717712, 1.0038272142410278, 0.497145414352417, -0.511986494064331, -0.12347367405891418, ...
func (s *server) GrayScale(ctx context.Context, in *pb.FilterRequest) (*pb.FilterReply, error) { // get image by id from api imageName := getImage(in.GetId()) if len(imageName) == 0 { return &pb.FilterReply{Message: "bad image"}, nil } // blur it var msg string if in.GetFilter() == "blur" { blury(imageName)...
[ -0.8054174184799194, 0.417930006980896, 0.6653655171394348, -0.20285986363887787, 0.823883593082428, -0.2871732711791992, -0.7167062163352966, -0.6592450737953186, 0.10394185781478882, 0.902674674987793, 0.5076463222503662, 1.3546828031539917, -1.3680150508880615, 1.273017168045044, 0.10...
func blury(name string) { img, err := imgio.Open(name) if err != nil { fmt.Println(err) return } result := blur.Gaussian(img, 10.0) if err := imgio.Save(name, result, imgio.PNGEncoder()); err != nil { fmt.Println(err) return } }
[ 0.042327724397182465, -0.4170067608356476, 0.9624344706535339, 0.0026514227502048016, 0.16104643046855927, 0.22812189161777496, 0.3251902461051941, -0.13850843906402588, 0.07179667800664902, 0.2764661908149719, -0.7536242604255676, 0.7634198069572449, 0.32025933265686035, 0.641367495059967...
func grayscaly(name string) { img, err := imgio.Open(name) if err != nil { fmt.Println(err) return } result := effect.Grayscale(img) if err := imgio.Save(name, result, imgio.PNGEncoder()); err != nil { fmt.Println(err) return } }
[ -0.5053565502166748, -0.0074567473493516445, 0.8742402195930481, -0.49868133664131165, 0.46171239018440247, -0.26243874430656433, -0.539236843585968, -0.20754164457321167, 0.04639130085706711, 1.0332759618759155, -1.1923184394836426, 0.8165207505226135, -0.1379692256450653, 1.2736721038818...
func getImage(imageId string) string { url := WorkerInfo.Api + "/images/" + imageId //fmt.Println(url) client := &http.Client{} req, err := http.NewRequest("GET", url, nil) req.Header.Add("Authorization", "Bearer "+WorkerInfo.Token) resp, err := client.Do(req) if err != nil { fmt.Println(err) return "" } i...
[ -0.98577880859375, -0.22954533994197845, 0.930560827255249, -0.34083792567253113, 0.09252586215734482, 0.19196748733520508, -0.1494302749633789, -0.5427861213684082, -0.30783677101135254, 0.8280446529388428, 0.17841684818267822, 0.24435198307037354, -0.5013152360916138, 0.8738479614257812,...
func postImage(name string) { url := WorkerInfo.Api + "/images" client := &http.Client{} //prepare the reader instances to encode values := map[string]io.Reader{ "data": mustOpen(name), // lets assume its this file "type": strings.NewReader("filtered"), } err := Upload(client, url, values) if err != nil { ...
[ -0.6107882261276245, 0.25383850932121277, 0.8873571753501892, -0.7567735910415649, -0.26965370774269104, 0.33022233843803406, 0.023106908425688744, 0.5284591913223267, -0.8871013522148132, 0.7601727843284607, -0.19061648845672607, -0.34662845730781555, -1.0017220973968506, 0.97412687540054...
func joinCluster(url string) { var sock mangos.Socket var err error var msg []byte // make the request if sock, err = req.NewSocket(); err != nil { die("can't get new req socket: %s", err.Error()) } fmt.Println(controllerAddress) if err = sock.Dial(controllerAddress); err != nil { die("can't dial on req so...
[ -0.004832581151276827, 0.20431318879127502, 1.1385321617126465, -0.15467743575572968, 0.7220799922943115, 0.14687208831310272, 0.30241188406944275, 0.03408806398510933, -0.870081901550293, 0.04024241492152214, -1.0885570049285889, 0.2546527683734894, -0.5195811986923218, 0.2876177728176117...
func updateCPU() { var sock mangos.Socket var err error var msg []byte if sock, err = req.NewSocket(); err != nil { die("can't get new req socket: %s", err.Error()) } //fmt.Println(controllerAddress) if err = sock.Dial(controllerAddress); err != nil { die("can't dial on req socket: %s\n%s", err.Error(), con...
[ -0.37860843539237976, -0.40787747502326965, 1.21756911277771, -0.43778449296951294, 0.037802908569574356, 0.1966792792081833, 0.4266931712627411, -0.2853070795536041, -0.8765034675598145, 0.13593322038650513, -0.617792010307312, 0.4313809871673584, -0.6890295147895813, 0.38703635334968567,...
func dumpConfigU(cfg *config.Config) { configFile, _ := cfg.Get("config.file") log.Println("config.file", configFile.String()) unmarshal, _ := cfg.Get("unmarshal") log.Println("unmarshal", unmarshal.Bool()) modules := []string{"module1", "module2"} for _, mname := range modules { m := module{} if err := cfg.U...
[ -0.9145002365112305, 0.02335481345653534, 0.8845263719558716, -1.3995651006698608, -0.02924555353820324, 0.23277880251407623, 0.39739474654197693, 0.5680538415908813, -1.1388803720474243, 0.3427761197090149, -0.25069716572761536, 0.1261308342218399, -0.13868986070156097, 1.0329302549362183...
func (s SPusher) Auth(rw http.ResponseWriter, req *http.Request, next http.HandlerFunc) { var appKey = req.Header.Get("X-App-Key") if s.key != appKey { sendJSONResponse(rw, http.StatusBadRequest, "err", "Invalid X-App-Key") return } var timestamp = req.Header.Get("X-Request-Time") var unixTimestamp, _ = strcon...
[ -0.6754878759384155, 0.059637583792209625, 0.8405061960220337, 1.1965258121490479, -0.7744680643081665, -0.7381593585014343, 0.13423468172550201, -0.19537334144115448, 0.17200665175914764, 0.4607989490032196, -0.7180067896842957, -0.3257942497730255, 0.3522352874279022, 0.8642246723175049,...
func List() ([]Incident, error) { myData := make([]Incident, 0) rows, err := database.DBCon.Query("SELECT * FROM incidents.employees") if err != nil { return nil, err } defer rows.Close() for rows.Next() { i := new(Incident) err = rows.Scan(&i.ID, &i.Type, &i.StartDate, &i.EndDate, &i.Note, &i.EmployeeI...
[ -0.2932122051715851, -0.8047000765800476, 0.4049816131591797, -0.41598251461982727, 0.772055983543396, -0.10514048486948013, -0.18785730004310608, 0.4872409403324127, -0.40349534153938293, 0.27325358986854553, -0.1573539525270462, -0.020981132984161377, -0.8954575657844543, -0.040875490754...
func Load(id int) (*Incident, error) { i := new(Incident) err := database.DBCon.QueryRow("SELECT * FROM incidents.incidents WHERE id = $1", id). Scan(&i.ID, &i.Type, &i.StartDate, &i.EndDate, &i.Note, &i.EmployeeId) if err != nil { return nil, err } return i, nil }
[ -0.5920088887214661, 0.036687832325696945, 0.5878264904022217, -0.9416047930717468, -0.16044485569000244, 0.002664879895746708, 0.36799097061157227, -0.5068662762641907, -0.40640389919281006, 0.166469007730484, -0.1367170810699463, -0.5817402601242065, -1.1152147054672241, -1.3551164865493...
func (i *Incident) Save() error { err := database.DBCon.QueryRow("INSERT into incidents.incidents(type, start_date, end_date, note, employee_id) VALUES($1, $2, $3, $4, $5)", i.Type, i.StartDate, i.EndDate, i.Note, i.EmployeeId).Scan() if err != nil { return err } return nil }
[ -0.5590404868125916, 0.14431039988994598, 0.5388979911804199, -0.12805120646953583, 1.2695653438568115, 0.2587173879146576, 0.9343075156211853, -0.26595908403396606, -1.1950254440307617, 0.5714207291603088, -0.6575716733932495, -0.4580107629299164, -1.4825581312179565, -0.7490190863609314,...
func NewServer(conn net.Conn, closer *grpcutils.ServerCloser) *Server { return &Server{ conn: conn, closer: closer, } }
[ -0.5032981038093567, -1.1564558744430542, 0.23063825070858002, 0.5355207324028015, -0.6565346121788025, 0.842600405216217, -0.11742176115512848, -0.15480943024158478, -0.49071305990219116, -0.6229880452156067, -0.2579424977302551, 0.4796757102012634, -0.860505223274231, -0.1866230219602584...
func Initialize(t string) error { tr, err := getTracer(t) if err != nil { return errors.Wrap(err, "getting tracer") } tracer = tr return nil }
[ -0.16991248726844788, 0.45867782831192017, 0.6235080361366272, 0.34879419207572937, 0.9484585523605347, -0.22473646700382233, -0.142073854804039, -0.07525644451379776, 0.20535950362682343, 0.7545316815376282, -0.6954529881477356, 0.3141838312149048, 0.19393014907836914, 1.1525464057922363,...
func StartSpan(name string) { if tracer == nil { return } tracer.StartSpan(name) }
[ 0.7530882954597473, 0.060613036155700684, 0.20662207901477814, 0.9584717750549316, -0.6991228461265564, 0.8255636096000671, 1.3618547916412354, -0.1396997720003128, 1.252337098121643, -0.8145896792411804, -1.0520124435424805, 0.3196469247341156, 0.2847679555416107, 0.9816905856132507, -0...
func EndSpan(name string) { if tracer == nil { return } tracer.EndSpan(name) }
[ 0.03575819730758667, 0.4037269949913025, 0.27504345774650574, -0.10409962385892868, -0.5382458567619324, 0.8075143098831177, 0.7584677338600159, -0.3858394920825958, 0.6229360103607178, -0.20940180122852325, -1.1684794425964355, -0.22408872842788696, -0.5583040118217468, 1.1342620849609375...
func Cleanup() { if tracer == nil { return } tracer.Cleanup() }
[ 1.38088858127594, -0.3847363293170929, 0.2155136615037918, 0.5004037618637085, 0.0872441902756691, 0.21386782824993134, 1.6473959684371948, -0.09031113237142563, 1.142348051071167, -0.32693350315093994, -0.09377267956733704, 0.07643537223339081, -0.07250557094812393, 1.6033096313476562, ...
func (s *Service) AnniversaryInfo(c context.Context, mid int64) (res *model.AnniversaryInfo, err error) { if res, err = s.dao.CacheAnniversary(c, mid); err != nil { return } if res == nil { res = new(model.AnniversaryInfo) } res.Mid = mid user, _ := s.accountRPC.Info3(c, &account.ArgMid{Mid: mid}) if user !=...
[ 0.5517013072967529, -0.5646420121192932, 0.7242977023124695, -0.6982606649398804, -0.7494705319404602, -0.41282790899276733, -0.15883693099021912, 0.0857401117682457, -0.27841368317604065, 0.3294577896595001, -0.055693093687295914, 0.19183795154094696, -0.32451051473617554, 0.2716537117958...
func NewPgDatabase(ctx *pulumi.Context, name string, args *PgDatabaseArgs, opts ...pulumi.ResourceOption) (*PgDatabase, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.DatabaseName == nil { return nil, errors.New("invalid value for required argument 'Databas...
[ -0.9670243263244629, 1.4341622591018677, 0.5031907558441162, -0.22330445051193237, 0.31838884949684143, 0.7429125905036926, -0.6967151165008545, -0.04934348911046982, -1.0073721408843994, 0.33008524775505066, 0.04568532854318619, 0.34034204483032227, -1.1343224048614502, -0.161688387393951...
func GetPgDatabase(ctx *pulumi.Context, name string, id pulumi.IDInput, state *PgDatabaseState, opts ...pulumi.ResourceOption) (*PgDatabase, error) { var resource PgDatabase err := ctx.ReadResource("aiven:index/pgDatabase:PgDatabase", name, id, state, &resource, opts...) if err != nil { return nil, err } return...
[ -0.6739346981048584, 1.1224294900894165, 0.25273507833480835, -0.37304922938346863, 0.5702336430549622, 0.6313859224319458, -0.8356144428253174, -0.37797054648399353, -0.1754937767982483, 0.025597000494599342, 0.5795090198516846, 1.0934571027755737, -0.9648120999336243, -1.2748860120773315...
func (o PgDatabaseOutput) DatabaseName() pulumi.StringOutput { return o.ApplyT(func(v *PgDatabase) pulumi.StringOutput { return v.DatabaseName }).(pulumi.StringOutput) }
[ -0.0981864184141159, 0.28565412759780884, 0.342999666929245, -0.12600187957286835, -0.2558507025241852, 0.8637920618057251, -0.34584715962409973, 0.0981714054942131, -0.6159238815307617, 0.009773696772754192, 0.4806196391582489, 0.5170754194259644, -0.0031948292162269354, -0.86868631839752...
func (o PgDatabaseOutput) LcCollate() pulumi.StringPtrOutput { return o.ApplyT(func(v *PgDatabase) pulumi.StringPtrOutput { return v.LcCollate }).(pulumi.StringPtrOutput) }
[ 1.2918665409088135, 0.18176810443401337, 0.8261228203773499, -1.1711573600769043, 0.8333844542503357, 1.1082189083099365, -1.1119407415390015, -0.1758517622947693, -0.560140073299408, -0.09321277588605881, 0.8139074444770813, -0.08400868624448776, -0.6712751984596252, -0.761299729347229, ...
func (o PgDatabaseOutput) LcCtype() pulumi.StringPtrOutput { return o.ApplyT(func(v *PgDatabase) pulumi.StringPtrOutput { return v.LcCtype }).(pulumi.StringPtrOutput) }
[ 1.2079403400421143, 0.5335215926170349, 0.34011849761009216, -0.8601920008659363, 0.9675018787384033, 0.8931049704551697, -0.4651777744293213, 0.05842369422316551, -0.10122080147266388, -0.8583496809005737, 0.10696059465408325, 0.661629319190979, -0.5822232961654663, -0.7769178748130798, ...
func (o PgDatabaseOutput) Project() pulumi.StringOutput { return o.ApplyT(func(v *PgDatabase) pulumi.StringOutput { return v.Project }).(pulumi.StringOutput) }
[ 0.03536918759346008, 0.9565710425376892, 0.3322615921497345, -0.02973560430109501, 0.26974189281463623, 1.1403831243515015, -0.5082594752311707, 0.5129961967468262, -0.5064610242843628, 0.12811379134655, 0.735066294670105, 0.3881276547908783, -0.27311235666275024, -1.2737172842025757, -0...
func (o PgDatabaseOutput) ServiceName() pulumi.StringOutput { return o.ApplyT(func(v *PgDatabase) pulumi.StringOutput { return v.ServiceName }).(pulumi.StringOutput) }
[ -0.22027364373207092, 0.4131142795085907, 0.47445493936538696, -0.561467707157135, -0.08252738416194916, 0.9910362958908081, -0.2063114494085312, -0.1501215398311615, -0.9249498844146729, 0.3010515868663788, 0.5117730498313904, 1.0133306980133057, -0.473562091588974, -0.5694452524185181, ...
func (o PgDatabaseOutput) TerminationProtection() pulumi.BoolPtrOutput { return o.ApplyT(func(v *PgDatabase) pulumi.BoolPtrOutput { return v.TerminationProtection }).(pulumi.BoolPtrOutput) }
[ 0.11014047265052795, 0.8963249921798706, 0.4957670271396637, 0.42952466011047363, 0.36995676159858704, 0.7262861132621765, -0.8308889269828796, 0.34528616070747375, 0.4282006025314331, 1.118820071220398, -0.6184268593788147, -0.22340349853038788, -1.1951866149902344, -1.448639154434204, ...
func NewUpdateAddonParams() *UpdateAddonParams { var () return &UpdateAddonParams{ timeout: cr.DefaultTimeout, } }
[ 0.07212997227907181, -1.009561538696289, 0.315102219581604, 0.691727340221405, -1.6056116819381714, 0.8722996115684509, -0.7758201956748962, 0.6555797457695007, -0.4512700140476227, 0.6762149333953857, -0.2010536640882492, 0.42944058775901794, -1.0177243947982788, 1.0427106618881226, -0....
func NewUpdateAddonParamsWithTimeout(timeout time.Duration) *UpdateAddonParams { var () return &UpdateAddonParams{ timeout: timeout, } }
[ 0.7237988114356995, -0.9385748505592346, 0.4671925902366638, 0.5098961591720581, -1.226379632949829, 1.4512525796890259, -1.670983910560608, 0.6119999289512634, -0.4706595540046692, 1.557976484298706, 0.2601205110549927, 0.637359082698822, -0.7874791622161865, 0.9992364048957825, -0.7365...