text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func (s *Server) Run() {
signals := make(chan os.Signal, 1)
signal.Notify(signals, syscall.SIGINT, syscall.SIGTERM)
for {
if len(s.CellBuckets.AllCells()) == 0 {
fmt.Println("no cells remaining, stopping...")
s.closeConnections()
return
}
if len(signals) != 0 {
fmt.Println("Received Signal:", <-s... | [
-0.6174471378326416,
-0.5200121998786926,
0.6461257338523865,
0.6408811211585999,
0.6327372789382935,
-0.05346117913722992,
0.22757838666439056,
0.2826468050479889,
-1.1260364055633545,
-0.3458009362220764,
-0.88945072889328,
-0.5804297924041748,
-0.4461039900779724,
1.2351707220077515,
... |
func (s *Server) Register(ctx context.Context, registration *proto.SlaveRegistration) (*proto.SlaveRegistrationResponse, error) {
for i := 0; i < int(registration.Threads); i++ {
client, err := createCellInteractionClient(registration.Address)
if err != nil {
return nil, err
}
s.cisClientPool.AddClient(clie... | [
-0.8325666189193726,
0.7688277363777161,
0.6698564887046814,
-0.0793955847620964,
1.0886870622634888,
-0.6349905133247375,
1.2365642786026,
-0.06337319314479828,
-0.5384737849235535,
0.4271266460418701,
-1.0121569633483887,
0.6484228372573853,
-1.1101950407028198,
0.2875032424926758,
0.3... |
func sanitizeBoolField(s Sanitizer, structValue reflect.Value, idx int) error {
fieldValue := structValue.Field(idx)
tags := s.fieldTags(structValue.Type().Field(idx).Tag)
if fieldValue.Kind() == reflect.Ptr && !fieldValue.IsNil() {
fieldValue = fieldValue.Elem()
}
isSlice := fieldValue.Kind() == reflect.Slic... | [
0.16312740743160248,
0.5402029752731323,
0.6779395937919617,
-0.017649371176958084,
0.31989172101020813,
-0.4664703607559204,
-0.01722489669919014,
-0.5752459764480591,
-0.7406015992164612,
0.845176100730896,
-1.0715091228485107,
0.18368807435035706,
-0.44507932662963867,
0.189780920743942... |
func NewRootNode(ch []*Node) *Node {
return &Node{RootNode, "", ch, make(map[string]string)}
} | [
0.5374346971511841,
-1.1648544073104858,
0.2228710651397705,
0.21610994637012482,
-0.6414042711257935,
-0.45896339416503906,
-1.5215650796890259,
-0.19351385533809662,
0.1221230998635292,
0.3090713620185852,
-0.3237147033214569,
1.4266356229782104,
0.01711892895400524,
0.23643754422664642,... |
func (n *Node) GetID() *string {
id, ok := n.Attributes["id"]
if ok {
return &id
}
return nil
} | [
0.8403176069259644,
0.23343008756637573,
0.2827974259853363,
0.5573704838752747,
0.47948095202445984,
0.1641780287027359,
-0.14016662538051605,
-0.38761842250823975,
0.8351057767868042,
0.08382108062505722,
0.742929995059967,
-0.2837223410606384,
-0.004436885006725788,
-0.19101372361183167... |
func (n *Node) TagName() string {
return n.Data
} | [
-0.2367575764656067,
0.47406283020973206,
0.11540327966213226,
-0.5498195290565491,
0.21520645916461945,
-0.13973689079284668,
-0.9334644675254822,
0.19990789890289307,
-1.1105974912643433,
-0.06975603848695755,
-0.10443295538425446,
0.12485092133283615,
0.41692057251930237,
0.725927054882... |
func PrintNode(node *Node, w io.Writer) {
printNode(node, w, -1)
} | [
-0.1874115765094757,
0.22950881719589233,
0.35554200410842896,
0.28493738174438477,
0.30781564116477966,
0.0594366230070591,
-0.06071966141462326,
0.02268538437783718,
-0.07577840238809586,
0.05828606337308884,
0.571378231048584,
0.7459965348243713,
-0.19922836124897003,
0.7984747290611267... |
func FindMaxSumOfSubArray(arr []int) (int, bool) {
if arr == nil || len(arr) < 1 {
return 0, false
}
maxSum, curSum := ^int(^uint(0)>>1), 0
for _, e := range arr {
if curSum <= 0 {
curSum = e
} else {
curSum += e
}
if maxSum < curSum {
maxSum = curSum
}
}
return maxSum, true
} | [
-0.1806333214044571,
0.2532790005207062,
0.9542137384414673,
1.1898185014724731,
-0.8919885754585266,
-0.28258877992630005,
0.25679975748062134,
-0.4624287784099579,
0.3673372268676758,
-0.21920962631702423,
-0.6258553266525269,
-0.8580071330070496,
-0.209256112575531,
1.5961825847625732,
... |
func FindSubArrayWithMaxSum(arr []int) []int {
if arr == nil || len(arr) < 1 {
return nil
}
sub := []int{}
begin := 0
maxSum, curSum := ^int(^uint(0)>>1), 0
for i, e := range arr {
if curSum <= 0 {
begin = i
curSum = e
sub = []int{e}
} else {
curSum += e
}
if maxSum < curSum {
maxSum = cu... | [
0.24033157527446747,
-0.610601544380188,
1.0873901844024658,
1.4529122114181519,
-0.8704167008399963,
-0.3037582337856293,
0.45109835267066956,
-0.20812813937664032,
0.8306771516799927,
-0.34012043476104736,
0.19540192186832428,
0.01807381398975849,
-0.03754153475165367,
1.1603997945785522... |
func NewMemoryRepository() *Repository {
r, _ := NewRepository(memory.NewStorage())
return r
} | [
0.8829699754714966,
-0.30649587512016296,
0.139823317527771,
-0.3796945810317993,
-0.8714061379432678,
-1.3003343343734741,
-0.3599238693714142,
-0.10888680815696716,
0.7126186490058899,
-0.662947416305542,
-0.8752052783966064,
0.12010449916124344,
-0.559616208076477,
1.0379209518432617,
... |
func NewFilesystemRepository(path string) (*Repository, error) {
s, err := filesystem.NewStorage(osfs.New(path))
if err != nil {
return nil, err
}
return NewRepository(s)
} | [
-0.48351389169692993,
-0.44105264544487,
0.07760348170995712,
0.03607560694217682,
-0.44341224431991577,
-1.0352674722671509,
-0.24826714396476746,
-0.05994943529367447,
0.33839327096939087,
-0.7754288911819458,
-0.4204636812210083,
-0.6974057555198669,
-0.06949316710233688,
0.525550842285... |
func NewRepository(s Storer) (*Repository, error) {
return &Repository{
s: s,
r: make(map[string]*Remote, 0),
}, nil
} | [
-0.40372443199157715,
-0.5017578601837158,
0.004769548308104277,
0.17421716451644897,
-1.113377332687378,
-0.5122206211090088,
-0.11613070964813232,
0.48761966824531555,
0.796753466129303,
-0.46334996819496155,
-1.0484046936035156,
0.042265649884939194,
0.479724258184433,
0.269810676574707... |
func (r *Repository) Remote(name string) (*Remote, error) {
cfg, err := r.s.Config()
if err != nil {
return nil, err
}
c, ok := cfg.Remotes[name]
if !ok {
return nil, ErrRemoteNotFound
}
return newRemote(r.s, c), nil
} | [
-0.2563668489456177,
-0.4248580038547516,
0.43532946705818176,
0.19883477687835693,
-0.9787992835044861,
0.21924734115600586,
-1.2903432846069336,
-0.6416463255882263,
0.1384381800889969,
0.15607397258281708,
-1.3060022592544556,
0.8887206315994263,
-0.7899386286735535,
-0.69679194688797,
... |
func (r *Repository) Remotes() ([]*Remote, error) {
cfg, err := r.s.Config()
if err != nil {
return nil, err
}
remotes := make([]*Remote, len(cfg.Remotes))
var i int
for _, c := range cfg.Remotes {
remotes[i] = newRemote(r.s, c)
i++
}
return remotes, nil
} | [
-0.8558677434921265,
0.03754431754350662,
0.24964788556098938,
-0.3548823893070221,
0.5938454270362854,
0.1833789199590683,
-1.0146487951278687,
-0.36963796615600586,
0.6141896843910217,
0.017924923449754715,
-0.9501864910125732,
0.820135235786438,
-0.779454231262207,
-0.21193954348564148,... |
func (r *Repository) CreateRemote(c *config.RemoteConfig) (*Remote, error) {
if err := c.Validate(); err != nil {
return nil, err
}
remote := newRemote(r.s, c)
cfg, err := r.s.Config()
if err != nil {
return nil, err
}
if _, ok := cfg.Remotes[c.Name]; ok {
return nil, ErrRemoteExists
}
cfg.Remotes[c.... | [
0.035838477313518524,
-0.22863522171974182,
0.504626452922821,
-0.2757253646850586,
-0.21836066246032715,
0.5068190097808838,
-0.8135818839073181,
-0.1969316154718399,
0.3724280595779419,
0.2192632406949997,
-1.3175642490386963,
-0.016371164470911026,
-0.9409900903701782,
-0.54963326454162... |
func (r *Repository) DeleteRemote(name string) error {
cfg, err := r.s.Config()
if err != nil {
return err
}
if _, ok := cfg.Remotes[name]; !ok {
return ErrRemoteNotFound
}
delete(cfg.Remotes, name)
return r.s.SetConfig(cfg)
} | [
-0.6980060338973999,
0.1658303588628769,
0.5654584765434265,
-0.18193714320659637,
-0.5904666185379028,
0.19535160064697266,
-0.9794869422912598,
0.013002067804336548,
-0.17369547486305237,
-0.07737474143505096,
-1.5415215492248535,
0.41167378425598145,
-1.1218435764312744,
0.2868531048297... |
func (r *Repository) Clone(o *CloneOptions) error {
empty, err := r.IsEmpty()
if err != nil {
return err
}
if !empty {
return ErrRepositoryNonEmpty
}
if err := o.Validate(); err != nil {
return err
}
c := &config.RemoteConfig{
Name: o.RemoteName,
URL: o.URL,
}
remote, err := r.CreateRemote(c)
... | [
-0.3316750228404999,
0.20710240304470062,
1.0908311605453491,
0.08976075053215027,
-0.05734497308731079,
0.6044929623603821,
-0.2951135039329529,
-0.9088889956474304,
0.1711374819278717,
0.567347526550293,
-0.2829568684101105,
0.42446473240852356,
-0.46661970019340515,
-0.6000595092773438,... |
func (r *Repository) IsEmpty() (bool, error) {
iter, err := r.Refs()
if err != nil {
return false, err
}
var count int
return count == 0, iter.ForEach(func(r *plumbing.Reference) error {
count++
return nil
})
} | [
-1.5056850910186768,
0.003991938661783934,
0.7436233162879944,
-0.9935207366943359,
1.230352759361267,
-0.29869353771209717,
-0.06540497392416,
-0.5621362924575806,
-0.11953802406787872,
0.2546239495277405,
0.2037806510925293,
0.255862295627594,
-0.922760546207428,
0.22736380994319916,
-... |
func (r *Repository) Pull(o *PullOptions) error {
if err := o.Validate(); err != nil {
return err
}
remote, err := r.Remote(o.RemoteName)
if err != nil {
return err
}
if err = remote.Connect(); err != nil {
return err
}
defer remote.Disconnect()
head, err := remote.Ref(o.ReferenceName, true)
if err ... | [
-0.6348642110824585,
0.23930375277996063,
0.6086775660514832,
-0.3648236095905304,
0.2922651469707489,
0.847900390625,
-0.11135917901992798,
-0.7318486571311951,
0.14699053764343262,
-0.4053223431110382,
-0.07307196408510208,
0.7410063743591309,
-0.3302798271179199,
-0.3247383236885071,
... |
func (r *Repository) Commit(h plumbing.Hash) (*Commit, error) {
commit, err := r.Object(plumbing.CommitObject, h)
if err != nil {
return nil, err
}
return commit.(*Commit), nil
} | [
0.35636457800865173,
-0.680000901222229,
0.4724048376083374,
0.4409976899623871,
0.2027149498462677,
-0.06350582093000412,
-0.3708006739616394,
-0.7193426489830017,
-0.12420842051506042,
0.5284507274627686,
0.10752040892839432,
0.1109321191906929,
-0.414425253868103,
-0.010705137625336647,... |
func (r *Repository) Commits() (*CommitIter, error) {
iter, err := r.s.IterObjects(plumbing.CommitObject)
if err != nil {
return nil, err
}
return NewCommitIter(r, iter), nil
} | [
-0.6919149160385132,
-0.8949767351150513,
0.348349928855896,
-0.21126298606395721,
-0.4665079116821289,
-0.698477029800415,
-0.8816581964492798,
-0.8540244102478027,
-0.5406869053840637,
0.26970165967941284,
0.6993993520736694,
0.7264599800109863,
-0.5572968125343323,
0.33145421743392944,
... |
func (r *Repository) Tree(h plumbing.Hash) (*Tree, error) {
tree, err := r.Object(plumbing.TreeObject, h)
if err != nil {
return nil, err
}
return tree.(*Tree), nil
} | [
0.41141948103904724,
0.4597620368003845,
0.2899409830570221,
-0.34862184524536133,
-0.29201486706733704,
0.2045051008462906,
-1.0977143049240112,
-0.3097746670246124,
0.6020768284797668,
-0.46441835165023804,
-0.0020933884661644697,
0.3236345052719116,
-0.3138349652290344,
0.59398794174194... |
func (r *Repository) Trees() (*TreeIter, error) {
iter, err := r.s.IterObjects(plumbing.TreeObject)
if err != nil {
return nil, err
}
return NewTreeIter(r, iter), nil
} | [
-0.24497061967849731,
0.040218885987997055,
0.2795023024082184,
-0.9286389946937561,
0.002218215726315975,
-0.4351063072681427,
-0.7894935607910156,
-0.5561953186988831,
-0.05996284633874893,
0.2388169914484024,
0.6417741179466248,
0.44318848848342896,
-0.6066946983337402,
0.51754367351531... |
func (r *Repository) Blob(h plumbing.Hash) (*Blob, error) {
blob, err := r.Object(plumbing.BlobObject, h)
if err != nil {
return nil, err
}
return blob.(*Blob), nil
} | [
1.0205092430114746,
-0.18653839826583862,
0.5637229084968567,
0.43009522557258606,
0.47118228673934937,
0.5609155893325806,
-0.26042893528938293,
-0.32012197375297546,
0.26073014736175537,
0.1598183959722519,
0.16394101083278656,
0.042002707719802856,
-0.3119271695613861,
-0.37397807836532... |
func (r *Repository) Blobs() (*BlobIter, error) {
iter, err := r.s.IterObjects(plumbing.BlobObject)
if err != nil {
return nil, err
}
return NewBlobIter(r, iter), nil
} | [
0.11093015968799591,
-0.14043857157230377,
0.3539581298828125,
-0.16207469999790192,
-0.43659451603889465,
0.10354983061552048,
-0.3090566396713257,
-0.7218101620674133,
-0.2922954857349396,
0.05142870917916298,
0.4621070623397827,
0.2027847170829773,
-0.9667943120002747,
0.135057181119918... |
func (r *Repository) Tag(h plumbing.Hash) (*Tag, error) {
tag, err := r.Object(plumbing.TagObject, h)
if err != nil {
return nil, err
}
return tag.(*Tag), nil
} | [
0.546755850315094,
0.1754836142063141,
0.3044654130935669,
-0.1309765726327896,
1.1286076307296753,
0.3486892580986023,
-0.1152782216668129,
0.18622153997421265,
-0.1900842785835266,
-0.33978012204170227,
-0.5373117327690125,
0.26586708426475525,
-0.21921057999134064,
0.2465575635433197,
... |
func (r *Repository) Tags() (*TagIter, error) {
iter, err := r.s.IterObjects(plumbing.TagObject)
if err != nil {
return nil, err
}
return NewTagIter(r, iter), nil
} | [
-0.4539756774902344,
-0.05297284200787544,
0.17502766847610474,
-0.6094923615455627,
0.10036900639533997,
-0.5243530869483948,
-0.9396538734436035,
-0.63041090965271,
-0.3862623870372772,
-0.13388006389141083,
0.06356586515903473,
0.38785603642463684,
-0.4788390100002289,
0.336687028408050... |
func (r *Repository) Object(t plumbing.ObjectType, h plumbing.Hash) (Object, error) {
obj, err := r.s.Object(t, h)
if err != nil {
if err == plumbing.ErrObjectNotFound {
return nil, ErrObjectNotFound
}
return nil, err
}
switch obj.Type() {
case plumbing.CommitObject:
commit := &Commit{r: r}
return co... | [
-0.3327536880970001,
-0.9596623182296753,
0.49353140592575073,
-0.5261762738227844,
-0.12394653260707855,
0.3733783960342407,
-0.5309610962867737,
-0.7016279101371765,
-0.041186004877090454,
0.08245984464883804,
-0.2279442548751831,
0.3920433521270752,
0.27941060066223145,
-0.1263189017772... |
func (r *Repository) Objects() (*ObjectIter, error) {
iter, err := r.s.IterObjects(plumbing.AnyObject)
if err != nil {
return nil, err
}
return NewObjectIter(r, iter), nil
} | [
-1.4379570484161377,
-0.36873292922973633,
0.27502769231796265,
-0.7758837342262268,
-0.293971449136734,
-0.13557133078575134,
-0.7144048810005188,
-0.5823301672935486,
-0.8355301022529602,
-0.41418734192848206,
0.2972320020198822,
-0.02219136245548725,
-0.4603893458843231,
0.3836899697780... |
func (r *Repository) Head() (*plumbing.Reference, error) {
return storer.ResolveReference(r.s, plumbing.HEAD)
} | [
-0.539342999458313,
0.2453293800354004,
0.5403483510017395,
0.09829214960336685,
0.00152126036118716,
0.11555584520101547,
-0.24270428717136383,
-0.5085200071334839,
0.9062033891677856,
-0.1935860961675644,
0.6869858503341675,
0.8011224865913391,
-0.40020957589149475,
-0.9279659986495972,
... |
func (r *Repository) Ref(name plumbing.ReferenceName, resolved bool) (*plumbing.Reference, error) {
if resolved {
return storer.ResolveReference(r.s, name)
}
return r.s.Reference(name)
} | [
-0.1599017232656479,
0.4918733239173889,
0.33382648229599,
-0.2399023026227951,
-0.7535976767539978,
-0.34223076701164246,
-0.36439549922943115,
0.25828734040260315,
0.19502444565296173,
-0.17768462002277374,
0.2323095202445984,
-0.05274607986211777,
-0.2102234959602356,
-0.301590442657470... |
func (r *Repository) Refs() (storer.ReferenceIter, error) {
return r.s.IterReferences()
} | [
-0.677518367767334,
-0.40479937195777893,
0.2672666311264038,
-0.13213004171848297,
-0.4981665313243866,
-0.4599336087703705,
-0.5779401659965515,
-0.7481043934822083,
0.08003519475460052,
0.01751026324927807,
0.7158351540565491,
0.9449793696403503,
-0.27735093235969543,
0.1339667439460754... |
func (s *locationsService) GetCountry(countryID string) (*locations.Country, *errors.APIerror) {
fmt.Println("Inside Service")
return providerlocations.GetCountry(countryID)
} | [
-0.41407859325408936,
-0.3089689612388611,
0.35098564624786377,
0.5253865718841553,
0.3173504173755646,
-0.0016687522875145078,
0.7991163730621338,
0.019409481436014175,
0.6213234066963196,
0.09631083905696869,
0.30213797092437744,
1.1316051483154297,
-0.7454043030738831,
0.683971643447876... |
func NewClient(socketType zmq.Type, privateKey []byte, publicKey []byte, timeout time.Duration) (*client, error) {
if len(publicKey) != publicKeySize {
//return nil, fault.ErrInvalidPublicKey
return nil, fmt.Errorf("error invalid public key")
}
if len(privateKey) != privateKeySize {
//return nil, fault.ErrInv... | [
-0.1571374535560608,
-0.15705034136772156,
0.6157732009887695,
-0.206673726439476,
-1.2109999656677246,
-0.21882683038711548,
0.16861653327941895,
-0.920766294002533,
0.09415879100561142,
1.1513409614562988,
-0.4077998399734497,
1.206514835357666,
-1.6252361536026,
-0.13089613616466522,
... |
func (client *client) openSocket() error {
client.Lock()
defer client.Unlock()
socket, err := zmq.NewSocket(client.socketType)
if nil != err {
return err
}
// create a secure random identifier
randomIdBytes := make([]byte, identifierSize)
_, err = rand.Read(randomIdBytes)
if nil != err {
return err
}
r... | [
-0.28609544038772583,
0.27009403705596924,
0.8097054958343506,
-0.7395567893981934,
-0.33555397391319275,
-0.29364854097366333,
0.8094884157180786,
-0.4232536554336548,
-0.0020369128324091434,
0.31036055088043213,
0.2404949963092804,
1.3010141849517822,
-0.7148607969284058,
0.6148726344108... |
func (client *client) closeSocket() error {
client.Lock()
defer client.Unlock()
if nil == client.socket {
return nil
}
// if already connected, disconnect first
if "" != client.address {
_ = client.socket.Disconnect(client.address)
}
// close socket
err := client.socket.Close()
client.socket = nil
ret... | [
-0.06444282084703445,
0.14414644241333008,
0.5383209586143494,
-1.1294872760772705,
-0.2840019762516022,
-0.2937086224555969,
0.04013871029019356,
-0.9784826040267944,
0.05093039199709892,
-0.537627637386322,
0.42257222533226013,
0.44651514291763306,
-0.31542983651161194,
-0.02281247265636... |
func (client *client) Connect(conn *Connection, serverPublicKey []byte, prefix string) error {
// if already connected, disconnect first
err := client.closeSocket()
if nil != err {
return err
}
client.address = ""
client.prefix = prefix
// small delay to allow any background socket closing
// and to restrict... | [
-0.15950492024421692,
-0.05559054762125015,
0.48789533972740173,
-0.33895808458328247,
-1.1690294742584229,
-0.4711158871650696,
-0.21631187200546265,
-0.34298408031463623,
-0.44612592458724976,
0.47398772835731506,
0.23096418380737305,
0.16793115437030792,
-0.5307503342628479,
0.306510210... |
func (client *client) IsConnected() bool {
return "" != client.address
} | [
-0.14109979569911957,
-0.5823827385902405,
0.3677953779697418,
-0.12015843391418457,
-0.26454970240592957,
0.03167567774653435,
-0.9620431065559387,
0.03758591040968895,
0.028460711240768433,
0.730597198009491,
-0.5243829488754272,
0.11495795845985413,
-0.18381492793560028,
-0.246009230613... |
func (client *client) IsConnectedTo(serverPublicKey []byte) bool {
return bytes.Equal(client.serverPublicKey, serverPublicKey)
} | [
-0.3340659439563751,
-0.3110838532447815,
0.46242696046829224,
-0.3445221483707428,
-0.2996278703212738,
-0.11197476089000702,
-0.9510705471038818,
-0.9051895141601562,
0.0786796361207962,
0.7923262119293213,
-1.3047306537628174,
0.35263168811798096,
-1.653822660446167,
0.6203280687332153,... |
func (client *client) Reconnect() error {
_, err := client.reopenSocket()
return err
} | [
-0.19343167543411255,
0.37287163734436035,
0.4122862219810486,
0.13041263818740845,
-0.4149080216884613,
-0.19094900786876678,
0.6901766657829285,
-0.21755072474479675,
-0.6112201809883118,
0.031928565353155136,
0.18909013271331787,
1.412336826324463,
-0.4123603403568268,
-0.64429223537445... |
func (client *client) reopenSocket() (*zmq.Socket, error) {
err := client.closeSocket()
if nil != err {
return nil, err
}
<-time.After(20 * time.Millisecond)
err = client.openSocket()
if nil != err {
return nil, err
}
return client.socket, nil
} | [
0.2208450436592102,
0.4613531231880188,
0.6231825351715088,
-1.0875496864318848,
-1.143921971321106,
-0.6865999102592468,
0.7123230695724487,
-0.37858566641807556,
-0.26042401790618896,
-0.8685537576675415,
0.40773457288742065,
1.5132758617401123,
-1.3292560577392578,
-0.3110138475894928,
... |
func (client *client) Close() error {
return client.closeSocket()
} | [
0.041882939636707306,
0.11587268114089966,
0.23788923025131226,
-0.7221831679344177,
-0.8812692761421204,
0.3750414550304413,
0.431703120470047,
-1.2413394451141357,
-0.9075216054916382,
-1.0853610038757324,
0.8649982213973999,
0.9750270247459412,
-1.1544132232666016,
0.4198043942451477,
... |
func CloseClients(clients []Client) {
for _, client := range clients {
if nil != client {
_ = client.Close()
}
}
} | [
-0.6289252638816833,
-0.7054722905158997,
0.11858710646629333,
0.07489100098609924,
0.2591332197189331,
0.3361906111240387,
0.3768419325351715,
-0.5701166987419128,
-0.3168821334838867,
0.28035151958465576,
0.2754608690738678,
0.37819647789001465,
-0.7624725103378296,
1.5242500305175781,
... |
func (client *client) ConnectedTo() *connected {
if "" == client.address {
return nil
}
return &connected{
Address: client.address,
Server: hex.EncodeToString(client.serverPublicKey),
}
} | [
0.5701398849487305,
-0.3616141974925995,
0.377989798784256,
-1.2408111095428467,
-0.5602198243141174,
-0.11025915294885635,
-0.696333110332489,
-0.8871269822120667,
0.2657025158405304,
-0.18527305126190186,
-0.3409913182258606,
0.5938754081726074,
-0.6359747052192688,
0.09259363263845444,
... |
func NewWorkspacesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) *WorkspacesClient {
cp := arm.ClientOptions{}
if options != nil {
cp = *options
}
if len(cp.Host) == 0 {
cp.Host = arm.AzurePublicCloud
}
return &WorkspacesClient{subscriptionID: subscriptionID, ep: ... | [
0.8067701458930969,
-0.5937687754631042,
-0.1104128435254097,
-0.7368369698524475,
-0.8169487118721008,
0.023666247725486755,
-0.8105525374412537,
-0.9369968175888062,
-0.26656121015548706,
0.12267741560935974,
-0.5829845070838928,
1.3057664632797241,
-0.37716981768608093,
-0.2235385179519... |
func (client *WorkspacesClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, workspaceName string, parameters Workspace, options *WorkspacesBeginCreateOrUpdateOptions) (*policy.Request, error) {
urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Micro... | [
-0.6630674004554749,
-0.2713759243488312,
0.6279137134552002,
-0.5911443829536438,
-0.48221808671951294,
0.03627815470099449,
0.2262393683195114,
-0.2721630036830902,
-0.014645817689597607,
0.6438645124435425,
0.24358047544956207,
0.7950968742370605,
-0.27185723185539246,
1.157766580581665... |
func (client *WorkspacesClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, workspaceName string, options *WorkspacesBeginDeleteOptions) (*policy.Request, error) {
urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceN... | [
-0.01965091936290264,
-0.06512746214866638,
0.84840989112854,
-0.21818681061267853,
-0.5931612849235535,
-0.1599779576063156,
0.3241048753261566,
-0.48445960879325867,
-0.13477250933647156,
-0.20245179533958435,
0.4008554220199585,
1.2563469409942627,
-0.3720523715019226,
0.816232204437255... |
func (client *WorkspacesClient) getCreateRequest(ctx context.Context, resourceGroupName string, workspaceName string, options *WorkspacesGetOptions) (*policy.Request, error) {
urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces/{workspaceName}"
if r... | [
-0.2358049601316452,
0.27096837759017944,
1.0270696878433228,
-0.33107611536979675,
-0.3620723783969879,
-0.23907475173473358,
-0.13912563025951385,
-0.5892456769943237,
-0.3728095591068268,
0.18243049085140228,
0.5561338067054749,
1.6937898397445679,
-0.33047807216644287,
0.63622802495956... |
func (client *WorkspacesClient) getHandleResponse(resp *http.Response) (WorkspacesGetResponse, error) {
result := WorkspacesGetResponse{RawResponse: resp}
if err := runtime.UnmarshalAsJSON(resp, &result.Workspace); err != nil {
return WorkspacesGetResponse{}, runtime.NewResponseError(err, resp)
}
return result, n... | [
-0.6832917332649231,
-0.29439467191696167,
0.4951061010360718,
-0.3494373857975006,
-0.27071747183799744,
-0.06890521943569183,
0.664496660232544,
-0.49396970868110657,
0.8593108654022217,
-0.3641185164451599,
-0.4682350158691406,
-0.6493310928344727,
-0.790012001991272,
-0.030318008735775... |
func (client *WorkspacesClient) listByResourceGroupCreateRequest(ctx context.Context, resourceGroupName string, options *WorkspacesListByResourceGroupOptions) (*policy.Request, error) {
urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Databricks/workspaces"
if resourc... | [
-0.07863512635231018,
0.19028687477111816,
0.08159974217414856,
-0.5657333731651306,
-0.34543219208717346,
-0.34321901202201843,
0.33388587832450867,
-0.8447295427322388,
-0.13267283141613007,
0.23971880972385406,
-0.012011433951556683,
0.39210015535354614,
-0.2644229531288147,
1.176209211... |
func (client *WorkspacesClient) listByResourceGroupHandleResponse(resp *http.Response) (WorkspacesListByResourceGroupResponse, error) {
result := WorkspacesListByResourceGroupResponse{RawResponse: resp}
if err := runtime.UnmarshalAsJSON(resp, &result.WorkspaceListResult); err != nil {
return WorkspacesListByResourc... | [
-0.17651009559631348,
-0.36462855339050293,
-0.11178843677043915,
-0.8128823041915894,
-0.8331605195999146,
0.20078465342521667,
1.0307612419128418,
-0.8193128108978271,
0.2755647301673889,
-0.0657125934958458,
-0.5685460567474365,
-1.620851755142212,
-0.8018683791160583,
0.884537041187286... |
func (client *WorkspacesClient) listBySubscriptionCreateRequest(ctx context.Context, options *WorkspacesListBySubscriptionOptions) (*policy.Request, error) {
urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Databricks/workspaces"
if client.subscriptionID == "" {
return nil, errors.New("parameter clie... | [
0.008457358926534653,
0.5041990280151367,
0.35923370718955994,
-0.0387854166328907,
-0.13209666311740875,
-0.14860554039478302,
0.21680040657520294,
-0.24382464587688446,
0.050765831023454666,
0.21932315826416016,
-0.27893394231796265,
0.7130457162857056,
0.3580097258090973,
0.771977782249... |
func (client *WorkspacesClient) listBySubscriptionHandleResponse(resp *http.Response) (WorkspacesListBySubscriptionResponse, error) {
result := WorkspacesListBySubscriptionResponse{RawResponse: resp}
if err := runtime.UnmarshalAsJSON(resp, &result.WorkspaceListResult); err != nil {
return WorkspacesListBySubscripti... | [
0.38578569889068604,
-0.18805058300495148,
0.14053939282894135,
-0.16618487238883972,
-0.8393869400024414,
0.3429300785064697,
1.0976128578186035,
-0.1343061476945877,
0.4087418019771576,
0.47957152128219604,
-1.0897752046585083,
-0.7723605036735535,
-0.2845941483974457,
0.3916352689266205... |
func (client *WorkspacesClient) updateCreateRequest(ctx context.Context, resourceGroupName string, workspaceName string, parameters WorkspaceUpdate, options *WorkspacesBeginUpdateOptions) (*policy.Request, error) {
urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datab... | [
-0.7802000045776367,
-0.5157511234283447,
0.835953950881958,
-0.3580003082752228,
-1.204137921333313,
-0.11865392327308655,
0.16337370872497559,
-0.04562902823090553,
-0.2675873339176178,
0.621577262878418,
0.1987742930650711,
1.29613196849823,
-0.3467823266983032,
0.7636518478393555,
0.... |
func (v ShadowUpdateRPCMsgSt) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjson5bd79fa1EncodeMevericcoreMcplantainer(&w, v)
return w.Buffer.BuildBytes(), w.Error
} | [
-0.14710263907909393,
-0.36176663637161255,
0.2996065318584442,
-0.5448504686355591,
-0.7090527415275574,
-0.6532661318778992,
0.6615835428237915,
0.10433556884527206,
-0.2636646032333374,
0.2249080389738083,
-1.1619024276733398,
0.19842809438705444,
-1.4087488651275635,
0.8702897429466248... |
func (v ShadowUpdateRPCMsgSt) MarshalEasyJSON(w *jwriter.Writer) {
easyjson5bd79fa1EncodeMevericcoreMcplantainer(w, v)
} | [
-0.018923882395029068,
-0.3188713490962982,
0.31589773297309875,
-0.9920519590377808,
-0.4528141915798187,
-0.9684798717498779,
0.32628321647644043,
-0.44399696588516235,
-0.03346354886889458,
0.10019410401582718,
-1.0993047952651978,
0.2060089260339737,
-0.8545466661453247,
1.095745921134... |
func (v *ShadowUpdateRPCMsgSt) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjson5bd79fa1DecodeMevericcoreMcplantainer(&r, v)
return r.Error()
} | [
-0.15414166450500488,
-0.10370803624391556,
0.341362327337265,
-1.3670192956924438,
-1.0369441509246826,
-0.6430813074111938,
0.25181564688682556,
0.2537883520126343,
-0.5095208883285522,
0.3970319330692291,
-0.7390414476394653,
-0.11491744220256805,
-1.3910510540008545,
0.6949681043624878... |
func (v *ShadowUpdateRPCMsgSt) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjson5bd79fa1DecodeMevericcoreMcplantainer(l, v)
} | [
0.23862861096858978,
-0.3692116439342499,
0.3290216624736786,
-1.2667927742004395,
-0.6580780148506165,
-1.389868140220642,
0.5423976182937622,
0.2694612145423889,
-0.17689073085784912,
0.34535443782806396,
-1.0076087713241577,
-0.05797605589032173,
-1.0335482358932495,
0.8586239218711853,... |
func (v PlantainerShadowStateSt) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjson5bd79fa1EncodeMevericcoreMcplantainer3(&w, v)
return w.Buffer.BuildBytes(), w.Error
} | [
0.17528730630874634,
0.1956142634153366,
0.15178529918193817,
-0.28983011841773987,
0.017146894708275795,
-0.005138712469488382,
1.161590337753296,
-0.3233688771724701,
0.8988373279571533,
-0.048465073108673096,
-0.4834643006324768,
0.35244035720825195,
-0.3707064688205719,
-0.358967989683... |
func (v PlantainerShadowStateSt) MarshalEasyJSON(w *jwriter.Writer) {
easyjson5bd79fa1EncodeMevericcoreMcplantainer3(w, v)
} | [
0.20800499618053436,
0.2516809105873108,
0.20141087472438812,
-0.67428058385849,
0.1872165948152542,
-0.5868790745735168,
0.9975587725639343,
-1.0111624002456665,
0.9549288749694824,
-0.1198892593383789,
-0.7221025824546814,
0.3029128313064575,
0.10486918687820435,
0.12991918623447418,
-... |
func (v *PlantainerShadowStateSt) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjson5bd79fa1DecodeMevericcoreMcplantainer3(&r, v)
return r.Error()
} | [
0.17830964922904968,
0.5364270210266113,
0.33433178067207336,
-1.158119797706604,
-0.7402137517929077,
0.04280047118663788,
0.7487900257110596,
-0.24093791842460632,
0.6139498949050903,
-0.008250193670392036,
-0.1962163746356964,
0.17837487161159515,
-0.4095922112464905,
-0.479603916406631... |
func (v *PlantainerShadowStateSt) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjson5bd79fa1DecodeMevericcoreMcplantainer3(l, v)
} | [
0.5502976179122925,
0.2254345417022705,
0.3842799961566925,
-0.9822817444801331,
-0.4346327483654022,
-0.8556919693946838,
1.0056368112564087,
-0.27323973178863525,
0.8094327449798584,
0.027036523446440697,
-0.6572563648223877,
0.06881401687860489,
-0.09518647938966751,
-0.2019204944372177... |
func (v PlantainerShadowStatePieceSt) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjson5bd79fa1EncodeMevericcoreMcplantainer4(&w, v)
return w.Buffer.BuildBytes(), w.Error
} | [
0.18677981197834015,
0.284610390663147,
0.15039679408073425,
-0.32332882285118103,
-0.0333668477833271,
-0.011736175045371056,
1.2136646509170532,
-0.46404871344566345,
0.3990512788295746,
0.1577131599187851,
-0.7512148022651672,
0.5522908568382263,
-0.6217386722564697,
0.05186161026358604... |
func (v PlantainerShadowStatePieceSt) MarshalEasyJSON(w *jwriter.Writer) {
easyjson5bd79fa1EncodeMevericcoreMcplantainer4(w, v)
} | [
0.19988705217838287,
0.3041295111179352,
0.214139923453331,
-0.6715086102485657,
0.1455172747373581,
-0.6004649996757507,
1.073132872581482,
-1.1159751415252686,
0.5373789668083191,
-0.05005449801683426,
-0.9050009250640869,
0.5034101605415344,
-0.20033985376358032,
0.3713984489440918,
-... |
func (v *PlantainerShadowStatePieceSt) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjson5bd79fa1DecodeMevericcoreMcplantainer4(&r, v)
return r.Error()
} | [
0.1988033652305603,
0.540715217590332,
0.32437074184417725,
-1.1458077430725098,
-0.7558612823486328,
0.007692841812968254,
0.8389889597892761,
-0.3678016662597656,
0.26112547516822815,
0.15269573032855988,
-0.445436954498291,
0.3695531189441681,
-0.7411339282989502,
-0.13766498863697052,
... |
func (v *PlantainerShadowStatePieceSt) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjson5bd79fa1DecodeMevericcoreMcplantainer4(l, v)
} | [
0.5422044396400452,
0.2700946629047394,
0.3332575857639313,
-0.9537146091461182,
-0.40239858627319336,
-0.8211205005645752,
1.0868045091629028,
-0.37953874468803406,
0.4565788507461548,
0.09388792514801025,
-0.8519888520240784,
0.18742428719997406,
-0.43216633796691895,
0.09380023181438446... |
func (v PlantainerShadowSt) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjson5bd79fa1EncodeMevericcoreMcplantainer8(&w, v)
return w.Buffer.BuildBytes(), w.Error
} | [
0.28585031628608704,
-0.01511868555098772,
0.16139249503612518,
-0.42058736085891724,
0.15153948962688446,
-0.24148479104042053,
0.8298506736755371,
-0.7992042899131775,
0.27234405279159546,
0.16520074009895325,
-0.44122666120529175,
0.8349456787109375,
0.0345195047557354,
0.00722554558888... |
func (v PlantainerShadowSt) MarshalEasyJSON(w *jwriter.Writer) {
easyjson5bd79fa1EncodeMevericcoreMcplantainer8(w, v)
} | [
0.32835161685943604,
0.02753894031047821,
0.19390928745269775,
-0.7110364437103271,
0.31346002221107483,
-0.7698289155960083,
0.718569278717041,
-1.405322790145874,
0.47300654649734497,
0.037393033504486084,
-0.6677438616752625,
0.693134069442749,
0.4334254860877991,
0.48526743054389954,
... |
func (v *PlantainerShadowSt) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjson5bd79fa1DecodeMevericcoreMcplantainer8(&r, v)
return r.Error()
} | [
0.3390764892101288,
0.23697558045387268,
0.2742021679878235,
-1.291060209274292,
-0.5812118649482727,
-0.2746715247631073,
0.43695080280303955,
-0.7676471471786499,
-0.0064933523535728455,
0.2791890501976013,
-0.20165997743606567,
0.4910206198692322,
0.0657472237944603,
-0.1833148300647735... |
func (v *PlantainerShadowSt) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjson5bd79fa1DecodeMevericcoreMcplantainer8(l, v)
} | [
0.6721195578575134,
-0.022335924208164215,
0.3174460530281067,
-1.1379673480987549,
-0.2940574884414673,
-1.0806939601898193,
0.7673218846321106,
-0.7071633338928223,
0.3247782588005066,
0.2920871376991272,
-0.5987296104431152,
0.37562134861946106,
0.31978386640548706,
0.13906621932983398,... |
func (v PlantainerShadowMetadataSt) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjson5bd79fa1EncodeMevericcoreMcplantainer9(&w, v)
return w.Buffer.BuildBytes(), w.Error
} | [
0.5434040427207947,
0.3339683413505554,
0.20227259397506714,
-0.4803146421909332,
-0.06405682861804962,
-0.21011996269226074,
0.8479600548744202,
-0.8152023553848267,
0.12041570991277695,
0.2658751606941223,
-0.23933173716068268,
1.144322395324707,
0.30956557393074036,
-0.13783970475196838... |
func (v PlantainerShadowMetadataSt) MarshalEasyJSON(w *jwriter.Writer) {
easyjson5bd79fa1EncodeMevericcoreMcplantainer9(w, v)
} | [
0.5454163551330566,
0.29832372069358826,
0.2239532619714737,
-0.8382666707038879,
0.006722955033183098,
-0.7750317454338074,
0.7515305280685425,
-1.3023303747177124,
0.2382124811410904,
0.07175721228122711,
-0.33345237374305725,
0.9535049200057983,
0.7237085700035095,
0.3591621518135071,
... |
func (v *PlantainerShadowMetadataSt) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjson5bd79fa1DecodeMevericcoreMcplantainer9(&r, v)
return r.Error()
} | [
0.5794671177864075,
0.6880198121070862,
0.32965466380119324,
-1.2887582778930664,
-0.7505245804786682,
-0.2121051847934723,
0.44811132550239563,
-0.6967963576316833,
-0.11561275273561478,
0.3205547034740448,
-0.008981509134173393,
0.8636691570281982,
0.2640197277069092,
-0.1675281971693039... |
func (v *PlantainerShadowMetadataSt) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjson5bd79fa1DecodeMevericcoreMcplantainer9(l, v)
} | [
0.8731129765510559,
0.3524487316608429,
0.35342636704444885,
-1.2111133337020874,
-0.5248895287513733,
-0.968914806842804,
0.7682931423187256,
-0.5833572149276733,
0.08816517144441605,
0.2145625799894333,
-0.3528304696083069,
0.6854270696640015,
0.5135683417320251,
0.03386916220188141,
0... |
func (v ShadowUpdateRPCMsgFromDeviceSt) MarshalJSON() ([]byte, error) {
w := jwriter.Writer{}
easyjson5bd79fa1EncodeMevericcoreMcplantainer10(&w, v)
return w.Buffer.BuildBytes(), w.Error
} | [
-0.07437044382095337,
-0.0735091120004654,
0.26773926615715027,
-0.6549344062805176,
-0.7169384360313416,
-0.6267568469047546,
0.7049874663352966,
-0.3542557656764984,
-0.0947633907198906,
0.0311291366815567,
-0.7065165638923645,
0.12528643012046814,
-0.5069379806518555,
0.8378005027770996... |
func (v ShadowUpdateRPCMsgFromDeviceSt) MarshalEasyJSON(w *jwriter.Writer) {
easyjson5bd79fa1EncodeMevericcoreMcplantainer10(w, v)
} | [
0.05436811223626137,
-0.007237013895064592,
0.28320151567459106,
-0.9618359208106995,
-0.454315185546875,
-0.9705989956855774,
0.5324364304542542,
-0.7718149423599243,
0.20114122331142426,
0.0013117456110194325,
-0.6525784134864807,
0.18358787894248962,
-0.17205792665481567,
0.974634826183... |
func (v *ShadowUpdateRPCMsgFromDeviceSt) UnmarshalJSON(data []byte) error {
r := jlexer.Lexer{Data: data}
easyjson5bd79fa1DecodeMevericcoreMcplantainer10(&r, v)
return r.Error()
} | [
-0.1399279087781906,
0.1950678825378418,
0.3282882571220398,
-1.356008529663086,
-0.9587363600730896,
-0.5611316561698914,
0.25993672013282776,
-0.3418284058570862,
-0.464332640171051,
0.13153484463691711,
-0.3293471932411194,
-0.1103336364030838,
-0.6612115502357483,
0.6895560622215271,
... |
func (v *ShadowUpdateRPCMsgFromDeviceSt) UnmarshalEasyJSON(l *jlexer.Lexer) {
easyjson5bd79fa1DecodeMevericcoreMcplantainer10(l, v)
} | [
0.2493574172258377,
0.025307033210992813,
0.3494868278503418,
-1.213649034500122,
-0.5420146584510803,
-1.2602332830429077,
0.5670126676559448,
-0.15039117634296417,
-0.08477509766817093,
0.05738319829106331,
-0.5865214467048645,
-0.11003462225198746,
-0.41302961111068726,
0.78339147567749... |
func Parse(rawFIN io.Reader) (d Document, err error) {
fin := bufio.NewReader(rawFIN)
d, err = lexMetadata(fin)
if err != nil {
return
}
text := []DocumentElement{}
for {
es := []DocumentElement{}
es, err = lexParagraphOrDirective(fin)
if err == io.EOF {
text = append(text, es...)
err = nil
d... | [
0.0010334276594221592,
0.4867526590824127,
0.570184051990509,
-0.3184960186481476,
-0.8342989683151245,
-0.0027131366077810526,
-0.2767370939254761,
-0.28821834921836853,
-0.5370960831642151,
0.366888165473938,
0.6455507874488831,
-0.23156075179576874,
-0.3570983111858368,
-0.2681248784065... |
func lexMetadataDirective(
fin *bufio.Reader,
) (name string, args []string, err error) {
err = eatWhitespace(fin)
if err != nil {
return
}
r, _, err := fin.ReadRune()
if r != '@' {
err = errors.New("Expected directive")
return
}
name, err = readWord(fin)
if err != nil {
return
}
for name != "begi... | [
0.5658223628997803,
-0.6764948964118958,
0.7226591110229492,
-1.1958547830581665,
-1.4976463317871094,
0.4419223666191101,
-0.6232078075408936,
-0.3896627724170685,
-1.0407309532165527,
0.9368237853050232,
0.32212889194488525,
1.2896361351013184,
-0.09671083837747574,
-0.2753337323665619,
... |
func lexDirective(fin *bufio.Reader) (e DocumentElement, err error) {
r := '\000'
r, _, err = fin.ReadRune()
if r != '@' {
err = errors.New("Missing '@' in directive")
}
if err != nil {
return
}
name := ""
name, err = readWord(fin)
if err != nil {
return
}
argDirectives := map[string]bool{
"chapter... | [
0.26017969846725464,
-0.9476357102394104,
0.9300044775009155,
-0.5172280073165894,
-1.376651406288147,
0.2187361717224121,
-0.27458393573760986,
-0.14465315639972687,
-0.659511923789978,
0.005342739634215832,
0.23175258934497833,
0.5763682723045349,
-0.2536298334598541,
-0.3298882842063904... |
func NewFloat(x float64) *Float {} | [
0.5245920419692993,
0.6501995325088501,
0.24027150869369507,
0.8178761005401611,
-0.991081714630127,
-0.7523861527442932,
-0.03091290220618248,
-0.6410158276557922,
0.10743962228298187,
-1.4354608058929443,
-0.6314067840576172,
0.03485908359289169,
0.8475407361984253,
0.7009541988372803,
... |
func (z *Float) SetMode(mode RoundingMode) *Float {} | [
-0.4419473111629486,
-0.10056580603122711,
0.27898165583610535,
0.4177720248699188,
0.5926027297973633,
0.6081510186195374,
1.4764248132705688,
-0.5329411625862122,
-0.07021372765302658,
-0.6810097694396973,
-0.24891427159309387,
-0.7098414301872253,
-0.7701281905174255,
1.5666917562484741... |
func (x *Float) Prec() uint {} | [
0.7873162627220154,
0.6003788113594055,
0.46027466654777527,
0.6741182804107666,
-0.37268057465553284,
0.44673073291778564,
0.919319212436676,
-0.28459230065345764,
-0.2144434154033661,
-1.3207486867904663,
-0.14382117986679077,
-0.016677536070346832,
0.7887929677963257,
0.2460951507091522... |
func (x *Float) MinPrec() uint {} | [
0.8489222526550293,
0.07721191644668579,
0.4880654215812683,
0.153499573469162,
-0.9213169813156128,
-0.26577645540237427,
0.2480582445859909,
-0.9611263275146484,
0.054518163204193115,
-0.8414131999015808,
0.19080649316310883,
-0.2744625210762024,
-0.22854770720005035,
0.36141297221183777... |
func (x *Float) Mode() RoundingMode {} | [
-1.0574334859848022,
0.19713246822357178,
0.4109250009059906,
-0.04888724908232689,
0.4154089689254761,
1.658724308013916,
1.0484477281570435,
-0.6364662051200867,
0.029706645756959915,
-0.6013785600662231,
-0.25369489192962646,
-0.958916425704956,
0.14771537482738495,
0.8083815574645996,
... |
func (x *Float) Acc() Accuracy {} | [
0.7038267850875854,
-0.9671960473060608,
0.3469070494174957,
0.5201370120048523,
-0.446320116519928,
0.44337955117225647,
1.6828722953796387,
-0.0743018165230751,
0.14696530997753143,
-0.2937651574611664,
0.14441102743148804,
1.475696325302124,
1.9317225217819214,
0.5213338136672974,
0.1... |
func (x *Float) Signbit() bool {} | [
-0.4075765609741211,
0.10501615703105927,
0.7008346915245056,
0.5331769585609436,
0.0059848628006875515,
1.4745181798934937,
-0.7519844174385071,
-1.0940378904342651,
-1.1599535942077637,
-0.8774873614311218,
-0.7847558856010437,
-0.7894793748855591,
-0.34407147765159607,
0.284553736448287... |
func (x *Float) IsInf() bool {} | [
0.47790902853012085,
0.23917312920093536,
0.4844038188457489,
1.0012359619140625,
-0.6086377501487732,
0.34757184982299805,
-0.46485960483551025,
0.22990486025810242,
-0.277249813079834,
-0.9824559092521667,
-1.1512991189956665,
0.21792885661125183,
-0.8495221138000488,
0.6994309425354004,... |
func (z *Float) SetUint64(x uint64) *Float {} | [
-0.16510966420173645,
0.22983065247535706,
0.2740786373615265,
1.0047736167907715,
0.17264629900455475,
-0.5043860673904419,
0.8886248469352722,
-0.41410183906555176,
0.0559423491358757,
-1.0765265226364136,
-0.746131181716919,
-0.9855130910873413,
0.15442655980587006,
1.042786955833435,
... |
func (z *Float) SetInt64(x int64) *Float {} | [
-0.6964735984802246,
0.5113097429275513,
0.18001887202262878,
1.8554373979568481,
-0.005761551205068827,
-0.6495236754417419,
0.8708879351615906,
-0.8836049437522888,
-0.13953348994255066,
-0.6770289540290833,
-0.7741443514823914,
-0.4552921652793884,
-0.7630297541618347,
1.194534063339233... |
func (z *Float) SetFloat64(x float64) *Float {} | [
-0.5787542462348938,
0.34517452120780945,
0.3721841871738434,
1.4258486032485962,
0.35354241728782654,
-0.8315971493721008,
0.9328683018684387,
-0.5911480784416199,
0.21114933490753174,
-1.2538694143295288,
-0.9692420363426208,
-0.46301737427711487,
-0.24877698719501495,
1.4044439792633057... |
func (z *Float) SetInt(x *Int) *Float {} | [
0.245527982711792,
0.17489153146743774,
0.33515849709510803,
0.3688611686229706,
-0.6658231019973755,
0.0584164597094059,
0.6101924777030945,
-1.331453800201416,
-0.7925364971160889,
-0.6397202610969543,
-1.273125171661377,
-0.41846972703933716,
-0.5998830795288086,
0.8647181987762451,
0... |
func (z *Float) SetRat(x *Rat) *Float {} | [
-0.5473899841308594,
-0.5596494078636169,
0.14765559136867523,
-1.523369550704956,
-0.18965165317058563,
0.23869194090366364,
0.0806240662932396,
-1.3098465204238892,
-0.8249058127403259,
-0.9911539554595947,
-0.5217045545578003,
0.00400600815191865,
0.42579805850982666,
0.1484623253345489... |
func (z *Float) SetInf(signbit bool) *Float {} | [
0.29349300265312195,
0.01448822021484375,
0.2175459861755371,
1.450121283531189,
-0.410360723733902,
0.535014808177948,
1.200932502746582,
0.05000222846865654,
-0.7709707021713257,
-0.7628046870231628,
-1.2217062711715698,
-0.2355707436800003,
-1.1094292402267456,
1.4644253253936768,
-0.... |
func (z *Float) Set(x *Float) *Float {} | [
-0.2823890149593353,
-0.059684839099645615,
0.18999700248241425,
0.18356865644454956,
-0.29222190380096436,
0.0950646698474884,
0.8057505488395691,
-1.1111947298049927,
-0.5402731895446777,
-0.7656447291374207,
-1.194143533706665,
0.1646038144826889,
-0.19514544308185577,
0.591276347637176... |
func (z *Float) Copy(x *Float) *Float {} | [
-0.18573331832885742,
-0.7007025480270386,
0.2603068947792053,
1.2400293350219727,
-1.6163002252578735,
1.141900897026062,
0.8777784109115601,
-1.038977861404419,
0.10833046585321426,
-0.34187260270118713,
-0.9390677213668823,
0.21018947660923004,
-0.26858729124069214,
0.44746696949005127,... |
func (x *Float) Uint64() (uint64, Accuracy) {
// possible: panic("unreachable")
} | [
-0.25302815437316895,
-0.11041546612977982,
0.3726491928100586,
1.1850435733795166,
0.031455133110284805,
-0.04302142933011055,
0.2993265986442566,
0.5748494267463684,
-0.08785190433263779,
-0.5009059906005859,
0.11133311688899994,
-0.1408633440732956,
0.8413476943969727,
-0.11460743099451... |
func (x *Float) Int64() (int64, Accuracy) {
// possible: panic("unreachable")
} | [
-0.488481342792511,
-0.11228574812412262,
0.2634339928627014,
1.372046947479248,
-0.21481969952583313,
-0.08694063127040863,
0.16385981440544128,
0.10511239618062973,
-0.07987366616725922,
-0.18710371851921082,
-0.1587052047252655,
0.40218234062194824,
0.06922818720340729,
-0.0398721173405... |
func (x *Float) Float32() (float32, Accuracy) {
// possible: panic("unreachable")
} | [
0.21781854331493378,
0.2648817300796509,
0.331450879573822,
0.26695069670677185,
-0.2904757261276245,
1.0588619709014893,
0.0007401322945952415,
-0.7858831286430359,
-0.35875651240348816,
-0.5803638696670532,
-0.8020391464233398,
0.5390137434005737,
0.6897166967391968,
0.40040063858032227,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.