text
stringlengths
11
6.3k
embedding
listlengths
768
768
func IndexMissesTableOnHashes(db *sql.DB) (err error) { _, err = db.Exec(internal.IndexMissesTableOnHashes) return }
[ 0.12955644726753235, -0.2983345091342926, 0.24525083601474762, 0.42879748344421387, 0.2594616115093231, 0.7812409400939941, 0.6667491793632507, -0.5641199350357056, -0.3182816505432129, 0.044192567467689514, 0.04691992327570915, -0.339111328125, 0.19473318755626678, 0.6292632818222046, 0...
func stringConstruction(s string) int32 { m := make(map[rune]struct{}) for _, l := range s { m[l] = struct{}{} } return int32(len(m)) }
[ -0.2857958972454071, -0.16561514139175415, 0.29725801944732666, -1.4107853174209595, -0.7655470371246338, -0.22238697111606598, 0.7936588525772095, -0.08776528388261795, -0.5342481732368469, -0.5506307482719421, -0.8107985854148865, -0.497370183467865, 0.3776695430278778, -0.28645434975624...
func NewClient(apiKey string) *StripeClient { return NewWithHTTPClient(apiKey, defaultHttpClient) }
[ 0.5299434065818787, 0.0038658056873828173, 0.1879510134458542, -0.22503001987934113, -0.5401270985603333, -0.30607396364212036, -0.2218342125415802, 0.6915367841720581, 0.7462892532348633, 0.017198169603943825, -0.36240866780281067, 0.37152546644210815, -0.06999306380748749, 0.302505195140...
func NewWithHTTPClient(apiKey string, httpClient *http.Client) *StripeClient { // set the Stripe global key for requests stripe.Key = apiKey return &StripeClient{ apiKey: apiKey, httpClient: httpClient, } }
[ -0.019435463473200798, -1.1645901203155518, 0.44487056136131287, -0.6056026816368103, -0.9488129019737244, -0.23518548905849457, -0.5709690451622009, 0.3399355411529541, -0.0017641916638240218, 0.34616467356681824, -0.45729368925094604, 1.013465166091919, 0.11304960399866104, -0.0677096545...
func (client *StripeClient) Authorize(request *sleet.AuthorizationRequest) (*sleet.AuthorizationResponse, error) { return client.AuthorizeWithContext(context.TODO(), request) }
[ -1.0548352003097534, 0.575388491153717, 0.5105627179145813, 0.4288165271282196, 0.46281224489212036, -0.8114311695098877, 0.33775603771209717, -0.4123425781726837, 0.7560259103775024, 0.09683796018362045, 0.4970985949039459, 0.9319679737091064, -0.08564797043800354, 0.9050282835960388, -...
func (client *StripeClient) AuthorizeWithContext(ctx context.Context, request *sleet.AuthorizationRequest) (*sleet.AuthorizationResponse, error) { chargeClient := charge.Client{B: stripe.GetBackend(stripe.APIBackend), Key: client.apiKey} charge, err := chargeClient.New(buildChargeParams(ctx, request)) if err != nil ...
[ -0.2970667779445648, -0.15748125314712524, 0.8755921125411987, 0.14709727466106415, -0.305320680141449, -0.8129516243934631, -0.22542142868041992, -0.564282238483429, 0.8104279637336731, 0.6509894728660583, 0.11603838950395584, 0.018534664064645767, -0.053517166525125504, 0.428387194871902...
func (client *StripeClient) Capture(request *sleet.CaptureRequest) (*sleet.CaptureResponse, error) { return client.CaptureWithContext(context.TODO(), request) }
[ -0.6801824569702148, 0.07197404652833939, 0.5497103333473206, 0.4406222701072693, 0.01788569800555706, -0.10675963759422302, -0.22931908071041107, -1.0439021587371826, 1.2110061645507812, -0.06262774020433426, 0.25784212350845337, 0.803284764289856, 0.836618185043335, 1.0768089294433594, ...
func (client *StripeClient) CaptureWithContext(ctx context.Context, request *sleet.CaptureRequest) (*sleet.CaptureResponse, error) { chargeClient := charge.Client{B: stripe.GetBackend(stripe.APIBackend), Key: client.apiKey} capture, err := chargeClient.Capture(request.TransactionReference, buildCaptureParams(ctx, req...
[ -0.42469269037246704, -0.3316492438316345, 0.8560900688171387, -0.14436237514019012, -0.5419899821281433, -0.18566179275512695, -0.9601185321807861, -1.504365086555481, 1.0158543586730957, 1.0602408647537231, -0.050342220813035965, 0.05369918793439865, -0.11831582337617874, 0.6917846798896...
func (client *StripeClient) Refund(request *sleet.RefundRequest) (*sleet.RefundResponse, error) { return client.RefundWithContext(context.TODO(), request) }
[ -0.3823119103908539, -0.41024190187454224, 0.3071802854537964, 0.1320875883102417, 0.5562630295753479, 0.07886798679828644, 0.2839362621307373, -0.34697115421295166, 1.0781410932540894, -0.808007538318634, 0.16691522300243378, 1.3185412883758545, -0.22383147478103638, 0.5978302955627441, ...
func (client *StripeClient) RefundWithContext(ctx context.Context, request *sleet.RefundRequest) (*sleet.RefundResponse, error) { refundClient := refund.Client{B: stripe.GetBackend(stripe.APIBackend), Key: client.apiKey} refund, err := refundClient.New(buildRefundParams(ctx, request)) if err != nil { return &sleet...
[ 0.12994271516799927, -0.7649247050285339, 0.7954118847846985, -0.5464116334915161, -0.21698376536369324, -0.208951935172081, -0.17656266689300537, -1.1287962198257446, 0.8539456725120544, 0.6775780916213989, 0.06525162607431412, 0.5396273136138916, -0.5986224412918091, 0.29899588227272034,...
func (client *StripeClient) Void(request *sleet.VoidRequest) (*sleet.VoidResponse, error) { return client.VoidWithContext(context.TODO(), request) }
[ -0.46667739748954773, 0.5381543040275574, 0.27320799231529236, -0.9526620507240295, 0.09961169958114624, -0.4060000777244568, 0.24741388857364655, -0.18115335702896118, 1.0848798751831055, -0.5325273275375366, -0.1704750806093216, 1.7959907054901123, 0.7457661628723145, 0.4279683530330658,...
func (client *StripeClient) VoidWithContext(ctx context.Context, request *sleet.VoidRequest) (*sleet.VoidResponse, error) { voidClient := refund.Client{B: stripe.GetBackend(stripe.APIBackend), Key: client.apiKey} void, err := voidClient.New(buildVoidParams(ctx, request)) if err != nil { return &sleet.VoidResponse{...
[ 0.29761457443237305, -0.40432608127593994, 0.7480697631835938, -0.6233366131782532, -0.27566611766815186, -0.573547899723053, -0.07181228697299957, -0.8188672065734863, 1.5372002124786377, 0.8021500706672668, 0.14755235612392426, 0.8111261129379272, -0.1596718281507492, 0.4577605724334717,...
func (S *Scanner) next() { if S.offset < len(S.src) { S.pos.Offset = S.offset; S.pos.Column++; r, w := int(S.src[S.offset]), 1; switch { case r == '\n': S.pos.Line++; S.pos.Column = 0; case r >= 0x80: // not ASCII r, w = utf8.DecodeRune(S.src[S.offset:len(S.src)]) } S.offset += w; S.ch = ...
[ -0.32674646377563477, -0.12271357327699661, 0.4783761203289032, -0.5452017188072205, -1.532108187675476, -0.3294719457626343, -0.5152088403701782, 0.3753700852394104, 0.13965769112110138, -0.5763525366783142, 0.2398279756307602, 0.47143861651420593, 0.35742825269699097, 0.3049665689468384,...
func (S *Scanner) switch2(tok0, tok1 token.Token) token.Token { if S.ch == '=' { S.next(); return tok1; } return tok0; }
[ -0.5568129420280457, -0.834082841873169, 0.5229336619377136, 0.19976741075515747, -1.30742347240448, -0.05473988130688667, -0.9235377311706543, -0.44796136021614075, -0.7601571679115295, -0.15041540563106537, 0.0816107913851738, 0.632169783115387, 0.26853302121162415, 0.5074043869972229, ...
func Tokenize(filename string, src []byte, err ErrorHandler, mode uint, f func(pos token.Position, tok token.Token, lit []byte) bool) int { var s Scanner; s.Init(filename, src, err, mode); for f(s.Scan()) { // action happens in f } return s.ErrorCount; }
[ -0.5699557662010193, 0.37063896656036377, 0.5191013216972351, 0.0765838623046875, -0.17186953127384186, -1.0268845558166504, 0.18007352948188782, 1.0513722896575928, -1.0341689586639404, -0.2125522643327713, -0.8628591895103455, -0.042294204235076904, 0.3781871199607849, 0.1876744478940963...
func Minify(m minify.Minifier, w io.Writer, r io.Reader) error { if fr, ok := r.(interface { Bytes() []byte }); ok { b := bytes.TrimSpace(fr.Bytes()) if _, errWrite := w.Write(b); errWrite != nil { return errWrite } return nil } head := true sb := parse.NewShiftBuffer(r) for { // cause a read if...
[ 0.6196087002754211, -0.40090030431747437, 0.8067891597747803, -0.15577054023742676, -0.0732899010181427, -0.8348603844642639, 0.037299107760190964, -0.15172140300273895, 0.24436433613300323, 0.13647037744522095, -0.21374107897281647, -0.023058967664837837, -0.5507362484931946, 0.8167188167...
func NewSelfSignedCert(notBefore time.Time, notAfter time.Time) *tls.Certificate { key, err := certutil.NewPrivateKey() Expect(err).ToNot(HaveOccurred()) tmpl := x509.Certificate{ SerialNumber: new(big.Int).SetInt64(0), Subject: pkix.Name{ CommonName: "who", Organization: []string{"cares"}, }, NotBef...
[ 0.6679892539978027, -0.3393622040748596, 0.7061366438865662, 0.19464005529880524, -0.6988757848739624, 0.08271237462759018, -0.06866370886564255, -0.6132364273071289, -0.11229687929153442, -0.49229544401168823, -0.7686322331428528, -0.1143764927983284, -0.40774133801460266, 0.4993481338024...
func ParseAndSetEnv(fName string) { if _, tokenExists := os.LookupEnv("GITHUB_TOKEN"); tokenExists { return } if fName == "" { fName = ".env" } f := readFile(fName) s := strings.Split(f, "\n") s = removeComments(s) for _, v := range s { e := strings.Split(v, "=") os.Setenv(e[0], e[1]) } }
[ 0.1088898554444313, -0.374176561832428, 0.752034604549408, 0.08691789954900742, 0.7519471645355225, 0.30359765887260437, 0.2258060872554779, 0.8419678211212158, -0.8669977784156799, 1.1367607116699219, 0.019851846620440483, 0.40231695771217346, 0.3405418395996094, 0.5990180969238281, -0....
func NewManager() *Manager { return &Manager{ controllers: controllerMap{}, } }
[ -0.3589544892311096, -0.9166871905326843, 0.11174190044403076, 0.07798575609922409, -1.1889135837554932, -0.42031627893447876, -0.5508070588111877, 0.08305244147777557, 0.7974551916122437, -1.2147537469863892, -0.40752801299095154, -0.4421210289001465, -0.6031131148338318, 1.41448450088500...
func GetGlobalStatus() models.ControllerStatuses { return globalStatus.GetStatusModel() }
[ 1.0259028673171997, 0.3746063709259033, 0.4908396601676941, 0.1834741085767746, 0.19556792080402374, 1.2418386936187744, -0.27725738286972046, 0.642516016960144, 0.11028284579515457, -0.17552250623703003, -1.42033052444458, 0.3590725064277649, -0.5215221643447876, 0.4845712184906006, 0.1...
func (m *Manager) UpdateController(name string, params ControllerParams) { m.updateController(name, params) }
[ -0.7580726742744446, -0.4606899917125702, 0.2686268985271454, 0.5045169591903687, -0.38801470398902893, 0.06161035969853401, -0.14339494705200195, 0.12974074482917786, -0.00859712902456522, 0.8472321629524231, -0.0677311047911644, 0.031570419669151306, 0.2557717263698578, 1.393534660339355...
func (m *Manager) RemoveController(name string) error { _, err := m.removeAndReturnController(name) return err }
[ -0.6038841605186462, 0.46680936217308044, 0.40842849016189575, 0.25278571248054504, -0.710774302482605, -0.5325902104377747, 0.32900142669677734, 0.33516553044319153, 0.6628465056419373, 0.08186186105012894, -0.5572450160980225, -0.9684209823608398, -0.74945467710495, 0.7649361491203308, ...
func (m *Manager) RemoveControllerAndWait(name string) error { oldCtrl, err := m.removeAndReturnController(name) if err == nil { <-oldCtrl.terminated } return err }
[ -0.00406822981312871, -0.18153178691864014, 0.5554396510124207, -0.13672275841236115, -0.7885624170303345, -0.39424675703048706, -0.18349795043468475, 0.6027047038078308, 0.7939949631690979, -0.3962971568107605, -0.6270065903663635, -1.0108267068862915, -0.5315872430801392, 0.6650944352149...
func (m *Manager) RemoveAll() { m.removeAll() }
[ 0.4085651934146881, -0.3823535740375519, 0.2505689859390259, 0.48080912232398987, -0.16913355886936188, 0.5155121684074402, -0.5226585865020752, 1.0167858600616455, -0.40758419036865234, -0.9342284202575684, 0.345242440700531, 0.6309778094291687, -0.42859867215156555, 1.3116458654403687, ...
func (m *Manager) RemoveAllAndWait() { ctrls := m.removeAll() for _, ctrl := range ctrls { <-ctrl.terminated } }
[ 0.5040533542633057, -0.6416244506835938, 0.2976946234703064, 0.6947241425514221, -1.148546576499939, -0.17648983001708984, -0.8634511232376099, 1.2839813232421875, 0.06840971112251282, -0.18927420675754547, -0.5201600193977356, -0.677790641784668, -0.4661094844341278, 1.3976497650146484, ...
func (m *Manager) GetStatusModel() models.ControllerStatuses { // Create a copy of pointers to current controller so we can unlock the // manager mutex quickly again controllers := controllerMap{} m.mutex.RLock() for key, c := range m.controllers { controllers[key] = c } m.mutex.RUnlock() statuses := models....
[ -0.240800678730011, -0.9794628620147705, 0.3917829096317291, 0.3962814211845398, 0.23336364328861237, -0.0650026947259903, -0.3457511365413666, 0.38854414224624634, 0.39224809408187866, -0.4896608293056488, -1.148038625717163, -0.33176788687705994, -0.1540921926498413, 1.0517981052398682, ...
func (m *Manager) TriggerController(name string) { ctrl := m.lookup(name) if ctrl == nil { return } select { case ctrl.trigger <- struct{}{}: default: } }
[ -0.13804325461387634, 0.46189114451408386, 0.06885452568531036, -0.04205099493265152, 0.24314118921756744, -0.9517935514450073, 0.8318203091621399, -0.18816882371902466, 0.3503752648830414, 0.0080997534096241, -0.7051404714584351, -0.8953458666801453, -0.15973453223705292, 0.69130045175552...
func FakeManager(failingControllers int) *Manager { m := &Manager{ controllers: controllerMap{}, } for i := 0; i < failingControllers; i++ { ctrl := &managedController{ controller: controller{ name: fmt.Sprintf("controller-%d", i), uuid: fmt.Sprintf("%d", i), stop: ...
[ -0.6617075204849243, -0.2087291032075882, 0.5004743337631226, -0.7181139588356018, -0.16550683975219727, -0.47753486037254333, -0.4601708650588989, -0.11424297094345093, 0.4815186858177185, -0.5683211088180542, -0.41482293605804443, -0.18672926723957062, -0.8891345858573914, 0.909454822540...
func (c *managedController) updateParamsLocked(params ControllerParams) { // ensure the callbacks are valid if params.DoFunc == nil { params.DoFunc = func(ctx context.Context) error { return undefinedDoFunc(c.name) } } if params.StopFunc == nil { params.StopFunc = NoopFunc } // Enforce max controller in...
[ 0.1033368706703186, -0.5274189710617065, 0.6735129356384277, -0.23710285127162933, -0.1276884824037552, 0.09459271281957626, 0.21834273636341095, -0.10682719200849533, 0.3393884003162384, 0.4122769832611084, 0.2586631178855896, 0.5444643497467041, -0.8371158242225647, 0.5218325853347778, ...
func (c *managedController) GetStatusModel() *models.ControllerStatus { c.mutex.RLock() defer c.mutex.RUnlock() status := &models.ControllerStatus{ Name: c.name, UUID: strfmt.UUID(c.uuid), Configuration: &models.ControllerStatusConfiguration{ ErrorRetry: !c.params.NoErrorRetry, ErrorRetryBase: strfm...
[ -0.240090474486351, -0.6967279314994812, 0.49143627285957336, -0.6016324758529663, -0.04175436496734619, 0.36536890268325806, -0.18122965097427368, 0.3722234070301056, -0.2090694159269333, -0.27604374289512634, -0.5584774017333984, 0.1792568564414978, -0.3600870668888092, 0.263807684183120...
func (b *Bar) Percent(i int) { if i != b.percent { b.percent = i b.draw() } }
[ -0.442219078540802, 0.3683348596096039, 0.3411332368850708, 0.6942950487136841, 0.15369820594787598, 1.8461605310440063, 1.4241828918457031, -0.43747857213020325, 0.19027824699878693, -0.29450303316116333, -0.6708468198776245, -0.5009766817092896, -1.2962530851364136, 0.41951337456703186, ...
func New(fore, back color.Color, width, height int) *Bar { c := xdom.Canvas() c.Width = width c.Height = height r, g, b, _ := fore.RGBA() foreground := "rgb(" + strconv.Itoa(int(r>>8)) + ", " + strconv.Itoa(int(g>>8)) + ", " + strconv.Itoa(int(b>>8)) + ")" r, g, b, _ = back.RGBA() background := "rgb(" + strconv....
[ -0.15622368454933167, 0.12794139981269836, 0.8016738295555115, -0.6123345494270325, -0.6294451951980591, 0.09151047468185425, 0.05501871928572655, -0.4681340456008911, -1.0427238941192627, -0.645687460899353, 0.3412162959575653, 0.5676929950714111, -0.16113418340682983, 0.44330674409866333...
func (b *Bar) Reader(r io.Reader, size int) *Reader { return &Reader{b, r, 0, size} }
[ 0.04824875667691231, -0.1478448361158371, 0.14293059706687927, -0.40611886978149414, -0.6554507613182068, 0.8796293139457703, 1.1942086219787598, -0.9215399026870728, 0.009745020419359207, -1.1522629261016846, -0.05630886182188988, 0.04710327088832855, -0.5137699842453003, -0.2358290106058...
func (r *Reader) Len() int { return int(r.size) }
[ 0.38206252455711365, -0.4513947665691376, 0.11034077405929565, -1.313547134399414, 0.2975662350654602, -0.7133179306983948, 0.5963351130485535, 0.8315065503120422, -0.4115278422832489, -1.2705663442611694, -0.6693490147590637, 0.13866016268730164, -0.08789768069982529, -0.2834802269935608,...
func maxArea(height []int) int { return 0 }
[ -0.09657775610685349, -1.0048365592956543, 0.6838629841804504, 1.7376415729522705, -0.4689846634864807, -0.37586212158203125, 0.43631041049957275, 0.22863134741783142, 0.6002967357635498, 0.21869798004627228, 0.3357408046722412, -0.44539719820022583, -0.2688230574131012, 1.8188605308532715...
func main() { }
[ 0.5935109257698059, -0.5238813161849976, 0.06262364238500595, 1.9832351207733154, 0.3146790564060211, 0.4833202362060547, 1.6697919368743896, 0.6601263284683228, -0.13723190128803253, -0.6224525570869446, -0.7590957880020142, 0.3508590757846832, -0.36477935314178467, 0.25635138154029846, ...
func (Limit) EnumDescriptor() ([]byte, []int) { return file_chain_proto_rawDescGZIP(), []int{0} }
[ -0.5299111604690552, 0.2770858108997345, 0.6739490032196045, -0.3455309271812439, 0.7043368816375732, -0.2219499796628952, 0.22259293496608734, 0.06813953071832657, 0.5275609493255615, 0.17595602571964264, -0.25433892011642456, 0.8604256510734558, -0.49610936641693115, 0.8544539213180542, ...
func (Operation_Type) EnumDescriptor() ([]byte, []int) { return file_chain_proto_rawDescGZIP(), []int{15, 0} }
[ -0.32441988587379456, 0.6145774722099304, 0.7239630222320557, 0.2715507447719574, 0.6551076769828796, -0.6308696269989014, 1.1080607175827026, -0.31519460678100586, 0.19386129081249237, 0.4071633517742157, 0.6631042957305908, -0.19481515884399414, -0.5937301516532898, 1.1689074039459229, ...
func (Transaction_Limit) EnumDescriptor() ([]byte, []int) { return file_chain_proto_rawDescGZIP(), []int{17, 0} }
[ 0.10578944534063339, 0.8037493228912354, 0.7191627025604248, -0.6667007207870483, 0.9426020383834839, -0.9868594408035278, -0.12221776694059372, 0.2514737844467163, 0.11177925020456314, 0.5528088808059692, -0.32104218006134033, 0.20764638483524323, -0.0821276605129242, 0.49086982011795044,...
func (Signer_Limit) EnumDescriptor() ([]byte, []int) { return file_chain_proto_rawDescGZIP(), []int{18, 0} }
[ -0.8088388442993164, -0.5980555415153503, 0.6688163876533508, -0.1096157506108284, 0.2426123321056366, -0.19746926426887512, 0.1708260476589203, 0.6761922836303711, -0.006852507591247559, -0.23819851875305176, -0.5002691745758057, 0.13749921321868896, -0.6485590934753418, 1.016032338142395...
func (Trigger_TransactionType) EnumDescriptor() ([]byte, []int) { return file_chain_proto_rawDescGZIP(), []int{19, 0} }
[ 0.5776659846305847, 0.5531036853790283, 0.5537008047103882, -0.45618733763694763, 0.5856606364250183, -1.3377403020858765, 0.8907008171081543, 0.08306990563869476, 0.11091573536396027, 0.8193898797035217, -0.8162554502487183, 0.25043177604675293, 0.19359038770198822, 0.5821027159690857, ...
func (Contract_ContractType) EnumDescriptor() ([]byte, []int) { return file_chain_proto_rawDescGZIP(), []int{25, 0} }
[ -0.2433539777994156, 0.05671345442533493, 0.6176047921180725, 0.02884262427687645, 0.8321976065635681, -0.24824205040931702, 0.2257958948612213, -0.11442388594150543, 0.03159550577402115, 0.00526333786547184, -0.3200484812259674, -0.5347657799720764, -0.01782895438373089, 1.489528179168701...
func (*Account) Descriptor() ([]byte, []int) { return file_chain_proto_rawDescGZIP(), []int{0} }
[ -0.6956192255020142, 0.18625497817993164, 0.31928735971450806, 0.45597130060195923, 0.21206076443195343, -0.2994454503059387, 0.9100586771965027, 0.4824512302875519, 0.38289061188697815, -0.3760659694671631, -0.2607032358646393, 1.0679744482040405, 0.30017438530921936, 1.0682940483093262, ...
func (*AssetKey) Descriptor() ([]byte, []int) { return file_chain_proto_rawDescGZIP(), []int{1} }
[ -1.153928279876709, 0.5546968579292297, 0.22842766344547272, -0.305898517370224, 0.4878043532371521, -0.620819628238678, 0.08183429390192032, -0.5190430879592896, -1.2088035345077515, 0.27522599697113037, -0.18478970229625702, 1.1634647846221924, 0.014174861833453178, 0.6107722520828247, ...
func (*Asset) Descriptor() ([]byte, []int) { return file_chain_proto_rawDescGZIP(), []int{2} }
[ -0.9010230898857117, -0.22822868824005127, 0.2515783905982971, -0.9618760943412781, -0.5236238837242126, -0.1442546248435974, 0.24618571996688843, -0.42627254128456116, -0.6881492137908936, -0.5708613991737366, 0.06746508926153183, 0.6217882633209229, 0.4380483031272888, 0.4213333129882812...
func (*AssetStore) Descriptor() ([]byte, []int) { return file_chain_proto_rawDescGZIP(), []int{3} }
[ -0.7025602459907532, 0.722488522529602, 0.25192293524742126, -0.5720757246017456, -0.4342276453971863, -0.6018632650375366, 0.16435787081718445, -0.4137271046638489, -0.39641672372817993, -0.657005786895752, -0.4233419597148895, 0.49888551235198975, 0.4763074219226837, -0.01687225140631199...
func (*LedgerHeader) Descriptor() ([]byte, []int) { return file_chain_proto_rawDescGZIP(), []int{4} }
[ -0.47887903451919556, 0.28656965494155884, 0.1435920000076294, 0.05650145187973976, 0.3490566611289978, 0.1437922865152359, 0.36578789353370667, -0.23332621157169342, -0.6455613374710083, -0.984627366065979, -0.5870583057403564, 0.8543898463249207, -0.5478282570838928, 0.39600813388824463,...
func (*Ledger) Descriptor() ([]byte, []int) { return file_chain_proto_rawDescGZIP(), []int{5} }
[ -0.26120319962501526, 0.7097102999687195, 0.2742151916027069, -0.17329931259155273, 0.2880725562572479, 0.17940454185009003, 0.38746267557144165, 0.22257745265960693, -0.5767484307289124, -1.0485916137695312, -0.5361123085021973, 0.5843074917793274, -0.03500977158546448, 1.5022083520889282...
func (*OperationPayAsset) Descriptor() ([]byte, []int) { return file_chain_proto_rawDescGZIP(), []int{6} }
[ -0.8088163733482361, 0.5064758658409119, 0.6805456876754761, -0.6444370150566101, -0.25446420907974243, -0.22805070877075195, 1.3283251523971558, -0.9893427491188049, 0.08753719180822372, -0.37882867455482483, 0.6955469846725464, -0.17945481836795807, 0.47917190194129944, 0.314322352409362...
func (*OperationTypeThreshold) Descriptor() ([]byte, []int) { return file_chain_proto_rawDescGZIP(), []int{7} }
[ -0.5795608758926392, 1.1618415117263794, 0.38499748706817627, 0.9515802264213562, 0.40483492612838745, -0.4542512893676758, 0.5871727466583252, -1.2719935178756714, -0.048421990126371384, -0.39055556058883667, -0.042243968695402145, 0.18754899501800537, -0.6081990003585815, -0.342295348644...
func (*AccountPrivilege) Descriptor() ([]byte, []int) { return file_chain_proto_rawDescGZIP(), []int{8} }
[ -0.8785132169723511, 0.026259973645210266, 0.6904165148735046, 0.6856746673583984, 0.6501744389533997, -0.6580988168716431, 0.5293471217155457, -0.048664640635252, 0.10285397619009018, -0.5622216463088989, 0.11240740865468979, 0.7690343856811523, -0.1916930079460144, 0.4549187123775482, ...
func (*AccountThreshold) Descriptor() ([]byte, []int) { return file_chain_proto_rawDescGZIP(), []int{9} }
[ 0.12227856367826462, 0.8949915766716003, 0.37188178300857544, 0.5773870348930359, 0.3896210789680481, -0.44937005639076233, 1.0442005395889282, -0.3858892023563385, -0.11223287135362625, -0.8323288559913635, -0.7887457013130188, 1.111236810684204, 0.21539674699306488, 0.06999386847019196, ...
func (*OperationIssueAsset) Descriptor() ([]byte, []int) { return file_chain_proto_rawDescGZIP(), []int{10} }
[ -0.8535739779472351, 0.28562018275260925, 0.38569188117980957, -0.5986878275871277, 0.03032670170068741, -0.2859383821487427, 1.0699145793914795, -0.21630030870437622, -0.15562978386878967, -0.27995648980140686, 0.6666279435157776, -0.6956397891044617, -0.3756377100944519, -0.3380394876003...
func (*OperationPayCoin) Descriptor() ([]byte, []int) { return file_chain_proto_rawDescGZIP(), []int{11} }
[ -0.3956573009490967, 0.5575388669967651, 0.6813235282897949, 0.058970965445041656, 0.8150261640548706, 0.04802502319216728, 0.7582970857620239, -1.005950689315796, -0.38939809799194336, -0.45762500166893005, -0.15605878829956055, 0.19750583171844482, -0.5550505518913269, 0.1852694004774093...
func (*OperationSetSignerWeight) Descriptor() ([]byte, []int) { return file_chain_proto_rawDescGZIP(), []int{12} }
[ -0.25402146577835083, 0.535963237285614, 0.3024176359176636, 0.3628772497177124, -0.3231956362724304, -0.8786167502403259, 1.420768141746521, -0.83877032995224, -0.41719865798950195, -0.9659227132797241, 0.10542517155408859, -1.494701862335205, -0.2937494218349457, 0.40399226546287537, 0...
func (*OperationLog) Descriptor() ([]byte, []int) { return file_chain_proto_rawDescGZIP(), []int{13} }
[ -0.7588574290275574, 1.156237006187439, 0.5590155124664307, 0.13569889962673187, -0.5975562334060669, -0.15516357123851776, 1.2104415893554688, 0.03819086030125618, -0.6688688397407532, 0.46636369824409485, -0.4558771848678589, -0.6649345755577087, -0.03242029249668121, -0.0553535968065261...
func (*OperationSetPrivilege) Descriptor() ([]byte, []int) { return file_chain_proto_rawDescGZIP(), []int{14} }
[ -0.8349156975746155, 1.0176854133605957, 0.43556416034698486, 0.23510843515396118, 0.5828615427017212, -1.6648409366607666, 1.0989060401916504, -1.0249083042144775, -0.25918933749198914, -0.35060766339302063, 0.7457113265991211, -0.06348549574613571, -0.2963935136795044, -0.336778879165649...
func (*Operation) Descriptor() ([]byte, []int) { return file_chain_proto_rawDescGZIP(), []int{15} }
[ -0.9193652868270874, 1.0321074724197388, 0.5588555335998535, 0.10916300863027573, 0.1130278930068016, -0.12512218952178955, 1.1585193872451782, 0.05722606182098389, -0.052560579031705856, 0.208465576171875, -0.43805548548698425, -0.9731636047363281, -0.1607421189546585, -0.0132453888654708...
func (*OperationSetThreshold) Descriptor() ([]byte, []int) { return file_chain_proto_rawDescGZIP(), []int{16} }
[ -0.4303467273712158, 1.2604140043258667, 0.22929434478282928, -0.4282086491584778, 0.43156835436820984, -0.5054203271865845, 1.1575419902801514, -1.2327650785446167, -0.22220468521118164, -0.446852445602417, -0.5363103151321411, 0.5910019278526306, 0.35037678480148315, -0.32945525646209717...
func (*Transaction) Descriptor() ([]byte, []int) { return file_chain_proto_rawDescGZIP(), []int{17} }
[ -0.21900394558906555, 0.8564574718475342, 0.514340341091156, -0.14956016838550568, 0.7172389030456543, -0.4219847619533539, 0.24479906260967255, 0.15772517025470734, 0.011081777513027191, -0.23910307884216309, -1.1610138416290283, -0.4726494252681732, -0.024186143651604652, 0.0177474897354...
func (*Signer) Descriptor() ([]byte, []int) { return file_chain_proto_rawDescGZIP(), []int{18} }
[ -0.6704028248786926, -0.4971286952495575, 0.3595270812511444, 0.24831077456474304, -0.16514870524406433, 0.11783601343631744, 0.733558177947998, 0.5866041779518127, -0.5647153258323669, -1.1707321405410767, -0.6219640970230103, -0.375762939453125, -0.11967141181230545, 1.3646973371505737, ...
func (*Trigger) Descriptor() ([]byte, []int) { return file_chain_proto_rawDescGZIP(), []int{19} }
[ -0.3613828122615814, 1.0779781341552734, 0.425025075674057, 0.3549623191356659, 0.4615703523159027, -0.7358195781707764, 0.3271735608577728, 0.4798460602760315, -0.30360063910484314, -0.9447158575057983, -1.6454401016235352, 0.4361027181148529, 0.00012895194231532514, 0.33163413405418396, ...
func (*TransactionEnv) Descriptor() ([]byte, []int) { return file_chain_proto_rawDescGZIP(), []int{20} }
[ -0.19390392303466797, 1.050247073173523, 0.3184506893157959, -0.5184792280197144, 0.21635818481445312, -0.9124449491500854, 0.9186952114105225, 0.25339871644973755, -0.8542916774749756, -0.30811846256256104, -0.5776799321174622, 0.6540652513504028, 0.06053666025400162, 1.1346968412399292, ...
func (*TransactionEnvStore) Descriptor() ([]byte, []int) { return file_chain_proto_rawDescGZIP(), []int{21} }
[ -0.7354689836502075, 0.8202387690544128, 0.030996453016996384, -0.7653353810310364, -0.518907904624939, -0.6770698428153992, -0.2736586928367615, -0.18921098113059998, -0.4414147436618805, 0.06271372735500336, -0.504966139793396, -0.45699945092201233, 0.0696326270699501, 0.3538497984409332...
func (*TransactionEnvSet) Descriptor() ([]byte, []int) { return file_chain_proto_rawDescGZIP(), []int{22} }
[ -0.5482750535011292, 0.8270201683044434, 0.16323038935661316, -0.9519232511520386, -0.21123366057872772, -0.8763224482536316, 0.2511943280696869, -1.0476064682006836, -0.5599486827850342, 0.29552897810935974, 0.07442464679479599, -0.21112515032291412, 0.29655131697654724, 0.353970378637313...
func (*ConsensusValueValidation) Descriptor() ([]byte, []int) { return file_chain_proto_rawDescGZIP(), []int{23} }
[ -0.6780994534492493, 1.1512516736984253, 0.3651481866836548, 0.7553004026412964, 0.13715222477912903, 0.24832969903945923, 0.31058016419410706, 0.385945200920105, -0.516261637210846, 0.37119731307029724, 0.2620352506637573, -0.5923827886581421, 0.21264350414276123, 0.9785522222518921, 0....
func (*ConsensusValue) Descriptor() ([]byte, []int) { return file_chain_proto_rawDescGZIP(), []int{24} }
[ -0.5379416942596436, 1.1122729778289795, 0.37010782957077026, 0.19309274852275848, -0.08331418037414551, -0.23197676241397858, -0.0210469551384449, 0.8476736545562744, -1.1021400690078735, -0.008934637531638145, 0.21363867819309235, 0.3519149124622345, 0.4355538785457611, 1.460216403007507...
func (*Contract) Descriptor() ([]byte, []int) { return file_chain_proto_rawDescGZIP(), []int{25} }
[ -0.5152621865272522, 0.47603410482406616, 0.4800124764442444, 0.47505679726600647, -0.13011443614959717, -0.44443652033805847, 0.11651197820901871, 0.1906052529811859, -0.15704837441444397, -0.5759579539299011, -0.6372143626213074, -0.09969665855169296, -0.024154875427484512, 0.96163213253...
func (*OperationCreateAccount) Descriptor() ([]byte, []int) { return file_chain_proto_rawDescGZIP(), []int{26} }
[ -0.628325879573822, 0.5865300297737122, 0.3066757619380951, 0.43748363852500916, 0.4242919981479645, -0.08118203282356262, 2.208853006362915, -0.3719842731952667, -0.28165408968925476, 0.4218761920928955, -0.17255350947380066, -0.6497114300727844, 0.25939086079597473, -0.2029055655002594, ...
func (*OperationSetMetadata) Descriptor() ([]byte, []int) { return file_chain_proto_rawDescGZIP(), []int{27} }
[ -1.1324560642242432, 0.7274863123893738, 0.3388384282588959, -0.29033687710762024, 0.25156959891319275, -0.48369908332824707, 0.6740150451660156, -1.3451985120773315, -0.28673887252807617, 0.22776663303375244, 0.8658668398857117, 0.17116664350032806, 0.16335293650627136, -0.546249032020568...
func (*Trigger_OperationTrigger) Descriptor() ([]byte, []int) { return file_chain_proto_rawDescGZIP(), []int{19, 0} }
[ -0.8788378834724426, 0.9044115543365479, 0.30799800157546997, 0.40630874037742615, 0.7515990138053894, -0.5589017868041992, 1.0104174613952637, 0.0629621371626854, -0.6825125217437744, -0.5301826596260071, -1.1248153448104858, -0.8584954738616943, 0.27295592427253723, -0.698401689529419, ...
func (n *Neo4jPG) Do(cypher string, obj map[string]interface{}) (err error) { var result neo4j.Result _, err = n.Session.WriteTransaction(func(tx neo4j.Transaction) (interface{}, error) { if result, err = tx.Run(cypher, obj); err != nil { return nil, err } return nil, nil }) return err }
[ -0.4968186616897583, 0.4053894579410553, 1.0103915929794312, -0.286143958568573, 0.4743245840072632, -0.041023194789886475, 0.06099880114197731, -1.1707842350006104, -0.6886599659919739, 1.1544456481933594, -0.9823580384254456, 0.13166503608226776, -0.22845135629177094, -0.7918095588684082...
func (n *Neo4jPG) Read(cypher string, params map[string]interface{}, cRHandle func(r neo4j.Record) (interface{}, error)) (res interface{}, err error) { if n.Session, err = n.Driver.Session(neo4j.AccessModeRead); err != nil { pkg.ReportError(pgl.ErrorReport{Msg: "Error thrown in Session", Err: err.Error()}) return ...
[ -0.17823848128318787, 0.13582539558410645, 0.7792620658874512, -0.3989919126033783, 0.44780510663986206, -0.4325970709323883, 0.1981991082429886, -0.30222272872924805, -0.9816678166389465, 0.9648686051368713, 0.6055038571357727, -0.17212022840976715, -0.8098884224891663, -0.267825037240982...
func (img *Image) CreateImage(ctx context.Context) (output *dynamodb.PutItemOutput, err error) { db := ctx.Value("db").(*dynamodb.DynamoDB) id, _ := uuid.NewV4() img.ID = id.String() img.CreatedAt = time.Now() item, _ := dynamodbattribute.MarshalMap(img) output, err = db.PutItem(&dynamodb.PutItemInput{ Table...
[ -1.2736767530441284, 0.21599870920181274, 0.39001935720443726, -0.39691653847694397, 0.5594297647476196, 0.16397146880626678, -0.10866452753543854, 0.7494952082633972, -0.6660944819450378, 0.6463767886161804, 0.0634564757347107, -1.225454330444336, -0.29752981662750244, 0.5225931406021118,...
func (info *ImageInfo) GetImageInfo(data []byte) (result *ImageInfo, err error) { reader := bytes.NewReader(data) x, err := exif.Decode(reader) if err != nil { return nil, err } make, _ := x.Get(exif.Make) model, _ := x.Get(exif.Model) exposure, _ := x.Get(exif.ExposureTime) aperture, _ := x.Get(exif.Apertur...
[ -0.31419962644577026, -0.3234225809574127, 0.3948391079902649, -0.6638749837875366, 0.021024439483880997, -0.3758835792541504, -0.7897711992263794, 0.06241287291049957, 0.09097384661436081, -0.11525971442461014, -1.1771271228790283, -0.19126765429973602, -0.21774625778198242, -0.0814400538...
func NewCanvas(name string, w, h int) Canvas { c := Canvas{ Window: app.New().NewWindow(name), Container: fyne.NewContainer(iRect(w/2, h/2, w, h, color.RGBA{0, 0, 0, 255})), Width: float64(w), Height: float64(h), } return c }
[ 0.22250433266162872, -0.8828174471855164, 0.5924362540245056, 0.08051443099975586, -1.6067601442337036, -0.6150914430618286, 0.1412978172302246, -1.053086757659912, -0.10196463018655777, -0.44376760721206665, 0.31869369745254517, 0.5477196574211121, 0.5668281316757202, 1.162394642829895, ...
func MapRange(value, low1, high1, low2, high2 float64) float64 { return low2 + (high2-low2)*(value-low1)/(high1-low1) }
[ -0.5667752027511597, -0.830708920955658, 0.6447327733039856, 0.7106512784957886, -0.6152278780937195, 0.301464706659317, -0.7617011070251465, -0.5619921088218689, -1.3249891996383667, -0.27685263752937317, 0.45799073576927185, -0.022817356511950493, 0.28129488229751587, -0.1223049610853195...
func Radians(deg float64) float64 { return (deg * math.Pi) / 180.0 }
[ -1.1593233346939087, 0.9278812408447266, -0.03899095579981804, -1.5473235845565796, -0.7546101212501526, -0.01789882406592369, -0.43688496947288513, -0.5853692889213562, -0.13390761613845825, -0.47454237937927246, 0.057150911539793015, 0.06923738121986389, 0.20976634323596954, 0.0871621444...
func Polar(x, y, r, angle float64) (float64, float64) { px := (r * math.Cos(Radians(angle))) + x py := (r * math.Sin(Radians(angle))) + y return px, py }
[ -0.6122048497200012, -0.37345701456069946, 0.40792036056518555, -1.2674649953842163, -0.26308929920196533, 0.09838679432868958, -0.9173405170440674, -0.25144705176353455, 0.008304695598781109, 0.04684403911232948, -0.2115686684846878, -0.7781737446784973, 0.006068292539566755, -0.831564247...
func PolarRadians(x, y, r, angle float64) (float64, float64) { px := (r * math.Cos(angle)) + x py := (r * math.Sin(angle)) + y return px, py }
[ -0.895736038684845, -0.4829053282737732, 0.3095078468322754, -2.2759828567504883, -0.12373688817024231, -0.00792490690946579, -1.3568161725997925, -0.3539966940879822, -0.11977286636829376, 0.02566935494542122, -0.5055637359619141, 0.14781278371810913, -0.8662323951721191, -0.9086676836013...
func dimen(xp, yp, w, h float64) (float64, float64) { return pct(xp, w), pct(100-yp, h) }
[ 0.08220379799604416, 0.026340506970882416, 0.41077563166618347, 0.24489212036132812, 0.07763671875, 0.12311245501041412, 0.1287439465522766, 0.1501096487045288, -0.1541941910982132, 0.34396597743034363, -0.22810429334640503, -0.8521270751953125, 0.890741229057312, 0.11276456713676453, -0...
func AbsStart(name string, w, h int) (fyne.Window, *fyne.Container) { return app.New().NewWindow(name), fyne.NewContainer(iRect(w/2, h/2, w, h, color.RGBA{0, 0, 0, 255})) }
[ 0.1704448163509369, -0.9859203100204468, 0.6185311079025269, 0.3340674936771393, -0.8526581525802612, -0.2641534209251404, -0.25327321887016296, -0.7659896016120911, 0.09395457804203033, 0.03554132580757141, 0.3977741599082947, 0.7426567673683167, 0.8235362768173218, 1.3609061241149902, ...
func (c *Canvas) EndRun() { window := c.Window window.Resize(fyne.NewSize(float32(c.Width), float32(c.Height))) window.SetFixedSize(true) window.SetPadded(false) window.SetContent(c.Container) window.ShowAndRun() }
[ 0.33965206146240234, 0.5715149641036987, 0.4560334086418152, -0.48852407932281494, 0.13564375042915344, 0.2675905227661133, 0.9613589644432068, -0.01722688041627407, -0.4190523326396942, -0.8844374418258667, -0.058478452265262604, 0.5086256861686707, -0.8716577291488647, 1.3553546667099, ...
func AbsEndRun(window fyne.Window, c *fyne.Container, w, h int) { window.Resize(fyne.NewSize(float32(w), float32(h))) window.SetFixedSize(true) window.SetPadded(false) window.SetContent(c) window.ShowAndRun() }
[ 1.0091670751571655, 0.514523983001709, 0.48813650012016296, 0.09648536145687103, -0.26203396916389465, 0.014973059296607971, 0.049571018666028976, -0.5020718574523926, -0.8102580308914185, 0.10430468618869781, 0.3713773787021637, 1.2117855548858643, 0.026977242901921272, 1.9405114650726318...
func iLine(x1, y1, x2, y2 int, size float32, color color.RGBA) *canvas.Line { p1 := fyne.Position{X: float32(x1), Y: float32(y1)} p2 := fyne.Position{X: float32(x2), Y: float32(y2)} l := &canvas.Line{StrokeColor: color, StrokeWidth: size, Position1: p1, Position2: p2} return l }
[ 0.08614497631788254, -0.3633640706539154, 0.714203953742981, -0.6595673561096191, 0.004133370704948902, 0.6509786248207092, -0.7751219868659973, -0.6066585183143616, -0.7500261664390564, -0.49293261766433716, -0.4927712678909302, -0.5011600255966187, 0.1514653116464615, -0.8761643767356873...
func iCircle(x, y, r int, color color.RGBA) *canvas.Circle { fx, fy, fr := float32(x), float32(y), float32(r) p1 := fyne.Position{X: fx - fr, Y: fy - fr} p2 := fyne.Position{X: fx + fr, Y: fy + fr} c := &canvas.Circle{FillColor: color, Position1: p1, Position2: p2} return c }
[ 0.10717887431383133, -0.13424493372440338, 0.5144844651222229, -1.2070002555847168, -0.25019460916519165, -0.08625953644514084, 0.4899412989616394, -0.7821326851844788, -1.079089879989624, 0.480366587638855, 0.28036272525787354, -0.48631346225738525, 0.005199193488806486, -1.16619563102722...
func iCornerRect(x, y, w, h int, color color.RGBA) *canvas.Rectangle { r := &canvas.Rectangle{FillColor: color} r.Move(fyne.Position{X: float32(x), Y: float32(y)}) r.Resize(fyne.Size{Width: float32(w), Height: float32(h)}) return r }
[ -0.22626495361328125, -0.04988699406385422, 0.7506812214851379, -1.360878825187683, -0.9049040079116821, -0.24468128383159637, 0.5450443029403687, -0.7251952290534973, -0.4333583116531372, 0.6622006297111511, 0.46872395277023315, -0.15546022355556488, -0.5547853708267212, -0.91543072462081...
func iRect(x, y, w, h int, color color.RGBA) *canvas.Rectangle { fx, fy, fw, fh := float32(x), float32(y), float32(w), float32(h) r := &canvas.Rectangle{FillColor: color} r.Move(fyne.Position{X: fx - (fw / 2), Y: fy - (fh / 2)}) r.Resize(fyne.Size{Width: fw, Height: fh}) return r }
[ 0.24873708188533783, -0.19119486212730408, 0.7577191591262817, -1.2210241556167603, -0.4208712577819824, -0.07525094598531723, 0.024772491306066513, -0.7229112982749939, -0.5615005493164062, -0.08654273301362991, 0.3165547251701355, 0.17609049379825592, 0.0434010811150074, -0.1814077347517...
func iImage(x, y, w, h int, name string) *canvas.Image { fx, fy, fw, fh := float32(x), float32(y), float32(w), float32(h) i := canvas.NewImageFromFile(name) i.Move(fyne.Position{X: fx - (fw / 2), Y: fy - (fh / 2)}) i.Resize(fyne.Size{Width: fw, Height: fh}) return i }
[ -0.35295039415359497, -0.2694006562232971, 0.7952712774276733, -1.0036635398864746, -1.0295133590698242, 0.36781641840934753, -0.2865115702152252, -0.964040219783783, -1.3710379600524902, 0.8416230082511902, -0.1289776712656021, -0.6334831714630127, -0.1662696748971939, -0.773435115814209,...
func iCornerImage(x, y, w, h int, name string) *canvas.Image { fx, fy, fw, fh := float32(x), float32(y), float32(w), float32(h) i := canvas.NewImageFromFile(name) i.Move(fyne.Position{X: fx, Y: fy}) i.Resize(fyne.Size{Width: fw, Height: fh}) return i }
[ -0.2665764093399048, 0.31993523240089417, 0.7485409379005432, -0.8700361847877502, -1.0378979444503784, 0.08483023196458817, 0.12998467683792114, -1.0734736919403076, -0.8055154085159302, 0.9651703238487244, 0.036345165222883224, -0.700921893119812, -0.30564388632774353, -0.958305835723877...
func AbsText(cont *fyne.Container, x, y int, s string, size int, color color.RGBA) { fx, fy, fsize := float32(x), float32(y), float32(size) t := &canvas.Text{Text: s, Color: color, TextSize: fsize} adj := fsize / 5 p := fyne.Position{X: fx, Y: fy - (fsize + adj)} t.Move(p) cont.AddObject(t) }
[ 0.5755283236503601, -0.8368518948554993, 0.7797431945800781, -0.6997362971305847, -0.6097806096076965, -0.09170058369636536, -0.07701927423477173, -0.8422300219535828, 0.11316516250371933, 0.6948421001434326, -0.3744852840900421, -0.024703998118638992, 0.5337205529212952, -0.34534415602684...
func AbsTextMid(cont *fyne.Container, x, y int, s string, size int, color color.RGBA) { t := iText(x, y, s, size, color) t.Alignment = fyne.TextAlignCenter cont.AddObject(t) }
[ 0.6437240242958069, -1.3724844455718994, 0.6874825358390808, -0.7626016736030579, -0.8627772331237793, 0.3056226074695587, -1.1850395202636719, -0.07800082862377167, 0.7179225087165833, 0.7985466718673706, 0.4113938808441162, -0.10727130621671677, -0.08538002520799637, -0.01797102019190788...
func AbsTextEnd(cont *fyne.Container, x, y int, s string, size int, color color.RGBA) { t := iText(x, y, s, size, color) t.Alignment = fyne.TextAlignTrailing cont.AddObject(t) }
[ 0.48583438992500305, -0.6973980069160461, 0.6781030297279358, -0.6269731521606445, -0.6161259412765503, -0.004143863916397095, -0.8978489637374878, -0.04459959641098976, -0.20917034149169922, 1.0159233808517456, -0.23303624987602234, -0.22282123565673828, 0.23227985203266144, 0.00137726636...
func AbsLine(cont *fyne.Container, x1, y1, x2, y2 int, size float32, color color.RGBA) { // currently there is a cap of StrokeWidth > 10 for straight lines, so make rectangles // TODO: remove this special case when the bug is fixed. // if x1 == x2 && size > 10 { // vertical line // lineLength := y2 - y1 // AbsR...
[ 0.3624567985534668, -0.3568313419818878, 1.0281000137329102, -0.10500993579626083, 0.38751280307769775, 0.23088614642620087, -0.53972989320755, -0.3279937505722046, -0.24502699077129364, -0.39884844422340393, -0.23154211044311523, 0.029369059950113297, 1.1073968410491943, 0.253590881824493...
func AbsCircle(cont *fyne.Container, x, y, r int, color color.RGBA) { fx, fy, fr := float32(x), float32(y), float32(r) p1 := fyne.Position{X: fx - fr, Y: fy - fr} p2 := fyne.Position{X: fx + fr, Y: fy + fr} cont.AddObject(&canvas.Circle{FillColor: color, Position1: p1, Position2: p2}) }
[ 0.468646377325058, -0.7076534628868103, 0.6537827849388123, -0.966681182384491, 0.10115264356136322, 0.42757079005241394, 0.2820640504360199, -0.7232763171195984, -0.6025267839431763, 0.6151875257492065, 0.5023218393325806, 0.05566024035215378, 1.1284210681915283, -0.03923450782895088, -...
func AbsCornerRect(cont *fyne.Container, x, y, w, h int, color color.RGBA) { fx, fy, fw, fh := float32(x), float32(y), float32(w), float32(h) r := &canvas.Rectangle{FillColor: color} r.Move(fyne.Position{X: fx, Y: fy}) r.Resize(fyne.Size{Width: fw, Height: fh}) cont.AddObject(r) }
[ 0.17177055776119232, -0.4668659269809723, 0.9486257433891296, -1.0915406942367554, -0.23773862421512604, 0.24366024136543274, -0.04538306966423988, -0.42158254981040955, -0.1818556934595108, 0.09259330481290817, 0.5275230407714844, 0.01445306371897459, 0.9184027314186096, 0.249548345804214...
func AbsRect(cont *fyne.Container, x, y, w, h int, color color.RGBA) { fx, fy, fw, fh := float32(x), float32(y), float32(w), float32(h) r := &canvas.Rectangle{FillColor: color} r.Move(fyne.Position{X: fx - (fw / 2), Y: fy - (fh / 2)}) r.Resize(fyne.Size{Width: fw, Height: fh}) cont.AddObject(r) }
[ 0.4004364609718323, -0.01361598540097475, 0.8664095401763916, -0.7892271876335144, -0.15530875325202942, 0.19563473761081696, -0.18631291389465332, -0.4751458764076233, -0.2329239845275879, -0.39293724298477173, 0.2731906473636627, 0.38696765899658203, 0.8562100529670715, 0.094389274716377...
func AbsImage(cont *fyne.Container, x, y, w, h int, name string) { fx, fy, fw, fh := float32(x), float32(y), float32(w), float32(h) i := canvas.NewImageFromFile(name) i.Move(fyne.Position{X: fx - (fw / 2), Y: fy - (fh / 2)}) i.Resize(fyne.Size{Width: fw, Height: fh}) cont.AddObject(i) }
[ 0.09022533148527145, -0.24500596523284912, 0.8938558101654053, -0.22057920694351196, -0.5627317428588867, 0.7975194454193115, -0.4459061920642853, -0.3571555018424988, -0.9642950296401978, 0.4969707429409027, 0.05289074406027794, -0.025257239118218422, 0.8684977889060974, 0.244664400815963...
func AbsCornerImage(cont *fyne.Container, x, y, w, h int, name string) { fx, fy, fw, fh := float32(x), float32(y), float32(w), float32(h) i := canvas.NewImageFromFile(name) i.Move(fyne.Position{X: fx, Y: fy}) i.Resize(fyne.Size{Width: fw, Height: fh}) cont.AddObject(i) }
[ 0.0076972199603915215, -0.6815540194511414, 0.890376627445221, -0.7142283320426941, -0.3425406515598297, 0.6383110284805298, 0.06719288975000381, -0.6262627840042114, -1.1954329013824463, 1.0048147439956665, 0.10040929913520813, -0.13647952675819397, 0.9413285255432129, 0.16314594447612762...
func (c *Canvas) TextWidth(s string, size float64) float64 { t := &canvas.Text{Text: s, TextSize: float32(pct(size, c.Width))} return (float64(t.MinSize().Width) / float64(c.Width)) * 100 }
[ 0.9291480779647827, -0.39744192361831665, 0.4324181377887726, -0.8823794722557068, -1.1035579442977905, -0.22118055820465088, -0.18503522872924805, 0.015757165849208832, 0.6427639722824097, 0.22749243676662445, 0.23742742836475372, 0.028229976072907448, -0.04084639251232147, -0.45614281296...