text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func (r *Route) RemoteLinkAddress() tcpip.LinkAddress {
r.mu.RLock()
defer r.mu.RUnlock()
return r.remoteLinkAddress
} | [
-0.17082087695598602,
-1.1081149578094482,
0.4875272214412689,
-0.46405309438705444,
0.3674601912498474,
0.5566727519035339,
0.01636914163827896,
0.4060952365398407,
1.410404920578003,
-0.8303245306015015,
-0.6752066016197205,
1.771640419960022,
-1.6454211473464966,
-0.545635998249054,
-... |
func (r *Route) NICID() tcpip.NICID {
return r.outgoingNIC.ID()
} | [
0.8864169120788574,
-0.42052024602890015,
0.17248807847499847,
-0.15359936654567719,
0.22664421796798706,
0.6416446566581726,
0.008161677047610283,
0.18114230036735535,
0.7798970937728882,
0.7755168080329895,
-0.14020569622516632,
-0.10293683409690857,
-0.8962323069572449,
-0.1222780421376... |
func (r *Route) MaxHeaderLength() uint16 {
return r.outgoingNIC.getNetworkEndpoint(r.NetProto()).MaxHeaderLength()
} | [
0.37651917338371277,
0.1561852991580963,
0.49240702390670776,
0.3582819402217865,
-0.013347157277166843,
0.8215504884719849,
-0.9000913500785828,
-0.4689066410064697,
0.5019209384918213,
0.08734942227602005,
-0.016600925475358963,
-0.9029245972633362,
-0.8880125284194946,
0.255798518657684... |
func (r *Route) Stats() tcpip.Stats {
return r.outgoingNIC.stack.Stats()
} | [
-0.1532459259033203,
0.6234283447265625,
0.31407636404037476,
-0.9201949238777161,
0.6314186453819275,
-0.22191746532917023,
-0.561032772064209,
-0.9400950074195862,
0.6426317691802979,
0.20688901841640472,
0.11971684545278549,
-0.5656771659851074,
0.06543576717376709,
0.587513267993927,
... |
func (r *Route) PseudoHeaderChecksum(protocol tcpip.TransportProtocolNumber, totalLen uint16) uint16 {
return header.PseudoHeaderChecksum(protocol, r.LocalAddress(), r.RemoteAddress(), totalLen)
} | [
-0.28160718083381653,
-0.35661888122558594,
0.5411300659179688,
-0.900287389755249,
-0.2214040756225586,
0.353738009929657,
0.1802157312631607,
0.37445488572120667,
0.4183295667171478,
-0.12790009379386902,
-0.8948136568069458,
-0.5166085362434387,
-1.1448744535446167,
-0.8171306252479553,... |
func (r *Route) RequiresTXTransportChecksum() bool {
if r.local() {
return false
}
return r.outgoingNIC.NetworkLinkEndpoint.Capabilities()&CapabilityTXChecksumOffload == 0
} | [
-0.3972384035587311,
-0.5041472911834717,
0.2775048613548279,
-0.31702569127082825,
-0.06545870006084442,
0.7381434440612793,
-0.3200248181819916,
0.16818103194236755,
0.005830789916217327,
0.17519906163215637,
-0.43020761013031006,
-0.8600032925605774,
-0.06678417325019836,
1.010450363159... |
func (r *Route) HasGvisorGSOCapability() bool {
if gso, ok := r.outgoingNIC.NetworkLinkEndpoint.(GSOEndpoint); ok {
return gso.SupportedGSO() == GvisorGSOSupported
}
return false
} | [
0.2130649834871292,
0.5583663582801819,
0.43125098943710327,
0.20594169199466705,
0.4847835600376129,
-0.522851824760437,
0.10836104303598404,
0.09120869636535645,
0.01767135038971901,
0.5590656399726868,
-0.27799439430236816,
-0.22506269812583923,
0.5436325073242188,
0.5560534000396729,
... |
func (r *Route) HasHostGSOCapability() bool {
if gso, ok := r.outgoingNIC.NetworkLinkEndpoint.(GSOEndpoint); ok {
return gso.SupportedGSO() == HostGSOSupported
}
return false
} | [
0.28726673126220703,
0.5085688829421997,
0.45925891399383545,
0.40531182289123535,
0.1742587685585022,
-0.3542309105396271,
-0.3901224136352539,
0.5906820297241211,
-0.48891568183898926,
0.7359363436698914,
-0.5843587517738342,
-0.6129276752471924,
0.007536145392805338,
0.4005190432071686,... |
func (r *Route) HasSaveRestoreCapability() bool {
return r.outgoingNIC.NetworkLinkEndpoint.Capabilities()&CapabilitySaveRestore != 0
} | [
-0.36976349353790283,
-0.0735069289803505,
0.4621058702468872,
0.3888782262802124,
0.8133692145347595,
-1.1509486436843872,
0.19602634012699127,
0.8414095640182495,
0.7746480703353882,
0.12911014258861542,
-0.7428244352340698,
-1.4345173835754395,
-0.17782221734523773,
0.29638364911079407,... |
func (r *Route) HasDisconnectOkCapability() bool {
return r.outgoingNIC.NetworkLinkEndpoint.Capabilities()&CapabilityDisconnectOk != 0
} | [
-0.3673045039176941,
-0.6776294112205505,
0.1919066607952118,
0.298660546541214,
0.43357783555984497,
-0.7700254917144775,
0.12355721741914749,
0.36709603667259216,
0.1826038807630539,
0.2475288063287735,
-0.31077536940574646,
-1.1779171228408813,
-0.08154819160699844,
0.6440756320953369,
... |
func (r *Route) GSOMaxSize() uint32 {
if gso, ok := r.outgoingNIC.NetworkLinkEndpoint.(GSOEndpoint); ok {
return gso.GSOMaxSize()
}
return 0
} | [
0.22812716662883759,
0.3718922436237335,
0.6195112466812134,
0.06495030969381332,
-0.2872505187988281,
-0.09387341141700745,
-0.3336692750453949,
0.04049728810787201,
0.7811857461929321,
-0.3619852364063263,
-0.6656090617179871,
-0.16732357442378998,
-0.2836487591266632,
0.4808480739593506... |
func (r *Route) ResolveWith(addr tcpip.LinkAddress) {
r.mu.Lock()
defer r.mu.Unlock()
r.remoteLinkAddress = addr
} | [
0.36494219303131104,
-0.28272607922554016,
0.5080986022949219,
-0.9095466732978821,
0.28697484731674194,
-0.22616364061832428,
-0.7474469542503357,
0.5858464241027832,
0.6191393136978149,
-0.5377904176712036,
-0.6486650109291077,
0.6400657296180725,
-0.30575287342071533,
0.3035234212875366... |
func (r *Route) ResolvedFields(afterResolve func(ResolvedFieldsResult)) tcpip.Error {
_, _, err := r.resolvedFields(afterResolve)
return err
} | [
-0.47264912724494934,
0.8804369568824768,
0.4045701324939728,
-0.2959981858730316,
0.12458495795726776,
-0.5426226854324341,
1.283070683479309,
0.31898099184036255,
0.15219180285930634,
-1.1108976602554321,
-1.6608951091766357,
-1.4792273044586182,
-1.0483436584472656,
-0.5579975843429565,... |
func (r *Route) resolvedFields(afterResolve func(ResolvedFieldsResult)) (RouteInfo, <-chan struct{}, tcpip.Error) {
r.mu.RLock()
fields := r.fieldsLocked()
resolutionRequired := r.isResolutionRequiredRLocked()
r.mu.RUnlock()
if !resolutionRequired {
if afterResolve != nil {
afterResolve(ResolvedFieldsResult{R... | [
-0.3273364007472992,
0.31898730993270874,
0.8086334466934204,
-0.6562100648880005,
0.043037302792072296,
-0.3010101616382599,
0.5245373845100403,
0.03632938861846924,
0.38840529322624207,
-0.7997599840164185,
-1.0639455318450928,
-0.14017640054225922,
-0.33116111159324646,
0.33643937110900... |
func (r *Route) local() bool {
return r.Loop() == PacketLoop || r.outgoingNIC.IsLoopback()
} | [
-0.21731196343898773,
-0.4934564530849457,
0.38091108202934265,
-0.27346691489219666,
-0.7291155457496643,
-0.26600927114486694,
-0.14247915148735046,
-0.47579583525657654,
0.2246369868516922,
0.19837836921215057,
-0.4588637053966522,
0.520649790763855,
-0.40856704115867615,
0.351538211107... |
func (r *Route) IsResolutionRequired() bool {
r.mu.RLock()
defer r.mu.RUnlock()
return r.isResolutionRequiredRLocked()
} | [
-1.4592982530593872,
0.3561150133609772,
0.3665463924407959,
0.5008634924888611,
0.3568969666957855,
-0.35175761580467224,
-0.227446511387825,
-0.35593321919441223,
-0.054804060608148575,
0.005904683843255043,
-0.8328236937522888,
-0.4040367305278778,
-0.606273353099823,
0.9528596997261047... |
func (r *Route) WritePacket(params NetworkHeaderParams, pkt PacketBufferPtr) tcpip.Error {
if !r.isValidForOutgoing() {
return &tcpip.ErrInvalidEndpointState{}
}
return r.outgoingNIC.getNetworkEndpoint(r.NetProto()).WritePacket(r, params, pkt)
} | [
-1.043525218963623,
0.4214431643486023,
0.5032150745391846,
0.1895882785320282,
0.697303056716919,
0.6283516883850098,
0.14738492667675018,
0.0033244192600250244,
-0.09065105766057968,
-0.30153876543045044,
0.3333887755870819,
-0.7843119502067566,
-0.3905702531337738,
0.6641135215759277,
... |
func (r *Route) WriteHeaderIncludedPacket(pkt PacketBufferPtr) tcpip.Error {
if !r.isValidForOutgoing() {
return &tcpip.ErrInvalidEndpointState{}
}
return r.outgoingNIC.getNetworkEndpoint(r.NetProto()).WriteHeaderIncludedPacket(r, pkt)
} | [
-0.10309652239084244,
-0.19681866466999054,
0.6666603684425354,
0.07062407582998276,
-0.6400426030158997,
0.7151095271110535,
0.40399616956710815,
-0.08055070042610168,
1.0815951824188232,
-0.6327880620956421,
-0.16860707104206085,
-0.5241573452949524,
-0.8449751138687134,
0.20906284451484... |
func (r *Route) DefaultTTL() uint8 {
return r.outgoingNIC.getNetworkEndpoint(r.NetProto()).DefaultTTL()
} | [
0.5019277334213257,
0.5992847084999084,
0.05343671143054962,
0.1453915387392044,
0.9327979683876038,
0.4785526692867279,
-0.017243176698684692,
-0.6216452121734619,
0.07491151988506317,
0.5726112127304077,
-0.9660815596580505,
-1.7065709829330444,
-1.0367865562438965,
0.33509162068367004,
... |
func (r *Route) MTU() uint32 {
return r.outgoingNIC.getNetworkEndpoint(r.NetProto()).MTU()
} | [
-0.8571557402610779,
0.33403176069259644,
0.6835194826126099,
-0.8084981441497803,
0.1384303867816925,
0.060268502682447433,
0.024530336260795593,
0.09087664633989334,
-0.05035785213112831,
-0.2083655744791031,
-0.44080913066864014,
0.0185560155659914,
-0.6896732449531555,
0.02572650089859... |
func (r *Route) Release() {
r.mu.Lock()
defer r.mu.Unlock()
if ep := r.localAddressEndpoint; ep != nil {
ep.DecRef()
}
} | [
-0.24929410219192505,
0.18501749634742737,
0.24204374849796295,
-0.8621656894683838,
0.3552374243736267,
-0.6437898874282837,
-0.0501030758023262,
0.5801502466201782,
0.19263097643852234,
0.4292900264263153,
0.5454593300819397,
0.4989972710609436,
-0.8417456150054932,
0.6437042951583862,
... |
func (r *Route) Acquire() {
r.mu.RLock()
defer r.mu.RUnlock()
r.acquireLocked()
} | [
-0.4461294710636139,
-0.37477871775627136,
0.4200858771800995,
0.03944887965917587,
1.4622952938079834,
-0.5280506014823914,
0.25144487619400024,
-0.28749263286590576,
0.1587846428155899,
-1.3254474401474,
0.22581227123737335,
1.0549885034561157,
-0.3695490062236786,
1.4090802669525146,
... |
func (r *Route) Stack() *Stack {
return r.outgoingNIC.stack
} | [
-0.05634291470050812,
1.0301010608673096,
0.30415821075439453,
0.15397675335407257,
-0.2830018997192383,
-0.04902920871973038,
0.6734472513198853,
-0.9651700258255005,
-0.1087096780538559,
0.10166621208190918,
-0.42914319038391113,
0.1436208337545395,
-0.48275917768478394,
-0.3988410532474... |
func (r *Route) IsOutboundBroadcast() bool {
// Only IPv4 has a notion of broadcast.
return r.isV4Broadcast(r.RemoteAddress())
} | [
-0.9635998606681824,
-0.4179416596889496,
0.7626243233680725,
-0.3395459055900574,
0.07995513081550598,
0.3240942358970642,
-0.6810907125473022,
-0.1723805069923401,
1.2322510480880737,
0.7355290651321411,
0.3991718292236328,
1.6403414011001587,
-0.9217188954353333,
0.4081481099128723,
-... |
func (r *Route) ConfirmReachable() {
if entry := r.getCachedNeighborEntry(); entry != nil {
entry.handleUpperLevelConfirmation()
}
} | [
0.39123252034187317,
-0.2042902261018753,
0.4530998170375824,
1.0356205701828003,
0.42721834778785706,
0.4232363700866699,
0.4916294813156128,
-0.370320200920105,
-0.8989967107772827,
0.9232928156852722,
-0.5614416599273682,
0.16617433726787567,
0.15759669244289398,
0.7415685057640076,
-... |
func New(ctx context.Context, cfg Config) (http.Handler, error) {
m := metrics{
receiveBytes: prometheus.NewGauge(prometheus.GaugeOpts{
Name: "uplink_network_receive_bytes",
Help: "Counter reporting receive bytes on the uplink interface.",
}),
transmitBytes: prometheus.NewGauge(prometheus.GaugeOpts{
Nam... | [
0.13951635360717773,
0.27938446402549744,
0.8169052600860596,
-0.41049692034721375,
-0.23325689136981964,
0.4942997694015503,
0.38979917764663696,
-0.06365012377500534,
-0.6795619130134583,
0.0044874222949147224,
0.5180745124816895,
0.06358383595943451,
-0.005034479312598705,
0.73710852861... |
func NewRSS(blog *Blog) *RSS {
rss := new(RSS)
rss.blog = blog
return rss
} | [
0.4989597499370575,
-0.36330753564834595,
-0.005049990955740213,
0.2568691372871399,
-1.0214364528656006,
0.31642091274261475,
-0.5605441331863403,
-1.377535104751587,
0.3790372908115387,
-0.7180928587913513,
-0.12415213137865067,
0.8352331519126892,
-0.21436607837677002,
0.138559058308601... |
func (r *RSS) Render(path string) error {
feed := r.getFeedXML()
return ioutil.WriteFile(path, feed, os.ModePerm)
} | [
0.3741537630558014,
-0.4213695824146271,
0.3795660138130188,
-0.41663071513175964,
-0.10824934393167496,
0.16599041223526,
-0.2914768159389496,
-0.14158980548381805,
-0.5754933953285217,
-0.4098876714706421,
0.1941593438386917,
-0.24076563119888306,
-0.7530834674835205,
-0.5536746978759766... |
func ParseDSN(dsn string, hostOverride HostOverride, logf Logf) (*Config, error) {
if logf == nil {
logf = bytehouse.EmptyConnectionContext.GetLogf()
}
if hostOverride == nil {
hostOverride = bytehouse.EmptyConnectionContext.GetResolveHost()
}
host, urlValues, err := parseAndResolveHost(dsn, hostOverride)
if... | [
0.3068423271179199,
0.24896453320980072,
0.6543474793434143,
0.10783148556947708,
-0.4455598294734955,
-0.5009094476699829,
-0.4151284396648407,
0.4386320412158966,
0.26497337222099304,
-0.42890554666519165,
-1.059098482131958,
0.10310864448547363,
0.028854850679636,
0.4006882607936859,
... |
func (l PropagatorLabels) Labels() []string {
return []string{"start_ia", "in_if_id", "eg_if_id", prom.LabelResult}
} | [
-0.6633104681968689,
0.0404481403529644,
0.15360699594020844,
-0.26776251196861267,
0.4675406515598297,
0.35711440443992615,
-0.26603588461875916,
0.2422446310520172,
0.5304654240608215,
0.07735958695411682,
0.947796642780304,
-0.09368965774774551,
-1.0343494415283203,
0.3703455626964569,
... |
func (l PropagatorLabels) Values() []string {
return []string{l.StartIA.String(), l.InIfID.String(), l.EgIfID.String(), l.Result}
} | [
-0.6966056227684021,
-0.5143855214118958,
0.08422333002090454,
-0.8578641414642334,
0.9125813245773315,
0.5511192679405212,
-0.6856526136398315,
-0.04084599018096924,
0.2102283090353012,
0.16596011817455292,
0.5720618963241577,
0.12727318704128265,
-0.8574255108833313,
0.7893791794776917,
... |
func (c *Client) Authorizations(url *url.URL) (auths *AuthorizationsService) {
auths = &AuthorizationsService{client: c, URL: url}
return
} | [
-0.4397391080856323,
0.4094947576522827,
0.32964202761650085,
0.18315233290195465,
-1.162894606590271,
-0.9414671659469604,
-0.027450963854789734,
-0.1589421182870865,
0.3398529887199402,
-0.7768149971961975,
0.2969425916671753,
0.36288031935691833,
-0.24681617319583893,
-0.554047226905822... |
func (a *AuthorizationsService) One() (auth *Authorization, result *Result) {
result = a.client.get(a.URL, &auth)
return
} | [
-1.5269496440887451,
0.613789439201355,
0.44736915826797485,
1.1407642364501953,
-0.033434540033340454,
-0.6849185824394226,
0.37139254808425903,
0.06602377444505692,
0.1426113098859787,
0.03019757568836212,
0.13167493045330048,
0.08822262287139893,
-0.007379980757832527,
-0.28122022747993... |
func (a *AuthorizationsService) All() (auths []Authorization, result *Result) {
result = a.client.get(a.URL, &auths)
return
} | [
-0.5320995450019836,
-0.08245512843132019,
0.4941577613353729,
1.5847868919372559,
-0.19661454856395721,
-0.26905179023742676,
-0.713355302810669,
0.25096139311790466,
-0.0022484741639345884,
0.49140021204948425,
0.5882406234741211,
0.6983413100242615,
-0.11844030767679214,
0.5524646639823... |
func (a *AuthorizationsService) Create(params interface{}) (auth *Authorization, result *Result) {
result = a.client.post(a.URL, params, &auth)
return
} | [
-1.082905888557434,
0.6462768912315369,
0.3284372091293335,
1.6487149000167847,
-0.32898545265197754,
-0.20771852135658264,
0.09036649018526077,
-0.6434405446052551,
-0.45350974798202515,
0.329140841960907,
0.03437754884362221,
-0.4866640567779541,
-0.8624655604362488,
0.3760983943939209,
... |
func Function(sig *CallSignature) Type {
return Type{functionImpl{sig: sig}}
} | [
-0.028223194181919098,
1.087462067604065,
-0.05760016664862633,
0.3671391010284424,
-0.14964711666107178,
-0.5619613528251648,
0.5423266887664795,
-0.7054744958877563,
1.0133981704711914,
-0.7358756065368652,
-1.0635926723480225,
0.5391557812690735,
0.6303793787956238,
0.21668565273284912,... |
func FunctionVal(impl FunctionImpl) Value {
return Value{
ty: Function(impl.Signature),
v: &impl,
}
} | [
-0.5509464144706726,
0.40817177295684814,
0.26845288276672363,
-0.5454710721969604,
-0.45972955226898193,
-0.5606307983398438,
0.12912273406982422,
0.34749719500541687,
0.3672292232513428,
-0.3039422929286957,
0.08306633681058884,
0.7851796746253967,
0.9616698026657104,
0.4835648238658905,... |
func NewInterfaceVrfDescriptor(ifHandler vppcalls.InterfaceVppAPI, ifIndex ifaceidx.IfaceMetadataIndex,
log logging.PluginLogger) *kvs.KVDescriptor {
descrCtx := &InterfaceVrfDescriptor{
ifHandler: ifHandler,
ifIndex: ifIndex,
log: log.NewLogger("interface-vrf-descriptor"),
}
return &kvs.KVDescriptor... | [
-0.043814174830913544,
0.3888697922229767,
0.23693770170211792,
-0.49182748794555664,
-0.047256190329790115,
-0.5190126895904541,
-0.11046923696994781,
-0.23806774616241455,
0.09327064454555511,
0.32853302359580994,
0.14425505697727203,
0.3622972071170807,
-1.080960750579834,
-0.1214064583... |
func (d *InterfaceVrfDescriptor) IsInterfaceVrfKey(key string) bool {
_, _, _, _, isIfaceVrfKey := interfaces.ParseInterfaceVrfKey(key)
if isIfaceVrfKey {
return true
}
_, _, isIfaceInherVrfKey := interfaces.ParseInterfaceInheritedVrfKey(key)
return isIfaceInherVrfKey
} | [
-0.47460079193115234,
0.5685858726501465,
0.7016944289207458,
-0.037774424999952316,
0.20171429216861725,
-0.6004685163497925,
0.43464815616607666,
-0.5912231802940369,
0.08279462158679962,
1.2490841150283813,
-0.14281968772411346,
0.28710994124412537,
-1.2208151817321777,
1.09494960308074... |
func (d *InterfaceVrfDescriptor) Create(key string, emptyVal proto.Message) (metadata kvs.Metadata, err error) {
swIfIndex, vrf, inheritedVrf, ipv4, ipv6, err := d.getParametersFromKey(key)
if err != nil {
return nil, err
}
// unnumbered interfaces (inherited VRF) should not be explicitly set to VRF=0 (probably ... | [
-0.397525817155838,
1.0072122812271118,
0.4774809181690216,
-0.0014159103156998754,
0.706540584564209,
0.061373721808195114,
-0.1394137740135193,
-0.4098234474658966,
-0.8082488775253296,
0.3742380142211914,
0.40339165925979614,
-0.5434033870697021,
-1.0568352937698364,
0.6640418171882629,... |
func (d *InterfaceVrfDescriptor) Delete(key string, emptyVal proto.Message, metadata kvs.Metadata) (err error) {
swIfIndex, vrf, inheritedVrf, ipv4, ipv6, err := d.getParametersFromKey(key)
if err != nil {
return err
}
if !inheritedVrf && vrf > 0 && ipv4 {
err = d.ifHandler.SetInterfaceVrf(swIfIndex, uint32(0)... | [
0.2867862284183502,
1.078737497329712,
0.6769927144050598,
-0.0919049009680748,
0.7953893542289734,
0.05188958719372749,
0.5416809320449829,
0.12718361616134644,
-0.5354899764060974,
0.9340468049049377,
0.6254083514213562,
0.09389213472604752,
-1.747444748878479,
0.6326525807380676,
0.26... |
func (d *InterfaceVrfDescriptor) Dependencies(key string, emptyVal proto.Message) (deps []kvs.Dependency) {
if _, vrf, ipv4, ipv6, isIfaceVrfKey := interfaces.ParseInterfaceVrfKey(key); isIfaceVrfKey {
if vrf > 0 && ipv4 {
deps = append(deps, kvs.Dependency{
Label: vrfV4Dep,
Key: l3.VrfTableKey(uint32(v... | [
-1.059396505355835,
0.48199933767318726,
0.45324021577835083,
-0.35103756189346313,
0.012101625092327595,
-0.43177130818367004,
0.06921444833278656,
-0.2828845977783203,
0.3556506633758545,
0.5404354333877563,
-0.38439491391181946,
-0.6765785813331604,
-0.5640244483947754,
0.52578520774841... |
func Authenticate(keys *Keys) *Account {
return &Account{keys}
} | [
-0.10735434293746948,
-0.07682228088378906,
-0.05671190097928047,
0.6055669188499451,
-0.5573314428329468,
-0.4756695032119751,
-0.7530286908149719,
-0.27511510252952576,
0.21578264236450195,
0.10886210948228836,
0.39571160078048706,
0.23315058648586273,
-0.6900966167449951,
-0.87704771757... |
func NewFSM() (*Machine, error) {
// Preparing badgerDB
badgerOpt := badger.DefaultOptions(raft_cfg.RaftVolumeDir)
badgerDB, err := badger.Open(badgerOpt)
if err != nil {
log.Fatal(err)
return &Machine{&badgerFSM{}, badgerDB}, err
}
return &Machine{NewBadger(badgerDB), badgerDB}, nil
} | [
-0.5978186726570129,
-0.35580119490623474,
0.3067914545536041,
0.3927648365497589,
0.09062208235263824,
-0.3087676167488098,
-0.2199288159608841,
-0.018239786848425865,
-0.8017107248306274,
-1.2350586652755737,
-0.4391869008541107,
-0.15490977466106415,
-0.40538519620895386,
0.976678371429... |
func (te *TreeEntry) Name() string {
if te.fullName != "" {
return te.fullName
}
return te.name
} | [
0.05481603741645813,
-0.5392495393753052,
0.29328182339668274,
-0.4253183603286743,
-0.4677208960056305,
-0.12453825771808624,
-0.09418204426765442,
0.2891537845134735,
-0.3666408956050873,
1.3672620058059692,
0.21289722621440887,
-0.8433806896209717,
0.20220454037189484,
0.982977747917175... |
func (te *TreeEntry) Mode() EntryMode {
return te.entryMode
} | [
-0.8600941896438599,
-0.26682913303375244,
0.21414409577846527,
-0.5666759610176086,
0.3846249580383301,
1.4102014303207397,
-0.04010462760925293,
0.6740692257881165,
-0.14606718719005585,
0.34283846616744995,
0.4523806571960449,
-0.19610625505447388,
-0.16010701656341553,
0.51551216840744... |
func (te *TreeEntry) Size() int64 {
if te.IsDir() {
return 0
} else if te.sized {
return te.size
}
wr, rd, cancel := te.ptree.repo.CatFileBatchCheck(te.ptree.repo.Ctx)
defer cancel()
_, err := wr.Write([]byte(te.ID.String() + "\n"))
if err != nil {
log.Debug("error whilst reading size for %s in %s. Error:... | [
-0.36353936791419983,
0.2583509087562561,
0.45232024788856506,
-0.718143880367279,
0.05434643104672432,
0.07407021522521973,
0.40536603331565857,
-0.05195482820272446,
-0.4515799880027771,
0.17149445414543152,
0.5964192152023315,
0.1673763543367386,
-0.13691022992134094,
0.9021639823913574... |
func (te *TreeEntry) IsSubModule() bool {
return te.entryMode == EntryModeCommit
} | [
-0.12665985524654388,
0.07174710184335709,
0.4004668593406677,
0.0642390251159668,
0.5264106392860413,
0.8222243785858154,
0.08493058383464813,
0.3431668281555176,
0.344640851020813,
1.0146970748901367,
-0.48602399230003357,
1.3095855712890625,
-0.6397860050201416,
-0.3663632273674011,
-... |
func (te *TreeEntry) IsDir() bool {
return te.entryMode == EntryModeTree
} | [
-0.28529757261276245,
-0.5156046152114868,
0.382184237241745,
0.77625972032547,
-0.07470399141311646,
0.8881635665893555,
0.17308279871940613,
0.3655026853084564,
0.18023434281349182,
-0.11824934929609299,
0.19720228016376495,
0.560883104801178,
-0.37340056896209717,
1.140857219696045,
-... |
func (te *TreeEntry) IsLink() bool {
return te.entryMode == EntryModeSymlink
} | [
-0.27682527899742126,
-0.3446764349937439,
0.21201710402965546,
0.5905387997627258,
1.1864842176437378,
-0.17885418236255646,
0.3275128901004791,
0.47532713413238525,
1.1494196653366089,
-0.25943493843078613,
-0.4876498878002167,
1.0020276308059692,
-0.5689080953598022,
0.742570698261261,
... |
func (te *TreeEntry) IsRegular() bool {
return te.entryMode == EntryModeBlob
} | [
-0.520689070224762,
0.10890846699476242,
0.5634860396385193,
0.2675597071647644,
-0.12734192609786987,
0.5865475535392761,
0.07721922546625137,
0.8152176737785339,
-0.16960491240024567,
0.6836882829666138,
-0.5529218912124634,
1.1634515523910522,
-1.1338567733764648,
0.3178625702857971,
... |
func (te *TreeEntry) IsExecutable() bool {
return te.entryMode == EntryModeExec
} | [
-0.25187039375305176,
-0.408150315284729,
0.5216608047485352,
0.6844485998153687,
0.3232891261577606,
0.5648267865180969,
-0.2550673484802246,
-0.3404303789138794,
0.17810477316379547,
1.274021863937378,
-0.05923912301659584,
0.28231680393218994,
-0.19063356518745422,
-0.12346702814102173,... |
func (te *TreeEntry) Blob() *Blob {
return &Blob{
ID: te.ID,
name: te.Name(),
size: te.size,
gotSize: te.sized,
repo: te.ptree.repo,
}
} | [
0.8617914915084839,
-0.9628511071205139,
0.2586672902107239,
-0.41916990280151367,
0.06939458101987839,
0.8339763879776001,
-0.6255769729614258,
-0.3094042241573334,
-0.23104332387447357,
0.6433971524238586,
0.4441375434398651,
-0.016242410987615585,
-0.10531686246395111,
-0.08953016251325... |
func NewPrivilegeUsersResponse() *PrivilegeUsersResponse {
this := PrivilegeUsersResponse{}
return &this
} | [
0.09816057980060577,
-0.8912448287010193,
-0.17895933985710144,
0.9975823163986206,
-0.7221448421478271,
-1.2499626874923706,
0.35931819677352905,
-0.09009694308042526,
0.5979287624359131,
-0.03137793391942978,
-0.7003217339515686,
-0.8175535798072815,
-1.576322078704834,
-0.18703559041023... |
func NewPrivilegeUsersResponseWithDefaults() *PrivilegeUsersResponse {
this := PrivilegeUsersResponse{}
return &this
} | [
0.06692074984312057,
-0.3259781002998352,
0.1058012917637825,
0.7802291512489319,
0.35819607973098755,
-0.897556483745575,
-0.3274380564689636,
-0.351234495639801,
0.8183824419975281,
-0.5509862303733826,
-0.7629742622375488,
-1.6488986015319824,
-1.4756373167037964,
-0.011912377551198006,... |
func (o *PrivilegeUsersResponse) GetTotal() int32 {
if o == nil || o.Total == nil {
var ret int32
return ret
}
return *o.Total
} | [
0.49427157640457153,
0.5743333101272583,
0.40536612272262573,
0.35792967677116394,
0.5664681792259216,
-0.06846226006746292,
1.3242954015731812,
-0.6248758435249329,
0.8884443640708923,
-0.10493481159210205,
-0.1999361515045166,
-0.7702394723892212,
-0.8087361454963684,
-0.5751999616622925... |
func (o *PrivilegeUsersResponse) GetTotalOk() (*int32, bool) {
if o == nil || o.Total == nil {
return nil, false
}
return o.Total, true
} | [
-0.22634923458099365,
0.20471397042274475,
0.6597818732261658,
0.6596481800079346,
0.2752397656440735,
-0.13548104465007782,
0.9602659940719604,
0.8028309941291809,
0.5676039457321167,
0.6233256459236145,
-1.0676352977752686,
-0.952695369720459,
0.3416726887226105,
-0.18746474385261536,
... |
func (o *PrivilegeUsersResponse) HasTotal() bool {
if o != nil && o.Total != nil {
return true
}
return false
} | [
0.6738768815994263,
-0.07900529354810715,
0.53080153465271,
-0.19718524813652039,
0.7317667603492737,
-0.717024564743042,
0.09888138622045517,
0.112503282725811,
0.43485143780708313,
0.29197022318840027,
-0.8714495301246643,
-1.2816344499588013,
0.01840200275182724,
-0.8607187271118164,
... |
func (o *PrivilegeUsersResponse) SetTotal(v int32) {
o.Total = &v
} | [
0.04851280897855759,
0.4636608958244324,
0.1941455453634262,
-0.3842363655567169,
-0.5925810933113098,
0.25727152824401855,
-0.19327841699123383,
-1.634853482246399,
0.21726569533348083,
0.649901807308197,
-0.5446584820747375,
0.681964099407196,
-0.3224465250968933,
-1.4620517492294312,
... |
func (o *PrivilegeUsersResponse) GetUsers() []int32 {
if o == nil || o.Users == nil {
var ret []int32
return ret
}
return *o.Users
} | [
-0.5666851997375488,
0.8457740545272827,
0.07479245215654373,
0.3159677982330322,
-0.01912851631641388,
-0.09989094734191895,
0.7370551228523254,
-0.4094756841659546,
1.0541764497756958,
-0.9658345580101013,
0.3411291539669037,
-0.6956432461738586,
-0.8980832099914551,
1.019158124923706,
... |
func (o *PrivilegeUsersResponse) GetUsersOk() (*[]int32, bool) {
if o == nil || o.Users == nil {
return nil, false
}
return o.Users, true
} | [
-0.44295862317085266,
1.4456390142440796,
0.12118062376976013,
0.6855850219726562,
0.39412742853164673,
-0.3271162807941437,
0.6096937656402588,
0.2236436903476715,
0.44382423162460327,
-0.029358167201280594,
-0.37529900670051575,
-0.7286009788513184,
-0.08560051769018173,
0.33546933531761... |
func (o *PrivilegeUsersResponse) HasUsers() bool {
if o != nil && o.Users != nil {
return true
}
return false
} | [
-0.03546549007296562,
0.7649331092834473,
-0.20032691955566406,
-0.13300354778766632,
0.31800609827041626,
-0.3462246060371399,
0.10708925127983093,
0.49481630325317383,
0.5859498381614685,
-1.210925579071045,
0.3354400098323822,
-0.6004132628440857,
-0.5709342956542969,
0.3145865499973297... |
func (o *PrivilegeUsersResponse) SetUsers(v []int32) {
o.Users = &v
} | [
-0.9254190325737,
0.41009414196014404,
0.08779104799032211,
-0.011813394725322723,
-0.8956481218338013,
0.373919814825058,
-0.35240447521209717,
-0.9928692579269409,
0.34176936745643616,
-0.4608474671840668,
0.1989327222108841,
0.8311752080917358,
-0.9674312472343445,
0.17575815320014954,
... |
func (o *PrivilegeUsersResponse) GetBeforeCursor() string {
if o == nil || o.BeforeCursor == nil {
var ret string
return ret
}
return *o.BeforeCursor
} | [
0.1135820522904396,
0.19655737280845642,
0.10135320574045181,
0.15370744466781616,
-1.115599274635315,
-0.7989379167556763,
0.5208036303520203,
-0.40706419944763184,
0.3072676956653595,
-0.5889065265655518,
0.18223899602890015,
-0.7895808815956116,
-0.849348783493042,
0.8689888119697571,
... |
func (o *PrivilegeUsersResponse) GetBeforeCursorOk() (*string, bool) {
if o == nil || o.BeforeCursor == nil {
return nil, false
}
return o.BeforeCursor, true
} | [
0.23777160048484802,
0.9999762773513794,
0.35493266582489014,
0.6131990551948547,
-0.17390291392803192,
-0.6334453225135803,
0.7416243553161621,
0.5004358887672424,
0.1687534898519516,
-0.5804205536842346,
-0.5521494150161743,
-0.3467456102371216,
-0.6379095315933228,
0.36353251338005066,
... |
func (o *PrivilegeUsersResponse) HasBeforeCursor() bool {
if o != nil && o.BeforeCursor != nil {
return true
}
return false
} | [
0.08071770519018173,
0.3254156708717346,
-0.030463803559541702,
-0.6319326162338257,
0.11674104630947113,
-1.3672279119491577,
0.3339322507381439,
0.1329135000705719,
0.5298712253570557,
-0.5786183476448059,
-0.7012426257133484,
-0.4142239987850189,
-0.8081321120262146,
0.7767658233642578,... |
func (o *PrivilegeUsersResponse) SetBeforeCursor(v string) {
o.BeforeCursor = &v
} | [
0.17146356403827667,
-0.4211868941783905,
-0.11940789222717285,
-0.7229976058006287,
-1.379335641860962,
-0.7779533267021179,
0.1539723128080368,
-1.232468843460083,
0.39248859882354736,
-0.2072450816631317,
0.19565348327159882,
0.9244017601013184,
-1.080694556236267,
-0.2871703803539276,
... |
func (o *PrivilegeUsersResponse) GetPreviousLink() string {
if o == nil || o.PreviousLink == nil {
var ret string
return ret
}
return *o.PreviousLink
} | [
0.5016639828681946,
0.4609450399875641,
0.17419767379760742,
0.9478338360786438,
0.1516696661710739,
-0.2954147160053253,
0.6999507546424866,
-0.05352408438920975,
0.550354540348053,
-1.026968240737915,
0.6732336282730103,
-1.3187055587768555,
-1.0541871786117554,
0.502466082572937,
0.34... |
func (o *PrivilegeUsersResponse) GetPreviousLinkOk() (*string, bool) {
if o == nil || o.PreviousLink == nil {
return nil, false
}
return o.PreviousLink, true
} | [
0.16101092100143433,
-0.02122587151825428,
0.7067896723747253,
0.517862856388092,
0.2049514502286911,
-0.1470571756362915,
0.7048709392547607,
0.7561861276626587,
0.45129334926605225,
-0.5288804173469543,
-0.32527363300323486,
-0.7301269769668579,
-0.7238816022872925,
0.4720211625099182,
... |
func (o *PrivilegeUsersResponse) HasPreviousLink() bool {
if o != nil && o.PreviousLink != nil {
return true
}
return false
} | [
0.3300468623638153,
0.5019610524177551,
0.3023831248283386,
0.33818116784095764,
0.9093170166015625,
-0.8577996492385864,
0.1396317481994629,
0.6631342768669128,
0.23964588344097137,
-1.204608678817749,
-0.29707038402557373,
-1.182796835899353,
-0.7864202260971069,
0.41451308131217957,
-... |
func (o *PrivilegeUsersResponse) SetPreviousLink(v string) {
o.PreviousLink = &v
} | [
0.2365228235721588,
-0.06265558302402496,
0.04255501180887222,
0.09302709251642227,
-0.42616456747055054,
-0.6101601719856262,
0.3009033501148224,
-1.1769932508468628,
0.03830178081989288,
-0.8274901509284973,
0.07190082967281342,
0.6829922795295715,
-1.043412685394287,
-0.7318685054779053... |
func (o *PrivilegeUsersResponse) GetAfterCursor() string {
if o == nil || o.AfterCursor == nil {
var ret string
return ret
}
return *o.AfterCursor
} | [
0.5876442193984985,
-0.6365415453910828,
-0.3263337314128876,
1.066391944885254,
-1.4640779495239258,
-0.3217521905899048,
0.13518522679805756,
-0.26657700538635254,
0.08566425740718842,
-0.9779953360557556,
-0.7450537085533142,
-0.925201416015625,
-0.48860716819763184,
1.018902063369751,
... |
func (o *PrivilegeUsersResponse) GetAfterCursorOk() (*string, bool) {
if o == nil || o.AfterCursor == nil {
return nil, false
}
return o.AfterCursor, true
} | [
0.6318322420120239,
0.22194239497184753,
-0.054205965250730515,
1.3449552059173584,
-1.4276269674301147,
-0.41838860511779785,
0.4552537500858307,
0.8638529181480408,
0.0503515787422657,
-0.9153764843940735,
-1.4064377546310425,
-0.334440141916275,
-0.36350828409194946,
0.688847005367279,
... |
func (o *PrivilegeUsersResponse) HasAfterCursor() bool {
if o != nil && o.AfterCursor != nil {
return true
}
return false
} | [
0.8813581466674805,
-0.28421682119369507,
-0.4067513942718506,
0.3303302526473999,
-0.43906450271606445,
-0.5615689754486084,
-0.08981271833181381,
0.5543673038482666,
-0.2606693506240845,
-0.6673833727836609,
-1.1945719718933105,
-0.8347489833831787,
-0.38090574741363525,
1.11153745651245... |
func (o *PrivilegeUsersResponse) SetAfterCursor(v string) {
o.AfterCursor = &v
} | [
0.6835716962814331,
-1.1879695653915405,
-0.5080959796905518,
0.07457233220338821,
-1.884334683418274,
-0.27286818623542786,
-0.2000257819890976,
-0.6105243563652039,
0.0943128764629364,
-0.34052830934524536,
-0.6998133063316345,
0.5412741303443909,
-0.7367788553237915,
0.16409018635749817... |
func (o *PrivilegeUsersResponse) GetNextLink() string {
if o == nil || o.NextLink == nil {
var ret string
return ret
}
return *o.NextLink
} | [
0.10397201031446457,
0.2430204302072525,
0.007374669890850782,
1.1156774759292603,
-0.5610652565956116,
-0.6076716780662537,
0.36147624254226685,
-0.1631661057472229,
0.47380587458610535,
-1.2738593816757202,
0.37814852595329285,
-0.7320811748504639,
-0.8342376351356506,
0.9084929823875427... |
func (o *PrivilegeUsersResponse) GetNextLinkOk() (*string, bool) {
if o == nil || o.NextLink == nil {
return nil, false
}
return o.NextLink, true
} | [
-0.2060815840959549,
0.000243704897002317,
0.3451824188232422,
0.813138484954834,
-0.5751298069953918,
-0.17533349990844727,
0.28099218010902405,
0.4400269687175751,
0.3339158296585083,
-0.6709216237068176,
-0.6494532823562622,
-0.3977009952068329,
-0.3714417517185211,
1.1948100328445435,
... |
func (o *PrivilegeUsersResponse) HasNextLink() bool {
if o != nil && o.NextLink != nil {
return true
}
return false
} | [
0.4745315909385681,
0.538330078125,
-0.100014328956604,
0.4403417110443115,
-0.13465668261051178,
-0.8271721601486206,
-0.30290716886520386,
0.6028367877006531,
-0.1362602710723877,
-1.2430907487869263,
-0.5092498064041138,
-0.6009125709533691,
-0.18993595242500305,
0.9438470602035522,
-... |
func (o *PrivilegeUsersResponse) SetNextLink(v string) {
o.NextLink = &v
} | [
0.130199134349823,
-0.29536116123199463,
-0.13942867517471313,
0.4415384531021118,
-1.2972667217254639,
-0.811722993850708,
-0.3335581123828888,
-1.0028446912765503,
-0.045159950852394104,
-0.9159172773361206,
-0.043406352400779724,
1.2828766107559204,
-0.9018918871879578,
0.05923120677471... |
func SimpleSurvey() (fun func(x, y float64, e interface{}), col *list.List) {
col = list.New()
fun = func(x, y float64, e interface{}) {
col.PushBack(e)
}
return
} | [
-0.4134759306907654,
0.5568652749061584,
0.5922196507453918,
0.15230205655097961,
-0.19669538736343384,
-0.07127310335636139,
-0.6935089826583862,
-0.12699364125728607,
0.3017929494380951,
-0.46744078397750854,
-0.7435806393623352,
-0.1992582380771637,
0.5028128623962402,
-0.75856381654739... |
func SimpleDelete() (pred func(x, y float64, e interface{}) bool) {
pred = func(x, y float64, e interface{}) bool {
return true
}
return
} | [
0.2726719081401825,
0.01571066863834858,
0.6736341118812561,
0.4150499701499939,
-0.7928884625434875,
0.8397393822669983,
-0.3465014100074768,
0.6505223512649536,
0.3319125771522522,
-0.015396513044834137,
-0.28623953461647034,
-0.06967190653085709,
0.5892682671546936,
-0.5787216424942017,... |
func CollectingDelete() (pred func(x, y float64, e interface{}) bool, col *list.List) {
col = list.New()
pred = func(x, y float64, e interface{}) bool {
col.PushBack(e)
return true
}
return
} | [
0.2834944427013397,
0.5827831625938416,
0.6956571936607361,
0.24373386800289154,
0.19612061977386475,
0.6357581615447998,
0.13857221603393555,
0.3180887997150421,
-0.14794981479644775,
0.7496415972709656,
-0.010040313936769962,
0.5441270470619202,
1.087963342666626,
0.03757068142294884,
... |
func contains(vs []*View, x, y float64) bool {
for _, v := range vs {
if v.contains(x, y) {
return true
}
}
return false
} | [
0.0944288820028305,
0.0795307382941246,
0.31671175360679626,
0.24552364647388458,
-0.5022673606872559,
-0.11782651394605637,
-0.9286245107650757,
-1.1849408149719238,
0.02106907218694687,
-0.8703938126564026,
0.3798069655895233,
0.43783023953437805,
0.4686891436576843,
0.5661793947219849,
... |
func overlaps(vs []*View, oV *View) bool {
for _, v := range vs {
if oV.overlaps(v) {
return true
}
}
return false
} | [
-1.3722734451293945,
0.20332717895507812,
0.5020598769187927,
0.3368700444698334,
-0.38498568534851074,
0.020947011187672615,
-0.526727557182312,
-0.33849582076072693,
0.7304919958114624,
-0.5530858635902405,
0.4618341028690338,
0.3927296996116638,
0.26232364773750305,
0.1907498985528946,
... |
func IntegerBetween(m, n uint64) peg.Pattern {
return peg.Inject(newIntegerInjector(m, n), Integer)
} | [
0.2322029173374176,
0.11132951825857162,
0.4348466992378235,
-0.18628235161304474,
-0.4796270430088043,
0.38972803950309753,
-0.5347638130187988,
-0.44155028462409973,
-0.2945702075958252,
-0.05906086787581444,
-0.4099876880645752,
0.3133232593536377,
-0.8464049696922302,
0.037139076739549... |
func NoRedundantZeroes(bareinteger peg.Pattern) peg.Pattern {
return peg.Alt(peg.When(peg.Not(peg.T("0")), bareinteger), peg.T("0"))
} | [
-0.44869500398635864,
0.006925549823790789,
0.20073699951171875,
-0.8980371952056885,
0.2192266583442688,
0.6459888815879822,
0.4319037199020386,
-0.0049145459197461605,
-0.5751926898956299,
-0.26475492119789124,
-0.26588210463523865,
-0.36687397956848145,
-0.2898550033569336,
1.6617957353... |
func DecIntegerBetween(m, n uint64) peg.Pattern {
return peg.Inject(newBareIntegerInjector(m, n, 10), DecInteger)
} | [
0.4551975727081299,
-0.046688660979270935,
0.3847973942756653,
-0.4018858075141907,
-0.26466143131256104,
0.18584084510803223,
-0.3528977036476135,
-0.23933738470077515,
-0.7291220426559448,
-0.638535737991333,
-0.19244760274887085,
0.2905990481376648,
-1.2565526962280273,
0.36571973562240... |
func HexIntegerBetween(m, n uint64) peg.Pattern {
return peg.Inject(newBareIntegerInjector(m, n, 16), HexInteger)
} | [
0.7122980952262878,
-0.22365370392799377,
0.4155556261539459,
-0.3056667745113373,
0.1338983029127121,
0.6148636937141418,
-1.1675913333892822,
0.010461120866239071,
-0.879999577999115,
-0.43069127202033997,
-0.7698031067848206,
-0.2586071491241455,
-1.0103672742843628,
0.5598695874214172,... |
func OctIntegerBetween(m, n uint64) peg.Pattern {
return peg.Inject(newBareIntegerInjector(m, n, 8), OctInteger)
} | [
0.21032454073429108,
-0.6873844265937805,
0.3868647813796997,
-0.3346976637840271,
-0.8285231590270996,
0.5319609642028809,
-0.47583886981010437,
-1.080247163772583,
-0.4050617814064026,
-0.48759564757347107,
0.5263356566429138,
0.43052902817726135,
-1.3740811347961426,
-0.0121097611263394... |
func newIntegerInjector(m, n uint64) func(s string) (int, bool) {
// assumes: len(s) > 0, matches Integer.
return func(s string) (int, bool) {
if strings.HasPrefix(s, "0x") || strings.HasPrefix(s, "0X") {
n, ok := newBareIntegerInjector(m, n, 16)(s[2:])
if !ok {
return 0, false
}
return n + 2, true
... | [
-0.8400565385818481,
0.1357063502073288,
0.5109267234802246,
-0.033875297755002975,
-1.568084955215454,
-1.1677522659301758,
-0.0693259984254837,
0.0015764489071443677,
-0.004159168805927038,
-0.6374554634094238,
-0.10732142627239227,
-0.36693012714385986,
-0.5424450635910034,
0.5561530590... |
func PrintHepevt(f *os.File) {
if f == nil {
f = os.Stdout
}
c_fd := C.int(f.Fd())
_ = f.Sync()
c_mode := C.CString("a")
defer C.free(unsafe.Pointer(c_mode))
c_f := C.fdopen(c_fd, c_mode)
C.fflush(c_f)
C.hepevt_print_hepevt(c_f)
C.fflush(c_f)
_ = f.Sync()
} | [
0.6109883785247803,
0.15281309187412262,
1.0260028839111328,
-0.23761078715324402,
0.11858680844306946,
0.5352440476417542,
0.4020535945892334,
-0.17647068202495575,
-0.8693278431892395,
0.3898388147354126,
-0.2507263422012329,
0.2312183678150177,
0.8597275018692017,
0.6734318137168884,
... |
func IsDoublePrecision() bool {
c := C.hepevt_is_double_precision()
if c != C.int(0) {
return true
}
return false
} | [
-0.6426931023597717,
-0.11882934719324112,
0.6710397005081177,
0.8552474975585938,
0.24734199047088623,
0.18452484905719757,
-0.6745101809501648,
-0.33004677295684814,
0.26205891370773315,
0.36763811111450195,
-0.9561798572540283,
-0.5145014524459839,
-0.31757381558418274,
1.10678970813751... |
func CheckHepevtConsistency(f *os.File) bool {
if f == nil {
f = os.Stdout
}
c_fd := C.int(f.Fd())
_ = f.Sync()
c_mode := C.CString("a")
defer C.free(unsafe.Pointer(c_mode))
c_f := C.fdopen(c_fd, c_mode)
C.fflush(c_f)
o := C.hepevt_check_hepevt_consistency(c_f)
C.fflush(c_f)
_ = f.Sync()
if o != C.int... | [
-0.08179330080747604,
-0.4308590888977051,
1.0863977670669556,
-0.19011548161506653,
0.4313349425792694,
0.746378481388092,
0.8781978487968445,
0.672616183757782,
-0.6719269752502441,
0.3181520402431488,
0.22027848660945892,
-0.8663042783737183,
0.6844247579574585,
0.7863950729370117,
-0... |
func ZeroEverything() {
C.hepevt_zero_everything()
} | [
0.304860919713974,
-0.8617604970932007,
0.22652392089366913,
1.0553301572799683,
1.922883152961731,
-0.06357891857624054,
-0.32653412222862244,
0.321004718542099,
-0.9278437495231628,
-0.24678419530391693,
-0.4263152480125427,
0.2471311390399933,
0.500642716884613,
1.8621587753295898,
0.... |
func EventNumber() int {
return int(C.hepevt_event_number())
} | [
0.2707757353782654,
-0.21328669786453247,
0.4063282907009125,
0.5671610832214355,
0.8123188614845276,
-0.21877552568912506,
0.8102107644081116,
1.7573130130767822,
0.1694132685661316,
-0.5309054255485535,
-0.5030142068862915,
0.2917923033237457,
1.1146639585494995,
0.8445156216621399,
1.... |
func NumberEntries() int {
return int(C.hepevt_number_entries())
} | [
0.5017461180686951,
0.831592857837677,
0.15105335414409637,
0.24927890300750732,
0.8375769853591919,
-0.37011295557022095,
0.5302251577377319,
0.9121951460838318,
-0.38205039501190186,
-0.48726704716682434,
-0.9522900581359863,
-0.27088937163352966,
0.5035436153411865,
1.2757498025894165,
... |
func FirstParent(idx int) int {
v := int(C.hepevt_first_parent(C.int(idx+1)))
//println("::firstparent",idx,v)
return v
} | [
0.04761308804154396,
0.5123677253723145,
0.4319445490837097,
-0.4900273382663727,
-0.4776587188243866,
-0.7634062767028809,
0.9848517775535583,
-0.7035529017448425,
0.20976139605045319,
-0.6165251731872559,
0.028749918565154076,
-0.6968628168106079,
-0.025252534076571465,
0.976362645626068... |
func LastParent(idx int) int {
v := int(C.hepevt_last_parent(C.int(idx+1)))
//println("::lastparent ",idx,v)
return v
} | [
-0.6288763880729675,
0.3054869771003723,
0.539764404296875,
-1.0482072830200195,
-0.5190237164497375,
-0.44815436005592346,
0.9625998735427856,
-0.8402791023254395,
0.2530960440635681,
-0.31478482484817505,
0.0465988963842392,
-0.7090252637863159,
-0.48872649669647217,
0.13709516823291779,... |
func FirstChild(idx int) int {
v := int(C.hepevt_first_child(C.int(idx+1)))
//println("::firstchild:",idx,v)
return v
} | [
0.2995307147502899,
0.4923718273639679,
0.460470587015152,
-0.22684243321418762,
-0.5426164865493774,
-0.23877325654029846,
0.6670687198638916,
-0.4102824330329895,
-0.10508143901824951,
-1.2025120258331299,
-0.15909214317798615,
-0.15601003170013428,
0.20182254910469055,
0.455335319042205... |
func LastChild(idx int) int {
v := int(C.hepevt_last_child(C.int(idx+1)))
//println("::lastchild: ",idx,v)
return v
} | [
-0.4304388165473938,
0.330301970243454,
0.5908114910125732,
-0.6693097352981567,
-0.4737353026866913,
-0.060575488954782486,
0.6118707060813904,
-0.36015409231185913,
-0.1272578090429306,
-0.7719587683677673,
-0.5104533433914185,
-0.39337778091430664,
-0.33145418763160706,
-0.2026870250701... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.