text
stringlengths
11
6.3k
embedding
listlengths
768
768
func (s *Server) StartCycle(stateRequest *pb.StateRequestMessage) { if s.IsLeader() { // if the node is monitor then process the start cycle request s.requestManager.AddSkipCycle(SkipCycleApplicationMaterial{ skipTo: uint32(stateRequest.CycleId), BGApplicant: uint32(stateRequest.BgId), view: s...
[ -0.22115622460842133, 0.44941821694374084, 0.6464284062385559, 0.3233174681663513, 0.4233741760253906, 0.08198689669370651, 0.31858789920806885, -0.2523207366466522, 0.34874701499938965, 0.04002688452601433, 1.0351765155792236, 0.6575644612312317, -0.8120649456977844, 0.8330475687980652, ...
func (item Item) Expired() bool { if item.Expiration == 0 { return false } return time.Now().UnixNano() > item.Expiration }
[ -0.2176259607076645, -0.5505124926567078, 0.48450085520744324, 0.9891589879989624, 0.18023094534873962, 0.14052976667881012, -1.5015541315078735, 0.022037137299776077, 0.07799770683050156, 0.3923245072364807, -0.6800459027290344, -0.3311965763568878, 0.15365909039974213, 0.6118909120559692...
func (item Item) Outdated() bool { if item.Expired() { return true } if item.Outdate < time.Now().UnixNano() { return true } return false }
[ -1.230553388595581, -0.6303566098213196, 0.6898707151412964, 0.3668542206287384, -1.0282310247421265, 0.7079047560691833, -0.9699581265449524, 0.6900444626808167, 0.04819716513156891, 0.04218021407723427, -0.25423040986061096, 0.06137757748365402, -0.2737133800983429, 0.12850099802017212, ...
func MakeUpperCase(str string) string { return (strings.ToUpper(str)) }
[ -0.6310842633247375, -0.8900645971298218, 0.3385498821735382, -0.05974174290895462, -1.3699663877487183, 0.7954773306846619, 0.39710673689842224, -0.10487709939479828, 0.8345884680747986, 0.9200569987297058, 0.5335026383399963, -0.9697927832603455, 0.4707913398742676, -0.9167585372924805, ...
func Past(h, m, s int) int { var sum int if h >= 1 && m >= 1 && s >= 1 { h = (h * 60 * 60 * 1000) m = (m * 60 * 1000) s = s * 1000 sum += h + m + s } else if h <= 0 && m >= 1 && s >= 1 { m = (m * 60 * 1000) s = s * 1000 sum += h + m + s } else if h >= 1 && m == 0 && s == 0 { h = (h * 60 * 60 * 1000)...
[ -0.09642691910266876, 0.1376764327287674, 0.8785077929496765, -0.5375150442123413, -1.2456109523773193, -0.17921750247478485, 0.030575713142752647, -0.6577650904655457, -0.30555999279022217, -0.3086448907852173, 0.18266841769218445, 0.25706812739372253, -0.6772960424423218, 0.5374206900596...
func Past2(h, m, s int) int { return (h*3600000 + m*60000 + s*1000) }
[ 0.19418387115001678, -0.47715747356414795, 0.5059701204299927, -0.11513492465019226, -1.7477034330368042, -0.28076493740081787, -0.2974880337715149, -0.791745662689209, -1.4191043376922607, -0.18231582641601562, -0.3723732829093933, 0.26599401235580444, -0.10068746656179428, 0.446276903152...
func AbbrevName(name string) string { var s []string s = append(s, name) for _, nn := range s { spnn := strings.Split(nn, " ") firstName := spnn[0] lastName := spnn[1] fmt.Println(strings.ToUpper(firstName[0:1]) + "." + strings.ToUpper(lastName[0:1])) } return name }
[ -0.02225371263921261, -1.3331530094146729, 1.0212557315826416, -0.7926771640777588, -0.6437872052192688, 0.3180205821990967, -0.16413839161396027, -0.11290907859802246, 0.2223193347454071, 0.5874558687210083, 0.37279754877090454, 0.696694016456604, 1.2014890909194946, 0.046653863042593, ...
func AbbrevName1(name string) string { words := strings.Split(name, " ") return strings.ToUpper(string(words[0][0])) + "." + strings.ToUpper(string(words[1][0])) }
[ -0.5389958620071411, -1.1350783109664917, 0.9360188841819763, -0.49959561228752136, -0.9390113353729248, 0.5163761973381042, -0.14733360707759857, 0.03105178102850914, 0.12707312405109406, 1.381353497505188, 0.5263181328773499, 0.9709997773170471, 1.0202590227127075, -0.07188528776168823, ...
func AbbrevName2(name string) string { var parts []string for _, part := range strings.Split(name, " ") { parts = append(parts, strings.ToUpper(part[:1])) } return strings.Join(parts, ".") }
[ -0.4140401780605316, -1.3167160749435425, 0.8858320116996765, -0.5103639960289001, -1.3668484687805176, 0.2013368308544159, -0.6132193207740784, -0.35822924971580505, -0.17021958529949188, 0.5955425500869751, 0.09886341542005539, 0.4776712954044342, 0.9036117792129517, -0.2960122227668762,...
func (s ListGlobalTablesInput) String() string { return awsutil.Prettify(s) }
[ -0.03344090282917023, 0.08879227936267853, 0.12852708995342255, 0.12236301600933075, -0.7141482830047607, 1.6442726850509644, 1.031157374382019, -1.0303378105163574, -0.4621616005897522, 0.320701539516449, -0.5828250050544739, 1.2968394756317139, -0.30145594477653503, 0.618671715259552, ...
func (s *ListGlobalTablesInput) Validate() error { invalidParams := aws.ErrInvalidParams{Context: "ListGlobalTablesInput"} if s.ExclusiveStartGlobalTableName != nil && len(*s.ExclusiveStartGlobalTableName) < 3 { invalidParams.Add(aws.NewErrParamMinLen("ExclusiveStartGlobalTableName", 3)) } if s.Limit != nil && *s...
[ -0.7327418327331543, 0.7280018925666809, 0.5499479174613953, 0.20116674900054932, -0.6217333078384399, 0.7850885987281799, 0.2877698242664337, -0.3288416564464569, -0.438314825296402, 0.3611557185649872, -0.19977276027202606, 0.9992220401763916, -1.000497817993164, 0.9600385427474976, -0...
func (s ListGlobalTablesOutput) String() string { return awsutil.Prettify(s) }
[ 0.5952282547950745, -0.2504526674747467, 0.20871470868587494, 0.30406609177589417, -1.0385798215866089, 0.8742964863777161, 1.257511019706726, -0.6982418298721313, -0.7780831456184387, 0.3203427493572235, -0.3804175853729248, 0.7254019379615784, 0.10232263058423996, 0.5845088958740234, 0...
func (r ListGlobalTablesRequest) Send(ctx context.Context) (*ListGlobalTablesResponse, error) { r.Request.SetContext(ctx) err := r.Request.Send() if err != nil { return nil, err } resp := &ListGlobalTablesResponse{ ListGlobalTablesOutput: r.Request.Data.(*ListGlobalTablesOutput), response: &aw...
[ -1.1428899765014648, 0.4567113220691681, 0.39376100897789, 0.3529404401779175, -0.25170353055000305, 0.5813665986061096, 0.27657103538513184, -0.6343539357185364, -0.026428669691085815, 0.6114361882209778, -1.0867103338241577, 1.2620084285736084, -0.9137668609619141, 0.8561955690383911, ...
func (r *ListGlobalTablesResponse) SDKResponseMetdata() *aws.Response { return r.response }
[ -0.04198820888996124, -0.1575152724981308, 0.4739909768104553, -0.2397797852754593, -0.48050785064697266, 0.7905582189559937, -0.1952201873064041, -0.332249253988266, 0.5888541340827942, 0.6276794075965881, -0.9886631369590759, 0.28727954626083374, -0.35535404086112976, 0.286529541015625, ...
func (c *Canvas) ellipse(brush Brush, pen Pen, bounds Rectangle, sizeCorrection int) error { return c.ellipsePixels(brush, pen, RectangleFrom96DPI(bounds, c.DPI()), sizeCorrection) }
[ 0.13758485019207, 0.30692845582962036, 0.3269069790840149, -0.22325913608074188, 0.0038874323945492506, 0.4298451244831085, 0.06761582940816879, -0.9805369973182678, 0.7929081916809082, -0.5406749248504639, 0.22004884481430054, -0.5788223743438721, 0.26295527815818787, -0.7794015407562256,...
func (c *Canvas) ellipsePixels(brush Brush, pen Pen, bounds Rectangle, sizeCorrection int) error { return c.withBrushAndPen(brush, pen, func() error { if !win.Ellipse( c.hdc, int32(bounds.X), int32(bounds.Y), int32(bounds.X+bounds.Width+sizeCorrection), int32(bounds.Y+bounds.Height+sizeCorrection)) { ...
[ -0.20789484679698944, -0.0911540761590004, 0.5146480798721313, -0.6717218160629272, -0.1061239019036293, 0.48434749245643616, 0.0178555715829134, -0.9782460927963257, 0.8313432335853577, 0.03656195476651192, 0.3309185206890106, -0.18307553231716156, -0.3821394443511963, 0.02753343805670738...
func (c *Canvas) DrawEllipse(pen Pen, bounds Rectangle) error { return c.ellipse(nullBrushSingleton, pen, bounds, 0) }
[ -0.650948166847229, 0.35585159063339233, 0.3723925054073334, 0.1944006383419037, 0.09378758817911148, 0.4230431914329529, -0.9483057856559753, -1.1226733922958374, 0.6639696955680847, -0.5014421343803406, -0.2503538131713867, -0.6457434296607971, -0.19418339431285858, -0.3645743727684021, ...
func (c *Canvas) DrawEllipsePixels(pen Pen, bounds Rectangle) error { return c.ellipsePixels(nullBrushSingleton, pen, bounds, 0) }
[ -1.3086732625961304, 0.39018768072128296, 0.38436755537986755, -0.45093414187431335, -0.020556678995490074, 0.6158804297447205, -0.370979905128479, -1.2673052549362183, 1.052063226699829, -0.10307875275611877, -0.06831930577754974, -0.3459354043006897, -0.26697611808776855, 0.3186552226543...
func (c *Canvas) FillEllipse(brush Brush, bounds Rectangle) error { return c.ellipse(brush, nullPenSingleton, bounds, 1) }
[ 0.4833728075027466, 0.18475021421909332, 0.5380607843399048, 0.19103385508060455, -0.20333439111709595, 0.21861183643341064, -0.787283182144165, -0.8742353320121765, 1.0940299034118652, -0.17825494706630707, -0.4857107400894165, -1.0095993280410767, 0.01113644614815712, 0.33068349957466125...
func (c *Canvas) FillEllipsePixels(brush Brush, bounds Rectangle) error { return c.ellipsePixels(brush, nullPenSingleton, bounds, 1) }
[ -0.6798219084739685, 0.3007548153400421, 0.5704232454299927, -0.3153620958328247, -0.2446381151676178, 0.4276060461997986, -0.3653046488761902, -1.1037638187408447, 1.786569595336914, 0.09790994971990585, -0.32491910457611084, -0.6932486295700073, -0.08949758112430573, 0.78339684009552, ...
func (c *Canvas) DrawImage(image Image, location Point) error { return c.DrawImagePixels(image, PointFrom96DPI(location, c.DPI())) }
[ -0.2465735226869583, 0.42366287112236023, 0.12326069921255112, 0.4822186827659607, 0.16854384541511536, 0.3553878366947174, -0.7071215510368347, -0.2874174416065216, 0.37302467226982117, 0.08125640451908112, 0.24536490440368652, -0.6944549679756165, 0.27614593505859375, -0.3899331986904144...
func (c *Canvas) DrawImagePixels(image Image, location Point) error { if image == nil { return newError("image cannot be nil") } return image.draw(c.hdc, location) }
[ -0.15378473699092865, 0.7369564771652222, 0.19543924927711487, 0.5126242637634277, 0.21932286024093628, 0.0373590923845768, -0.3949197232723236, -0.7068604230880737, 0.6123538017272949, 0.6793935298919678, 0.8310914635658264, -0.24636812508106232, -0.2558726966381073, 0.6489240527153015, ...
func (c *Canvas) DrawImageStretched(image Image, bounds Rectangle) error { return c.DrawImageStretchedPixels(image, RectangleFrom96DPI(bounds, c.DPI())) }
[ -0.7162348031997681, 0.3118530809879303, 0.27323007583618164, -0.8488141894340515, 0.020630598068237305, 0.26872265338897705, -0.34380534291267395, -1.034806489944458, 0.5292435884475708, -0.7590043544769287, -0.1740216463804245, 0.5664385557174683, 0.09449950605630875, -0.2288298308849334...
func (c *Canvas) DrawImageStretchedPixels(image Image, bounds Rectangle) error { if image == nil { return newError("image cannot be nil") } if dsoc, ok := image.(interface { drawStretchedOnCanvasPixels(canvas *Canvas, bounds Rectangle) error }); ok { return dsoc.drawStretchedOnCanvasPixels(c, bounds) } re...
[ -0.4486251771450043, 0.5351052284240723, 0.3653765320777893, -0.6128180027008057, 0.08676102012395859, 0.25511422753334045, -0.3023713231086731, -0.9473492503166199, 0.9401637315750122, -0.18526577949523926, 0.3748601973056793, 0.6827672123908997, -0.23652297258377075, 0.8050503134727478, ...
func (c *Canvas) DrawBitmapWithOpacity(bmp *Bitmap, bounds Rectangle, opacity byte) error { return c.DrawBitmapWithOpacityPixels(bmp, RectangleFrom96DPI(bounds, c.DPI()), opacity) }
[ -0.3459925055503845, -0.6495618224143982, 0.6337155103683472, -0.16730687022209167, 0.025520555675029755, 0.22472429275512695, -0.02680899016559124, -0.8037763237953186, 0.6399845480918884, -0.2218841165304184, 0.4735577702522278, 0.10790447890758514, -0.2849946916103363, 0.594205081462860...
func (c *Canvas) DrawBitmapWithOpacityPixels(bmp *Bitmap, bounds Rectangle, opacity byte) error { if bmp == nil { return newError("bmp cannot be nil") } return bmp.alphaBlend(c.hdc, bounds, opacity) }
[ 0.1794263869524002, -0.6345090866088867, 0.5097374320030212, -0.2637200653553009, 0.42110785841941833, 0.43764305114746094, -0.047032035887241364, -0.401935875415802, 0.7178393006324768, 0.12273920327425003, 0.9653584361076355, 0.2764212191104889, -0.8336260914802551, 1.2268118858337402, ...
func (c *Canvas) DrawBitmapPart(bmp *Bitmap, dst, src Rectangle) error { return c.DrawBitmapPartWithOpacityPixels(bmp, dst, src, 0xff) }
[ -0.8667531609535217, 0.4295412600040436, 0.5303536653518677, -1.20039701461792, -0.6765139102935791, 0.3801913559436798, -0.723190188407898, -0.5182814002037048, 0.8201436400413513, 0.20340722799301147, 0.6058798432350159, 0.08576600253582001, -0.4995919466018677, 0.43972864747047424, 0....
func (c *Canvas) DrawBitmapPartWithOpacity(bmp *Bitmap, dst, src Rectangle, opacity byte) error { dpi := c.DPI() return c.DrawBitmapPartWithOpacityPixels(bmp, RectangleFrom96DPI(dst, dpi), RectangleFrom96DPI(src, dpi), opacity) }
[ -0.6778610348701477, -0.20216104388237, 0.6670587062835693, -0.9248284101486206, -0.4548322856426239, 0.5180433392524719, -0.44159847497940063, -0.11161071062088013, 0.5271910429000854, 0.3989589810371399, 0.3217318654060364, -0.26367390155792236, -0.20720869302749634, 0.14981438219547272,...
func (c *Canvas) DrawBitmapPartWithOpacityPixels(bmp *Bitmap, dst, src Rectangle, opacity byte) error { if bmp == nil { return newError("bmp cannot be nil") } return bmp.alphaBlendPart(c.hdc, dst, src, opacity) }
[ -0.25855183601379395, -0.19764582812786102, 0.6119935512542725, -0.9553844332695007, -0.01753874309360981, 0.5699673891067505, -0.46327629685401917, -0.03587103262543678, 0.6607012152671814, 0.6572111248970032, 0.8105254769325256, -0.09783981740474701, -0.7646607160568237, 0.89983290433883...
func (c *Canvas) DrawLine(pen Pen, from, to Point) error { dpi := c.DPI() return c.DrawLinePixels(pen, PointFrom96DPI(from, dpi), PointFrom96DPI(to, dpi)) }
[ -0.542937695980072, 0.3836537301540375, 0.4021359086036682, -0.12217633426189423, 0.19998323917388916, 0.5442252159118652, -0.8481138348579407, -0.9974052309989929, -0.07950501143932343, -0.9758836030960083, -0.6219878196716309, -0.28652212023735046, 0.11554022133350372, -1.771694540977478...
func (c *Canvas) DrawLinePixels(pen Pen, from, to Point) error { if !win.MoveToEx(c.hdc, int(from.X), int(from.Y), nil) { return newError("MoveToEx failed") } return c.withPen(pen, func() error { if !win.LineTo(c.hdc, int32(to.X), int32(to.Y)) { return newError("LineTo failed") } return nil }) }
[ -0.37424173951148987, 0.2845907211303711, 0.600420355796814, -0.686268150806427, 0.06231313943862915, 0.8473438024520874, -0.6397718787193298, -0.7661010026931763, -0.1314125806093216, -0.4837174415588379, -0.31689587235450745, 0.18478253483772278, -0.23749940097332, -0.46466416120529175, ...
func (c *Canvas) DrawPolyline(pen Pen, points []Point) error { if len(points) < 1 { return nil } dpi := c.DPI() pts := make([]win.POINT, len(points)) for i, p := range points { pts[i] = PointFrom96DPI(p, dpi).toPOINT() } return c.withPen(pen, func() error { if !win.Polyline(c.hdc, unsafe.Pointer(&pts[0]...
[ 0.07726838439702988, -0.041496165096759796, 0.45351481437683105, 0.13188518583774567, 0.14948618412017822, 0.4420655369758606, -0.4765438139438629, -0.7498160600662231, 0.6538898348808289, -0.20695480704307556, -0.9073120355606079, -0.29439467191696167, -0.2824472188949585, -0.667834579944...
func (c *Canvas) DrawPolylinePixels(pen Pen, points []Point) error { if len(points) < 1 { return nil } pts := make([]win.POINT, len(points)) for i, p := range points { pts[i] = p.toPOINT() } return c.withPen(pen, func() error { if !win.Polyline(c.hdc, unsafe.Pointer(&pts[0].X), int32(len(pts))) { retur...
[ -0.11000873148441315, -0.1338111013174057, 0.37948864698410034, -0.16599760949611664, 0.19400142133235931, 0.8293665647506714, -0.49610137939453125, -0.5715183615684509, 0.4692865014076233, -0.04821227118372917, -0.3887600302696228, -0.25828492641448975, -0.40187326073646545, -0.1427482962...
func (c *Canvas) rectangle(brush Brush, pen Pen, bounds Rectangle, sizeCorrection int) error { return c.rectanglePixels(brush, pen, RectangleFrom96DPI(bounds, c.DPI()), sizeCorrection) }
[ 0.07513308525085449, 0.22766898572444916, 0.27832111716270447, -0.3277268409729004, -0.049473103135824203, 0.12285050749778748, 0.3012252449989319, -0.7038366198539734, 1.0698679685592651, -0.9562056660652161, 0.21449066698551178, -0.1559227555990219, 0.22277404367923737, -0.56198906898498...
func (c *Canvas) rectanglePixels(brush Brush, pen Pen, bounds Rectangle, sizeCorrection int) error { return c.withBrushAndPen(brush, pen, func() error { if !win.Rectangle_( c.hdc, int32(bounds.X), int32(bounds.Y), int32(bounds.X+bounds.Width+sizeCorrection), int32(bounds.Y+bounds.Height+sizeCorrection...
[ -0.14545218646526337, -0.033592503517866135, 0.43530476093292236, -0.677185595035553, -0.45412489771842957, 0.030849143862724304, 0.09649229049682617, -1.1424509286880493, 0.8050994277000427, -0.3042719066143036, 0.45900267362594604, 0.10198090225458145, -0.29944494366645813, 0.18472339212...
func (c *Canvas) DrawRectangle(pen Pen, bounds Rectangle) error { return c.rectangle(nullBrushSingleton, pen, bounds, 0) }
[ -0.21377339959144592, 0.5433055758476257, 0.44920068979263306, 0.1273667812347412, 0.24303987622261047, 0.517626166343689, -0.30930376052856445, -0.6708066463470459, 0.20121930539608002, -1.3817335367202759, -0.05091799423098564, -0.41535553336143494, -0.19787967205047607, 0.10416400432586...
func (c *Canvas) DrawRectanglePixels(pen Pen, bounds Rectangle) error { return c.rectanglePixels(nullBrushSingleton, pen, bounds, 0) }
[ -0.6981086730957031, 0.68982994556427, 0.3515819013118744, -0.29059985280036926, 0.03119436837732792, 0.1693630814552307, -0.47493159770965576, -1.1227391958236694, 0.3658626079559326, -0.9560526609420776, 0.22907960414886475, -0.4287373721599579, -0.3609243631362915, 0.28563955426216125, ...
func (c *Canvas) FillRectangle(brush Brush, bounds Rectangle) error { return c.rectangle(brush, nullPenSingleton, bounds, 1) }
[ 0.3471018373966217, 0.2890520989894867, 0.6747226119041443, -0.19431506097316742, 0.20122507214546204, 0.48530325293540955, -0.1656743437051773, -0.5508394837379456, 0.4439314901828766, -1.4297939538955688, -0.2152436077594757, -0.9518350958824158, -0.2369127720594406, 0.7540046572685242, ...
func (c *Canvas) FillRectanglePixels(brush Brush, bounds Rectangle) error { return c.rectanglePixels(brush, nullPenSingleton, bounds, 1) }
[ -0.2472197711467743, 0.4434451162815094, 0.4737571179866791, -0.20333680510520935, 0.029918882995843887, 0.16856077313423157, -0.21237416565418243, -1.2909393310546875, 0.8627439141273499, -1.0387150049209595, -0.0875796526670456, -0.8952958583831787, -0.24502964317798615, 0.93898195028305...
func (c *Canvas) roundedRectangle(brush Brush, pen Pen, bounds Rectangle, ellipseSize Size, sizeCorrection int) error { dpi := c.DPI() return c.roundedRectanglePixels(brush, pen, RectangleFrom96DPI(bounds, dpi), SizeFrom96DPI(ellipseSize, dpi), sizeCorrection) }
[ -0.03728446736931801, -0.3606377840042114, 0.5311146974563599, -0.9420090317726135, 0.2998834550380707, 0.4692446291446686, 0.50102698802948, -0.23701250553131104, 0.7895246148109436, -0.9620662331581116, 0.38550710678100586, -0.4754972457885742, 0.3327328562736511, 0.196708545088768, -0...
func (c *Canvas) roundedRectanglePixels(brush Brush, pen Pen, bounds Rectangle, ellipseSize Size, sizeCorrection int) error { return c.withBrushAndPen(brush, pen, func() error { if !win.RoundRect( c.hdc, int32(bounds.X), int32(bounds.Y), int32(bounds.X+bounds.Width+sizeCorrection), int32(bounds.Y+boun...
[ -0.2515513002872467, -0.6677568554878235, 0.5385900139808655, -1.1462252140045166, 0.2910570204257965, 0.519981861114502, 0.40148305892944336, -0.6421694159507751, 0.708840548992157, -0.49839285016059875, 0.7588384747505188, -0.44742926955223083, 0.051984116435050964, 0.6905900835990906, ...
func (c *Canvas) DrawRoundedRectangle(pen Pen, bounds Rectangle, ellipseSize Size) error { return c.roundedRectangle(nullBrushSingleton, pen, bounds, ellipseSize, 0) }
[ -0.4394063949584961, -0.13398873805999756, 0.5023545622825623, -0.6247233152389526, 0.19246676564216614, 0.8857685923576355, 0.32718440890312195, -0.51637202501297, 0.5682805180549622, -1.5907427072525024, -0.15289078652858734, 0.014254038222134113, -0.17340804636478424, 0.9737949967384338...
func (c *Canvas) DrawRoundedRectanglePixels(pen Pen, bounds Rectangle, ellipseSize Size) error { return c.roundedRectanglePixels(nullBrushSingleton, pen, bounds, ellipseSize, 0) }
[ -0.6664149165153503, -0.06229955703020096, 0.4221057891845703, -0.6797325611114502, 0.22175085544586182, 0.692729115486145, 0.13287021219730377, -0.8373005390167236, 0.8463122248649597, -1.236148476600647, 0.09804267436265945, -0.1647481918334961, -0.14111879467964172, 1.0356100797653198, ...
func (c *Canvas) FillRoundedRectangle(brush Brush, bounds Rectangle, ellipseSize Size) error { return c.roundedRectangle(brush, nullPenSingleton, bounds, ellipseSize, 1) }
[ -0.009316670708358288, -0.19552116096019745, 0.781858503818512, -0.8100984692573547, 0.1720595806837082, 0.9013293385505676, 0.15226620435714722, -0.6949118971824646, 0.9967532157897949, -1.36128568649292, -0.21770355105400085, -0.32885444164276123, 0.018454084172844887, 1.390640377998352,...
func (c *Canvas) FillRoundedRectanglePixels(brush Brush, bounds Rectangle, ellipseSize Size) error { return c.roundedRectanglePixels(brush, nullPenSingleton, bounds, ellipseSize, 1) }
[ -0.3658387362957001, -0.09686486423015594, 0.6228866577148438, -0.6691691279411316, 0.2716407775878906, 0.7232691645622253, 0.06938032805919647, -1.1506876945495605, 1.2959296703338623, -0.9275419116020203, 0.0024692011065781116, -0.38063937425613403, 0.058587897568941116, 1.33324611186981...
func (c *Canvas) GradientFillRectangle(color1, color2 Color, orientation Orientation, bounds Rectangle) error { return c.GradientFillRectanglePixels(color1, color2, orientation, RectangleFrom96DPI(bounds, c.DPI())) }
[ -0.5484449863433838, 0.37048763036727905, 0.8444274067878723, -0.7412713170051575, 0.8632848262786865, 1.074291706085205, -0.45718157291412354, -1.4006108045578003, -0.8027421832084656, -0.47820547223091125, -0.312788724899292, 0.30293142795562744, 0.10021217167377472, 0.4646432399749756, ...
func (c *Canvas) GradientFillRectanglePixels(color1, color2 Color, orientation Orientation, bounds Rectangle) error { vertices := [2]win.TRIVERTEX{ { X: int32(bounds.X), Y: int32(bounds.Y), Red: uint16(color1.R()) * 256, Green: uint16(color1.G()) * 256, Blue: uint16(color1.B()) * 256, Al...
[ -0.3019672930240631, 0.016344619914889336, 0.9771785140037537, -1.292930245399475, 0.6995596885681152, 0.7355506420135498, -0.40179625153541565, -1.356189250946045, -0.7867316603660583, 0.31022387742996216, -0.29319998621940613, 0.5152583122253418, -0.4211674630641937, 0.6935794353485107, ...
func (c *Canvas) DrawText(text string, font *Font, color Color, bounds Rectangle, format DrawTextFormat) error { return c.DrawTextPixels(text, font, color, RectangleFrom96DPI(bounds, c.DPI()), format) }
[ -0.24160170555114746, 0.15480485558509827, 0.34010306000709534, -0.1494121551513672, -0.5965955257415771, 0.092987060546875, -1.3489913940429688, -0.9904619455337524, 1.1714037656784058, -0.35289862751960754, -0.18170392513275146, 0.4043557643890381, -0.01760348118841648, -0.46906578540802...
func (c *Canvas) DrawTextPixels(text string, font *Font, color Color, bounds Rectangle, format DrawTextFormat) error { return c.withFontAndTextColor(font, color, func() error { rect := bounds.toRECT() ret := win.DrawTextEx( c.hdc, syscall.StringToUTF16Ptr(text), -1, &rect, uint32(format)|win.DT_EDIT...
[ 0.02114170789718628, 0.45723244547843933, 0.4865165054798126, -1.0791106224060059, -0.4823426604270935, 0.358952134847641, -1.226646065711975, -0.8870565295219421, 0.4712248146533966, 0.5548579096794128, 0.45304572582244873, 0.34701141715049744, -0.8664221167564392, -0.023276329040527344, ...
func (c *Canvas) fontHeight(font *Font) (height int, err error) { err = c.withFontAndTextColor(font, 0, func() error { var size win.SIZE if !win.GetTextExtentPoint32(c.hdc, gM, 2, &size) { return newError("GetTextExtentPoint32 failed") } height = int(size.CY) if height == 0 { return newError("invalid ...
[ 0.7623893618583679, 0.3227035403251648, 0.7831709384918213, 0.4207226037979126, -1.030124545097351, -0.4301333427429199, 0.5537915229797363, -0.973256528377533, 0.7694389224052429, 0.18360836803913116, -0.7750157117843628, 0.39197805523872375, 0.03218862786889076, 0.12920595705509186, 0....
func (c *Canvas) measureTextForDPI(text string, font *Font, bounds Rectangle, format DrawTextFormat, dpi int) (boundsMeasured Rectangle, err error) { hFont := win.HGDIOBJ(font.handleForDPI(dpi)) oldHandle := win.SelectObject(c.hdc, hFont) if oldHandle == 0 { err = newError("SelectObject failed") return } defer...
[ -0.10576673597097397, -0.2009105533361435, 0.6941197514533997, -1.1308962106704712, -0.9232849478721619, 0.11570210009813309, -0.6138663291931152, -0.8885388970375061, -0.015023729763925076, -0.2198760062456131, -0.011525316163897514, 0.16664306819438934, -0.5352150797843933, 0.45200133323...
func (c *Canvas) MeasureText(text string, font *Font, bounds Rectangle, format DrawTextFormat) (boundsMeasured Rectangle, runesFitted int, err error) { dpi := c.DPI() var boundsMeasuredPixels Rectangle boundsMeasuredPixels, runesFitted, err = c.MeasureTextPixels(text, font, RectangleFrom96DPI(bounds, dpi), format) ...
[ -0.1892242580652237, 0.003120517823845148, 0.6315671801567078, -0.5840340852737427, -1.156746745109558, -0.2802274525165558, -0.4682919681072235, -0.37529706954956055, 1.0476104021072388, -0.29200345277786255, -0.2936938405036926, 0.10021401196718216, -0.2266744077205658, 0.523682355880737...
func (c *Canvas) MeasureTextPixels(text string, font *Font, bounds Rectangle, format DrawTextFormat) (boundsMeasured Rectangle, runesFitted int, err error) { boundsMeasured, _, runesFitted, err = c.measureAndModifyTextPixels(text, font, bounds, format) return }
[ -0.4103645086288452, -0.2743353545665741, 0.3779263198375702, -0.6721047759056091, -0.906591534614563, -0.45013996958732605, -0.7044517397880554, -0.1919602006673813, 1.0792226791381836, -0.007880497723817825, 0.3246285319328308, 0.3056156039237976, -0.37159326672554016, 0.8423311114311218...
func (c *Canvas) MeasureAndModifyTextPixels(text string, font *Font, bounds Rectangle, format DrawTextFormat) (boundsMeasured Rectangle, textDisplayed string, err error) { var textPtr *uint16 var runesFitted int if boundsMeasured, textPtr, runesFitted, err = c.measureAndModifyTextPixels(text, font, bounds, format|Te...
[ 0.230488121509552, -0.4693615436553955, 0.5429205894470215, -0.8683871626853943, -0.7807464599609375, -0.19193331897258759, -0.8149048089981079, -0.006278155371546745, 1.0091662406921387, 0.05788996443152428, 1.1119320392608643, 0.0648358091711998, -0.3584563732147217, 0.9307271242141724, ...
func (p *P) Image() string { return fmt.Sprintf("docker.io/mysql/mysql-server:%s", p.Version) }
[ -1.2712631225585938, -0.27629297971725464, 0.5301859378814697, -0.1357915997505188, -0.06337042897939682, 1.1122462749481201, -0.6285964846611023, 0.46492478251457214, -0.6639728546142578, 0.9490289688110352, 0.20790041983127594, -0.09311771392822266, -0.2080671340227127, 0.068441472947597...
func characterList(ctx aero.Context, title string, filter func(*arn.Character) bool, searchLink func(*arn.Character) string) error { user := arn.GetUserFromContext(ctx) if user == nil || (user.Role != "admin" && user.Role != "editor") { return ctx.Error(http.StatusUnauthorized, "Not authorized") } characters, c...
[ -0.5181776285171509, -0.6100175380706787, 0.3874145746231079, -0.18577998876571655, -0.4019063115119934, -0.25873321294784546, -0.3206922709941864, 0.6529197692871094, -0.0961567834019661, 0.27731582522392273, -0.19859400391578674, 0.9614798426628113, 0.7813407182693481, -0.399858862161636...
func filterCharacters(filter func(*arn.Character) bool) ([]*arn.Character, int) { // Filter characters := arn.FilterCharacters(func(character *arn.Character) bool { if character.IsDraft { return false } return filter(character) }) // Sort arn.SortCharactersByLikes(characters) // Limit count := len(ch...
[ -0.525581419467926, -0.3950868844985962, 0.5084327459335327, -1.0821022987365723, -1.3819999694824219, -0.28627991676330566, -0.2662699520587921, 0.47481852769851685, 0.013308723457157612, 0.21490293741226196, -0.3569934666156769, 1.5334970951080322, 0.06804458796977997, -0.087412111461162...
func NewAdapter(conn *nats.Conn, options ...Option) *Adapter { opts := defaultOptions() for _, o := range options { o.apply(&opts) } a := &Adapter{ conn: conn, receivedNatsMsgCh: make(chan *nats.Msg, receivedNatsMsgChSize), publishCh: make(chan *types.Message, opts.publishChSize), del...
[ -0.05226178467273712, -0.30986812710762024, 0.516368567943573, -0.029415138065814972, -0.7830641269683838, -0.2884351313114166, -0.733282208442688, -0.8917956948280334, -0.13022065162658691, -0.26410239934921265, 0.13339711725711823, 0.6098272800445557, 0.06211251765489578, 0.6815791726112...
func (a *Adapter) Close() { close(a.done) a.doneWg.Wait() a.conn.Close() }
[ -0.9345208406448364, 0.07995090633630753, 0.4732606112957001, -0.25450268387794495, -0.6917880773544312, 0.45974841713905334, 0.36327868700027466, -0.6894389986991882, -0.5069893002510071, -0.4584929347038269, 0.3088743984699249, 0.012024934403598309, -0.23016788065433502, 1.63542616367340...
func ListContainsElement(list []string, element string) bool { for _, item := range list { if item == element { return true } } return false }
[ 0.41995832324028015, -0.9374191761016846, 0.19580045342445374, 0.7521010041236877, -0.05759653076529503, -0.020542433485388756, -0.9994653463363647, 0.8142083287239075, 0.6616482138633728, 0.33512815833091736, -0.9934021234512329, -0.05435088649392128, 0.049215953797101974, 0.7791739702224...
func RemoveElementFromList(list []string, element string) []string { out := []string{} for _, item := range list { if item != element { out = append(out, item) } } return out }
[ -0.09209669381380081, -0.8646931052207947, 0.4316500723361969, 0.4539397358894348, -0.5488868951797485, 0.1392592340707779, -1.3644181489944458, 0.8195432424545288, 0.3039216101169586, 0.9916170239448547, -0.8080750107765198, 0.4946005642414093, -0.8679443597793579, 0.49187496304512024, ...
func CookiesToMap(r *http.Request) map[string]interface{} { var cookies = make(map[string]interface{}) for _, v := range r.Cookies() { vint64, err := AssignGetInt64(v.Value) if err == nil { cookies[v.Name] = vint64 continue } vfloat64, err := AssignGetFloat64(v.Value) if err == nil { cookies[v.Name...
[ -1.765479564666748, -0.6935758590698242, 0.8734281659126282, 0.02810240164399147, -0.28795385360717773, -0.6862061023712158, 0.1039784848690033, -0.7297572493553162, 0.3167853057384491, 0.9136477708816528, -0.098112091422081, -0.2249065637588501, 0.689961314201355, 0.5210262537002563, -0...
func isKubeadmConfigPresent(docmap kubeadmapi.DocumentMap) bool { for gvk := range docmap { if gvk.Group == kubeadmapi.GroupName { return true } } return false }
[ -0.5565179586410522, -0.0085175521671772, 0.49162209033966064, -0.3510546386241913, 0.014224663376808167, 0.9737192988395691, -1.1189504861831665, -0.13514021039009094, -0.2283940613269806, 1.4094709157943726, 0.8099018931388855, -0.26904723048210144, -1.1363776922225952, 0.934750080108642...
func loadConfig(cfgPath string, client clientset.Interface, skipComponentConfigs bool, printer output.Printer) (*kubeadmapi.InitConfiguration, bool, error) { // Used for info logs here const logPrefix = "upgrade/config" // The usual case here is to not have a config file, but rather load the config from the cluster...
[ -0.08616619557142258, -0.07493768632411957, 0.9112564921379089, 0.438963383436203, -0.22759929299354553, -0.6377348303794861, 0.06844176352024078, 0.215999037027359, -0.11197425425052643, 1.0533161163330078, 0.11798612028360367, 0.04918546974658966, -0.7772433757781982, 0.6977035403251648,...
func enforceRequirements(flags *applyPlanFlags, args []string, dryRun bool, upgradeApply bool, printer output.Printer, loadConfig LoadConfigFunc) (clientset.Interface, upgrade.VersionGetter, *kubeadmapi.InitConfiguration, error) { client, err := getClient(flags.kubeConfigPath, dryRun) if err != nil { return nil, ni...
[ -0.26168563961982727, -0.357346773147583, 0.7191299796104431, 0.12516389787197113, 0.07186044752597809, -0.008979487232863903, -0.21760709583759308, -0.4448922276496887, -0.09407443553209305, 0.2562723159790039, -0.003520557191222906, 0.19447192549705505, -0.6307530999183655, 0.65925645828...
func printConfiguration(clustercfg *kubeadmapi.ClusterConfiguration, w io.Writer, printer output.Printer) { // Short-circuit if cfg is nil, so we can safely get the value of the pointer below if clustercfg == nil { return } cfgYaml, err := configutil.MarshalKubeadmConfigObject(clustercfg, kubeadmapiv1.SchemeGrou...
[ -0.4617384374141693, -0.40748992562294006, 0.5873697996139526, 0.2034359574317932, -0.3639599680900574, -0.7890395522117615, 0.20317919552326202, 0.05021362006664276, 0.11251146346330643, 0.8598670363426208, 0.45008525252342224, 0.33262109756469727, -0.22952492535114288, 1.0255886316299438...
func runPreflightChecks(client clientset.Interface, ignorePreflightErrors sets.Set[string], cfg *kubeadmapi.ClusterConfiguration, printer output.Printer) error { printer.Printf("[preflight] Running pre-flight checks.\n") err := preflight.RunRootCheckOnly(ignorePreflightErrors) if err != nil { return err } return...
[ -0.2779950797557831, 0.4967220723628998, 0.5195639729499817, 0.9151497483253479, -0.45767706632614136, 0.5948883295059204, 0.6911024451255798, -0.5314463376998901, 0.1369735598564148, -0.61229008436203, 0.8150342702865601, 0.25977230072021484, -0.7738029956817627, 0.9842419028282166, 0.4...
func getClient(file string, dryRun bool) (clientset.Interface, error) { if dryRun { dryRunGetter, err := apiclient.NewClientBackedDryRunGetterFromKubeconfig(file) if err != nil { return nil, err } // In order for fakeclient.Discovery().ServerVersion() to return the backing API Server's // real version; w...
[ -0.09366270154714584, -0.116355299949646, 0.7096284627914429, -0.3573603928089142, -0.12423676252365112, -0.354693740606308, 0.5688073635101318, -0.7759778499603271, -0.8411585092544556, 0.01890712045133114, 0.10885851085186005, 1.2970480918884277, -1.0546026229858398, 0.3265076279640198, ...
func getWaiter(dryRun bool, client clientset.Interface, timeout time.Duration) apiclient.Waiter { if dryRun { return dryrunutil.NewWaiter() } return apiclient.NewKubeWaiter(client, timeout, os.Stdout) }
[ -0.020411716774106026, 0.3909071087837219, 0.4296295642852783, 0.7205360531806946, -0.11589698493480682, 0.4212771952152252, -0.0334908701479435, -0.04251474142074585, -0.8980931043624878, -0.8003702759742737, 0.7522404789924622, 0.9903370141983032, -0.9447808861732483, 0.8261449337005615,...
func Render(writer io.Writer, cfg *config.Config, commandOutputs ...Output) (err error) { var output []byte switch { case cfg.OutputHuman(): var buffer = new(bytes.Buffer) for _, commandOutput := range commandOutputs { outBytes, err := commandOutput.MarshalHuman() if err != nil { return err } buf...
[ 0.31133249402046204, -0.5571655035018921, 0.9095867872238159, 0.28194141387939453, -0.632532000541687, -1.1298905611038208, -0.06942471116781235, -0.37537118792533875, -0.4338361322879791, 0.04809768870472908, 0.7637865543365479, -0.34561339020729065, 0.19728580117225647, 0.745580554008483...
func (k *Kontrol) runEtcd(ready chan bool) { // Load config values from kontrol. var config = config.New() config.Name = k.Name // name of the etcd instance config.DataDir = k.DataDir // directory to store etcd log config.Peers = k.Peers // comma seperated values of other peers // Load other defaults. ...
[ 0.27726221084594727, 0.18122577667236328, 0.8276383280754089, -1.0785233974456787, -0.32219335436820984, 0.15244752168655396, 0.6473806500434875, -0.18875862658023834, -0.5278573036193848, 0.19878019392490387, 0.1735508143901825, 0.25227513909339905, 0.013237516395747662, 0.424976259469985...
func main() { flag.UintVar(&outport, "outport", 0, "port for sender") flag.UintVar(&inport, "inport", 0, "port for receiver") // Init YANFF system at 16 available cores. flow.SystemInit(16) // Get splitting rules from access control file. L3Rules = rules.GetL3RulesFromORIG("test-handle2-l3rules.conf") // Rece...
[ 1.129736304283142, -0.10907642543315887, 0.8213664889335632, -0.1138109341263771, 0.5023545026779175, 0.43041926622390747, 1.1146262884140015, 0.8732388019561768, 0.026002468541264534, -0.6891798377037048, -0.33413732051849365, 0.5438305735588074, 0.19980056583881378, -0.35280296206474304,...
func New(host, port, apiToken string, debug, removeAggs, directIRONdb bool, aggs []string, flush int) (*Client, error) { // set up either direct IRONdb or (default) Circonus API URL var u *url.URL if directIRONdb { if host == "" || port == "" { return nil, errors.New("must provide both IRONdb host and port") ...
[ 0.6888101100921631, -0.4813246428966522, 0.72676020860672, -0.7807096838951111, -0.04803461208939552, -0.5002970695495605, -0.10854043066501617, 0.2811148464679718, -0.5535654425621033, 0.11758139729499817, 0.3248642683029175, 1.112640142440796, -0.22755539417266846, -0.348244309425354, ...
func (c *Client) Translate(graphiteQuery string) (string, error) { // set up the body for the HTTP request query := strings.Replace(graphiteQuery, " ", "", -1) t := TranslateRequestBody{ Query: query, } reqBody, err := json.Marshal(t) if err != nil { return "", err } // debug if c.Debug { debug.PrintJSO...
[ -0.10943355411291122, 0.44755053520202637, 0.617056667804718, 0.08482351899147034, -0.5705705285072327, -0.6390727162361145, 0.35719406604766846, -0.8075607419013977, 0.2706482708454132, -0.07976409792900085, 0.5441646575927734, 0.0626707598567009, 0.5555391311645508, -0.9079293608665466, ...
func (c *Client) ExecuteTranslation(b []byte) (*TranslateResponseBody, error) { // build the request reqBody := bytes.NewBuffer(b) req, err := http.NewRequest("POST", c.URL.String(), reqBody) if err != nil { return nil, fmt.Errorf("error creating HTTP request: %v", err) } // set API Token and other required h...
[ -0.45968499779701233, 0.3413305878639221, 0.9306904673576355, 0.2834016978740692, 0.5012280344963074, -0.9651543498039246, -0.33241531252861023, -0.3508341610431671, 0.06961110234260559, 0.7298418879508972, -0.7301035523414612, -0.4711795151233673, -0.04522750899195671, -0.8334239721298218...
func (c *Client) HandleStatsdAggregations(s string) string { r := regexp.MustCompile(`graphite:find\('([^']+)'\)`) metricName := r.FindStringSubmatch(s) splits := strings.Split(metricName[1], ".") aggNode := splits[len(splits)-1] if contains(c.StatsdAggregations, aggNode) { appendCAQL := getAppendCAQL(aggNode) ...
[ 0.6702083945274353, 1.1716536283493042, 0.6953871846199036, -0.5585545301437378, 0.19751600921154022, -0.33891335129737854, 0.8929139375686646, -0.9584765434265137, -0.11281818896532059, -0.302996963262558, 1.4717479944229126, -0.14426754415035248, 0.5533879399299622, 0.29120931029319763, ...
func NewClient(key string, logger *log.Logger) (*Client, error) { return newClient(statInkDomainURL, key, logger) }
[ -0.2793326675891876, 0.08887895196676254, 0.09029067307710648, 0.4718419015407562, -0.6562688946723938, -0.6615642309188843, 1.3023805618286133, -0.36547961831092834, -0.07921106368303299, -0.6762036681175232, 0.30629947781562805, 0.9755796194076538, 0.10603651404380798, 0.261485755443573,...
func (c *Client) PostBattle(ctx context.Context, battle Battle) error { json, err := json.Marshal(battle) c.Logger.Printf("request body : %v", string(json)) if err != nil { return errors.Wrap(err, "cannot marshal battle struct") } req, err := c.newRequest(ctx, "POST", battleAPI, strings.NewReader(string(json))) ...
[ -1.0690248012542725, 0.37205591797828674, 0.8740015029907227, 0.18164801597595215, 0.4688741862773895, 0.09505458176136017, -1.115998387336731, -0.35092973709106445, -0.2055230587720871, -0.32208511233329773, -1.02411949634552, 0.5890819430351257, -1.1654870510101318, 0.4969120919704437, ...
func cString(str *string) C.String { // The C.String is a *string. return C.String(str) }
[ 0.7908417582511902, -1.054381251335144, 0.2757391929626465, -0.033716581761837006, -1.1509000062942505, 0.4152478277683258, 0.41694384813308716, -0.2598643898963928, 0.7372465133666992, -0.12874819338321686, 0.4334077835083008, -0.0001662663125898689, 0.6043158769607544, -0.650990605354309...
func AddTask(c echo.Context) error { var body Task err := c.Bind(&body) if err != nil { return c.JSON(http.StatusBadRequest, ResponseError{Status: http.StatusBadRequest, Message: err.Error()}) } if body.ID == nil { return c.JSON(http.StatusBadRequest, ResponseError{Status: http.StatusBadRequest, Message: "id...
[ -0.9721612930297852, -0.3326985836029053, 0.8603888750076294, 1.2517305612564087, 0.38477784395217896, 0.7119048237800598, -0.5936915874481201, 0.0517411008477211, -0.4545961916446686, -0.05085452273488045, -0.6563294529914856, 0.26204025745391846, -0.052532900124788284, 0.9974799752235413...
func AddUser(c echo.Context) error { var body User err := c.Bind(&body) if err != nil { return c.JSON(http.StatusBadRequest, ResponseError{Status: http.StatusBadRequest, Message: err.Error()}) } if body.ID == nil { return c.JSON(http.StatusBadRequest, ResponseError{Status: http.StatusBadRequest, Message: "i...
[ -1.4151930809020996, -0.675797164440155, 1.1837334632873535, 1.1790509223937988, -0.15848086774349213, 0.4811338186264038, -0.7533546090126038, -0.09353037923574448, 0.15209484100341797, -0.5313804745674133, -0.8506665825843811, -0.003965217620134354, -0.7181981205940247, 0.992787837982177...
func InitTableFilters(filters []*component.TableFilter) { for _, f := range filters { sort.Strings(f.Values) } }
[ -0.30150115489959717, -0.5731759667396545, 0.5130241513252258, 0.44477933645248413, 0.11012773215770721, -0.15977387130260468, -0.04773465171456337, -0.8511184453964233, -1.2278448343276978, -0.18899770081043243, 0.07107066363096237, 0.10940982401371002, 0.03993532806634903, 0.865632653236...
func AddFilterValue(filter *component.TableFilter, value string) { for _, v := range filter.Values { if v == value { return } } filter.Values = append(filter.Values, value) }
[ 0.2693495750427246, -0.2509152889251709, 0.4836990237236023, 0.2992292642593384, -0.8302288055419922, -0.07207132130861282, -0.8146823048591614, -0.4724590480327606, -0.5465168952941895, 0.11159761250019073, 0.36010226607322693, 0.8655642867088318, 0.41966742277145386, 0.8050415515899658, ...
func (c *Client) CreateDataSourceFromRedshift(ctx context.Context, params *CreateDataSourceFromRedshiftInput, optFns ...func(*Options)) (*CreateDataSourceFromRedshiftOutput, error) { if params == nil { params = &CreateDataSourceFromRedshiftInput{} } result, metadata, err := c.invokeOperation(ctx, "CreateDataSourc...
[ -0.7264567613601685, 0.8560822010040283, 0.6396767497062683, 0.27079641819000244, -0.23686252534389496, -0.10228382050991058, 0.04793686792254448, -1.0105255842208862, 0.9912514686584473, -0.43538424372673035, -1.2804200649261475, 0.7087975740432739, 0.32563796639442444, 0.4906407594680786...
func (entity *MilitarySelective) Unmarshal(raw []byte) error { err := json.Unmarshal(raw, entity) if err != nil { return err } wasBornAfter, err := entity.PayloadWasBornAfter.Entity() if err != nil { return err } entity.WasBornAfter = wasBornAfter.(*Branch) hasRegistered, err := entity.PayloadHasRegistere...
[ -0.17230026423931122, -0.15838412940502167, 0.6876253485679626, -1.000653862953186, -0.19894811511039734, -0.44659507274627686, -0.15626634657382965, 0.30216434597969055, -0.18428806960582733, -0.1123586967587471, -0.12739278376102448, 0.6545459628105164, 0.37417033314704895, 0.37008029222...
func (entity *MilitarySelective) Valid() (bool, error) { var stack model.ErrorStack if ok, err := entity.WasBornAfter.Valid(); !ok { stack.Append("MilitarySelective", err) } if entity.WasBornAfter.Value == "Yes" { if ok, err := entity.HasRegistered.Valid(); !ok { stack.Append("MilitarySelective", err) } ...
[ -0.35676026344299316, 0.19209983944892883, 0.7299733757972717, 0.09150105714797974, 0.04049919545650482, 0.6422367691993713, 0.15865939855575562, 0.4898845851421356, -0.93727707862854, -0.009977475740015507, 0.400418758392334, 0.4251481592655182, 0.16457925736904144, 0.6478071212768555, ...
func (entity *MilitarySelective) Save(context *pg.DB, account int64) (int, error) { entity.AccountID = account var err error wasBornAfterID, err := entity.WasBornAfter.Save(context, account) if err != nil { return wasBornAfterID, err } entity.WasBornAfterID = wasBornAfterID hasRegisteredID, err := entity.Has...
[ -0.13157369196414948, 0.09317952394485474, 0.7989001870155334, -0.08059565722942352, 0.41814884543418884, -0.4188952147960663, 1.1310464143753052, 0.13940662145614624, 0.2210685759782791, 0.2524191439151764, -0.41365641355514526, 0.17450368404388428, -0.5282653570175171, 0.7870261669158936...
func (entity *MilitarySelective) Delete(context *pg.DB, account int64) (int, error) { entity.AccountID = account options := &orm.CreateTableOptions{ Temp: false, IfNotExists: true, } var err error if err = context.CreateTable(&MilitarySelective{}, options); err != nil { return entity.ID, err } if...
[ 0.5923565030097961, 0.4625715911388397, 0.8395412564277649, 0.539851725101471, 0.2713748812675476, -0.4418439567089081, 1.1702076196670532, 0.2136555314064026, 0.4791860580444336, 0.3682743012905121, 0.6484976410865784, 0.266440212726593, -0.6483789086341858, 0.7266119718551636, 0.360090...
func (entity *MilitarySelective) Get(context *pg.DB, account int64) (int, error) { entity.AccountID = account options := &orm.CreateTableOptions{ Temp: false, IfNotExists: true, } var err error if err = context.CreateTable(&MilitarySelective{}, options); err != nil { return entity.ID, err } if en...
[ -0.2740488350391388, -0.07197988033294678, 0.9093818068504333, -0.04747391492128372, 0.3264140784740448, -0.3866165578365326, 0.7232754826545715, -0.07078678905963898, 0.03544324263930321, 0.11869220435619354, 0.6492305994033813, 0.8237316608428955, -0.39128950238227844, 0.6053259372711182...
func (entity *MilitaryHistory) Unmarshal(raw []byte) error { err := json.Unmarshal(raw, entity) if err != nil { return err } hasServed, err := entity.PayloadHasServed.Entity() if err != nil { return err } entity.HasServed = hasServed.(*Branch) list, err := entity.PayloadList.Entity() if err != nil { re...
[ 0.34693729877471924, -0.12923718988895416, 0.7086758613586426, -1.0073931217193604, -0.5568118095397949, 0.2921762764453888, -0.6039299368858337, 0.6850361227989197, 0.1901148408651352, -0.6736544370651245, -0.14852666854858398, 0.32883384823799133, 0.37809351086616516, 0.47760316729545593...
func (entity *MilitaryHistory) Valid() (bool, error) { var stack model.ErrorStack if ok, err := entity.HasServed.Valid(); !ok { stack.Append("MilitaryHistory", err) } if entity.HasServed.Value == "Yes" { if ok, err := entity.List.Valid(); !ok { stack.Append("MilitaryHistory", err) } } return !stack.Ha...
[ -0.15034206211566925, 0.22156588733196259, 0.8002137541770935, 0.2647397220134735, -0.023889824748039246, 0.9955717325210571, -0.22727768123149872, 0.7283188700675964, -0.39527469873428345, -0.5193328261375427, 0.31660184264183044, 0.31877607107162476, 0.17449210584163666, 1.07933878898620...
func (entity *MilitaryHistory) Save(context *pg.DB, account int64) (int, error) { entity.AccountID = account var err error hasServedID, err := entity.HasServed.Save(context, account) if err != nil { return hasServedID, err } entity.HasServedID = hasServedID listID, err := entity.List.Save(context, account) ...
[ -0.00410707201808691, 0.2844257950782776, 0.9133778810501099, 0.2752993404865265, 0.19631537795066833, 0.29152512550354004, 0.769773542881012, 0.15311028063297272, 0.31583499908447266, 0.10027463734149933, -0.6455512642860413, 0.14217185974121094, -0.6195451021194458, 1.295145034790039, ...
func (entity *MilitaryHistory) Delete(context *pg.DB, account int64) (int, error) { entity.AccountID = account options := &orm.CreateTableOptions{ Temp: false, IfNotExists: true, } var err error if err = context.CreateTable(&MilitaryHistory{}, options); err != nil { return entity.ID, err } if _, ...
[ 0.7979344129562378, 0.5762608051300049, 0.9597436785697937, 0.7320073843002319, -0.005798859056085348, 0.08699677884578705, 0.7381393909454346, 0.3844916522502899, 0.771521270275116, 0.22071246802806854, 0.5045894980430603, 0.2490447461605072, -0.8553099632263184, 1.127840518951416, 0.18...
func (entity *MilitaryHistory) Get(context *pg.DB, account int64) (int, error) { entity.AccountID = account options := &orm.CreateTableOptions{ Temp: false, IfNotExists: true, } var err error if err = context.CreateTable(&MilitaryHistory{}, options); err != nil { return entity.ID, err } if entity...
[ 0.0443829782307148, 0.18341346085071564, 0.9146730303764343, 0.1806633025407791, 0.20622242987155914, 0.16073578596115112, 0.3404110074043274, 0.06148554012179375, 0.22903768718242645, -0.07631666958332062, 0.6960689425468445, 1.0398435592651367, -0.43458104133605957, 0.9688680768013, 0....
func (entity *MilitaryDisciplinary) Unmarshal(raw []byte) error { err := json.Unmarshal(raw, entity) if err != nil { return err } hasDisciplinary, err := entity.PayloadHasDisciplinary.Entity() if err != nil { return err } entity.HasDisciplinary = hasDisciplinary.(*Branch) list, err := entity.PayloadList.E...
[ 0.6666472554206848, 0.08475734293460846, 0.6673824191093445, -1.3764070272445679, -0.2293228656053543, 0.09074734151363373, -0.5382214188575745, 0.4714314937591553, -0.17860697209835052, -0.39245039224624634, 0.3404925763607025, 0.21963487565517426, 0.8943892121315002, 0.3687394857406616, ...
func (entity *MilitaryDisciplinary) Valid() (bool, error) { var stack model.ErrorStack if ok, err := entity.HasDisciplinary.Valid(); !ok { stack.Append("MilitaryDisciplinary", err) } if entity.HasDisciplinary.Value == "Yes" { if ok, err := entity.List.Valid(); !ok { stack.Append("MilitaryDisciplinary", err...
[ 0.09338488429784775, 0.3254106938838959, 0.7726997137069702, -0.24268829822540283, 0.01739170216023922, 0.9003220200538635, -0.25975123047828674, 0.6001270413398743, -0.7177030444145203, -0.2528247833251953, 0.6190513968467712, 0.16603194177150726, 0.6316806077957153, 0.9589540958404541, ...
func (entity *MilitaryDisciplinary) Save(context *pg.DB, account int64) (int, error) { entity.AccountID = account var err error hasDisciplinaryID, err := entity.HasDisciplinary.Save(context, account) if err != nil { return hasDisciplinaryID, err } entity.HasDisciplinaryID = hasDisciplinaryID listID, err := e...
[ 0.2842263877391815, 0.30421850085258484, 0.9658894538879395, -0.35549765825271606, 0.2152998000383377, 0.1054411381483078, 0.667826771736145, 0.2750810384750366, 0.08811695873737335, 0.03940552845597267, -0.40735259652137756, -0.06397201865911484, -0.08333875238895416, 1.1249072551727295, ...
func (entity *MilitaryDisciplinary) Delete(context *pg.DB, account int64) (int, error) { entity.AccountID = account options := &orm.CreateTableOptions{ Temp: false, IfNotExists: true, } var err error if err = context.CreateTable(&MilitaryDisciplinary{}, options); err != nil { return entity.ID, err ...
[ 1.1106942892074585, 0.5987262725830078, 1.0087978839874268, 0.24544550478458405, 0.13709230720996857, -0.05347975715994835, 0.7693606019020081, 0.5645999908447266, 0.5384856462478638, 0.16870702803134918, 0.8287288546562195, 0.16531182825565338, -0.1995491087436676, 0.9442328810691833, 0...
func (entity *MilitaryDisciplinary) Get(context *pg.DB, account int64) (int, error) { entity.AccountID = account options := &orm.CreateTableOptions{ Temp: false, IfNotExists: true, } var err error if err = context.CreateTable(&MilitaryDisciplinary{}, options); err != nil { return entity.ID, err } ...
[ 0.2303428053855896, 0.24279503524303436, 0.9368695020675659, -0.23111172020435333, 0.3320496082305908, 0.006001108326017857, 0.3049325942993164, 0.15314450860023499, 0.058394674211740494, -0.16079607605934143, 0.9416046738624573, 0.8926530480384827, 0.005241073202341795, 0.8585244417190552...
func (entity *MilitaryForeign) Unmarshal(raw []byte) error { err := json.Unmarshal(raw, entity) if err != nil { return err } list, err := entity.PayloadList.Entity() if err != nil { return err } entity.List = list.(*Collection) return err }
[ 0.05637902393937111, -0.017493529245257378, 0.622888445854187, -1.477158784866333, 0.00031385821057483554, -0.15004421770572662, -0.6987772583961487, 0.5152295827865601, 0.2147034853696823, -0.3729723393917084, -0.02736150287091732, -0.10411317646503448, 0.20688162744045258, 0.772314667701...