text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func (db *DB) NewIterator(ro *ReadOptions) *Iterator {
if db.closed {
panic(ErrDBClosed)
}
it := C.leveldb_create_iterator(db.Ldb, ro.Opt)
return &Iterator{Iter: it}
} | [
-0.018001200631260872,
-0.9657163619995117,
0.40636205673217773,
-0.1402093470096588,
-0.688322126865387,
0.4653264880180359,
-0.26766079664230347,
0.12087347358465195,
-0.4681778848171234,
0.4042181074619293,
1.1088305711746216,
-0.3706945478916168,
-1.0085585117340088,
-0.042348571121692... |
func (db *DB) GetApproximateSizes(ranges []Range) []uint64 {
starts := make([]*C.char, len(ranges))
limits := make([]*C.char, len(ranges))
startLens := make([]C.size_t, len(ranges))
limitLens := make([]C.size_t, len(ranges))
for i, r := range ranges {
starts[i] = C.CString(string(r.Start))
startLens[i] = C.siz... | [
-0.12723395228385925,
-0.647142231464386,
0.8149996995925903,
-1.0567749738693237,
-0.1507009118795395,
-0.37284040451049805,
-0.6179682016372681,
0.1025165468454361,
-0.32269740104675293,
0.74525386095047,
-0.1459369957447052,
0.47620293498039246,
-1.021124005317688,
1.338118076324463,
... |
func (db *DB) PropertyValue(propName string) string {
if db.closed {
panic(ErrDBClosed)
}
cname := C.CString(propName)
value := C.GoString(C.leveldb_property_value(db.Ldb, cname))
C.free(unsafe.Pointer(cname))
return value
} | [
-0.013467990793287754,
-0.4915534555912018,
0.5191388726234436,
-0.3765643835067749,
-0.4946741461753845,
0.33112916350364685,
-0.434268057346344,
-0.6194983124732971,
-0.3634060323238373,
0.2776879668235779,
0.6241284012794495,
0.2812758684158325,
-0.9222825765609741,
-0.49000734090805054... |
func (db *DB) NewSnapshot() *Snapshot {
if db.closed {
panic(ErrDBClosed)
}
return &Snapshot{C.leveldb_create_snapshot(db.Ldb)}
} | [
0.5579034090042114,
-0.3874579071998596,
0.15186619758605957,
-0.04961348697543144,
-1.1021851301193237,
0.3834015130996704,
-0.8729591965675354,
-0.4305301010608673,
-0.5273508429527283,
-0.8576769828796387,
-0.08200807869434357,
-0.6690748333930969,
-0.7314932346343994,
0.381151527166366... |
func (db *DB) ReleaseSnapshot(snap *Snapshot) {
if db.closed {
panic(ErrDBClosed)
}
C.leveldb_release_snapshot(db.Ldb, snap.snap)
} | [
-0.8056267499923706,
0.6297909617424011,
0.2957305610179901,
-0.27897003293037415,
-1.2357620000839233,
0.1918562799692154,
-0.04038999602198601,
-0.18781280517578125,
0.6044214963912964,
-0.6120062470436096,
-0.419422447681427,
-0.7647450566291809,
-0.5938282012939453,
0.6765104532241821,... |
func (db *DB) CompactRange(r Range) {
if db.closed {
panic(ErrDBClosed)
}
var start, limit *C.char
if len(r.Start) != 0 {
start = (*C.char)(unsafe.Pointer(&r.Start[0]))
}
if len(r.Limit) != 0 {
limit = (*C.char)(unsafe.Pointer(&r.Limit[0]))
}
C.leveldb_compact_range(
db.Ldb, start, C.size_t(len(r.Start... | [
0.44764718413352966,
-0.6621928215026855,
0.6585414409637451,
-1.0513310432434082,
-0.5406476855278015,
-0.05580990016460419,
0.04288600757718086,
0.12671016156673431,
-0.45130690932273865,
0.4066334366798401,
-0.08426566421985626,
0.5094475746154785,
-0.9139103293418884,
-0.08283203095197... |
func (db *DB) Close() {
if db.closed {
return
}
db.closed = true
C.leveldb_close(db.Ldb)
} | [
0.19808684289455414,
0.20745988190174103,
0.3674847185611725,
-0.15362519025802612,
0.10595269501209259,
1.7016053199768066,
-0.2108181118965149,
-0.2041957676410675,
-1.082600474357605,
-0.772113561630249,
-0.13718023896217346,
0.1333627998828888,
-2.1999638080596924,
1.8001961708068848,
... |
func putPixel(screen []byte, color color, x int, y int) {
screenX := (windowWidth / 2) + x
screenY := (windowHeight / 2) - y - 1
base := (screenY*windowWidth + screenX) * 4
screen[base] = color.r
screen[base+1] = color.g
screen[base+2] = color.b
screen[base+3] = 0xFF
screen[0] = 0xFF
} | [
-0.5656607747077942,
0.2398228645324707,
0.5450724959373474,
-1.2366398572921753,
-0.13061796128749847,
0.7160964012145996,
0.0072649093344807625,
-1.0391390323638916,
0.5490033626556396,
0.9573853611946106,
-0.2334667444229126,
0.7734977602958679,
-1.000968098640442,
0.3158259689807892,
... |
func interpolate(iStart int, dStart float64, iEnd int, dEnd float64) []float64 {
// If there is only one point
if iStart == iEnd {
return []float64{dStart}
}
values := make([]float64, (iEnd-iStart)+1)
slope := float64(dEnd-dStart) / float64(iEnd-iStart)
d := dStart
for i := iStart; i <= iEnd; i++ {
values... | [
-0.3937540054321289,
0.7035073041915894,
0.654247522354126,
0.28396400809288025,
0.8584209680557251,
-0.22583834826946259,
-0.3415321111679077,
-0.24242712557315826,
-0.35876038670539856,
0.357204407453537,
1.0120298862457275,
-0.25631558895111084,
-0.17264783382415771,
0.1943720579147339,... |
func (v *Vault) AppRoleAuth(roleID, secretID string) error {
var secret *vaultapi.Secret
var err error
v.logger.Info("Starting AppRole authentication")
authData := map[string]interface{}{"role_id": roleID, "secret_id": secretID}
if secret, err = v.client.Logical().Write("auth/approle/login", authData); err != nil... | [
0.31860125064849854,
-0.7486639022827148,
0.6277905106544495,
-0.5670472979545593,
0.5758983492851257,
-0.3940103352069855,
-1.1329143047332764,
-0.7142796516418457,
0.22200721502304077,
0.5696989297866821,
-0.054629623889923096,
0.5796381831169128,
0.5949451327323914,
0.1633475422859192,
... |
func (v *Vault) TokenAuth(token string) {
v.token = token
v.setHeaders()
} | [
-0.18454518914222717,
-0.48389047384262085,
0.01878519169986248,
0.17225739359855652,
-0.024469980970025063,
-0.45189765095710754,
-0.047831371426582336,
0.4361312985420227,
0.026723777875304222,
-0.6271570920944214,
-0.864855170249939,
0.5900888442993164,
0.740492582321167,
-0.32374799251... |
func (v *Vault) Read(path, key string) ([]byte, error) {
var secret *vaultapi.Secret
var err error
v.logger.WithFields(log.Fields{"path": path, "key": key}).
Infof("Reading data from Vault path")
if secret, err = v.client.Logical().Read(path); err != nil {
return nil, err
}
if secret == nil || secret.Data =... | [
-0.0508478507399559,
-0.35378220677375793,
0.6525083780288696,
0.3472420871257782,
-0.43833571672439575,
0.061974022537469864,
-1.2827938795089722,
-0.5961082577705383,
-0.12980984151363373,
0.48619866371154785,
0.24752911925315857,
0.6392167806625366,
-0.6131118535995483,
-0.4995510876178... |
func (v *Vault) Write(path string, data map[string]interface{}) error {
var err error
v.logger.WithField("path", path).Infof("Writing data to Vault path")
// wrapping up data for kv-v2
if strings.HasPrefix(path, "secret/data") {
v.logger.Info("Using V2 API style, adding 'data' as key")
data = map[string]inter... | [
-0.5524507761001587,
-0.5703941583633423,
0.44926711916923523,
0.28740212321281433,
0.7292810082435608,
0.6100268959999084,
-1.2528510093688965,
0.38052788376808167,
-0.229728102684021,
0.5555669069290161,
-0.07609671354293823,
0.46523037552833557,
-0.008059673011302948,
0.1948969662189483... |
func (v *Vault) setHeaders() {
headers := map[string][]string{"X-Vault-Token": {v.token}}
v.client.SetHeaders(headers)
v.client.SetToken(v.token)
} | [
0.21434755623340607,
-0.3103785514831543,
0.23851284384727478,
-0.3751640319824219,
0.44629085063934326,
-0.5185977220535278,
-1.8173500299453735,
-0.46474701166152954,
-0.3584575653076172,
0.1752028465270996,
-0.6974680423736572,
0.22472397983074188,
-0.051112446933984756,
-0.790872871875... |
func (v *Vault) extractKey(payload map[string]interface{}, key string) ([]byte, error) {
var data string
var exists bool
if _, exists = payload["data"]; exists {
v.logger.Info("Using V2 API style, extracting 'data' as key")
payload = payload["data"].(map[string]interface{})
}
if data, exists = payload[key].(s... | [
-0.4004901051521301,
-0.14024382829666138,
0.7280382513999939,
0.30353954434394836,
-0.283198744058609,
-0.48270198702812195,
-1.22545325756073,
-0.6447298526763916,
0.09044284373521805,
1.1966662406921387,
0.161579892039299,
0.03785663843154907,
-0.5715799927711487,
-0.11029686778783798,
... |
func (v *Vault) composePath(data SecretData, vaultPath string) string {
if !data.NameAsSubPath {
return vaultPath
}
return path.Join(vaultPath, data.Name)
} | [
-0.09509828686714172,
-0.765622079372406,
0.27625277638435364,
0.6619653105735779,
0.06484732031822205,
0.8973954319953918,
-0.31298595666885376,
-0.7224097847938538,
-0.17302143573760986,
0.4993405342102051,
0.34198203682899475,
-0.437044620513916,
-0.218295618891716,
-0.2853603661060333,... |
func NewVault(addr string) (*Vault, error) {
var err error
vault := &Vault{logger: log.WithFields(log.Fields{"type": "Vault"})}
vault.logger.WithField("addr", addr).Info("Instantiating Vault API client")
if vault.client, err = vaultapi.NewClient(&vaultapi.Config{Address: addr}); err != nil {
return nil, err
}
... | [
0.7727633714675903,
-0.24623329937458038,
0.3048151135444641,
0.22893072664737701,
-0.7443939447402954,
0.0192217119038105,
0.14078214764595032,
-0.29305899143218994,
0.8244596123695374,
-0.11283241957426071,
-0.32156723737716675,
1.2582554817199707,
0.20784716308116913,
0.2568241357803345... |
func (pmf PMF) Incr(event Event, num Probability) {
pmf[event] += num
} | [
0.40425071120262146,
-0.11505234241485596,
0.5266128182411194,
-0.10645809024572372,
-0.7300308346748352,
0.3713529407978058,
-0.4594206213951111,
1.0965509414672852,
0.26478713750839233,
-0.423889696598053,
-0.022939883172512054,
0.15665985643863678,
-0.9061844944953918,
-0.05056488886475... |
func (pmf PMF) Sum() Probability {
var sum Probability
for _, freq := range pmf {
sum += freq
}
return sum
} | [
-0.9691774249076843,
-0.37135767936706543,
0.3787687122821808,
-0.5399559736251831,
0.44082650542259216,
-0.17956289649009705,
0.2951802611351013,
-0.06900058686733246,
0.1184832826256752,
0.0910051092505455,
-0.3202733099460602,
-0.10446066409349442,
-1.3800380229949951,
-0.48445922136306... |
func (pmf PMF) Normalize() {
sum := pmf.Sum()
// Divide each event probability/frequency by sum to normalize
for ev, freq := range pmf {
pmf[ev] = freq / sum
}
} | [
0.2144220769405365,
-0.25630244612693787,
0.670491099357605,
-0.6164143681526184,
0.5942599177360535,
-0.5745052695274353,
0.1732138842344284,
0.8596838712692261,
0.3331742286682129,
-0.3100135326385498,
0.19481424987316132,
-0.4492473304271698,
-1.743806004524231,
-0.017002098262310028,
... |
func (pmf PMF) IsNormalized() bool {
delta := math.Abs(1.0 - float64(pmf.Sum()))
return delta <= maxDelta
} | [
-0.1770491898059845,
0.11649943143129349,
0.5547786951065063,
0.13843637704849243,
-0.2534663677215576,
-0.08692065626382828,
-0.30855464935302734,
0.3908780515193939,
0.5214426517486572,
-0.11677107214927673,
-0.625789225101471,
-0.39621400833129883,
-1.099597692489624,
-0.054293263703584... |
func (pmf PMF) Mult(event Event, p Probability) {
pmf[event] *= p
} | [
-0.3158220648765564,
-0.163614422082901,
0.5992526412010193,
-0.9169951677322388,
0.13191664218902588,
0.4903220236301422,
-1.3214261531829834,
-0.016847852617502213,
-0.035411253571510315,
-0.11782418191432953,
-0.4145108759403229,
-0.08837366104125977,
-0.8333554267883301,
-0.34524673223... |
func (pmf PMF) String() string {
str := "PMF ["
for ev, prob := range pmf {
str += fmt.Sprintf("%s: %.3f\n", ev, prob)
}
str += "]"
return str
} | [
0.19858387112617493,
-1.2392908334732056,
0.47891485691070557,
-1.1131147146224976,
-0.020898157730698586,
0.5592128038406372,
-0.6460331082344055,
-0.29947248101234436,
-0.053531378507614136,
0.15985505282878876,
-0.2561391294002533,
0.3467099964618683,
-1.2327656745910645,
-0.36221319437... |
func UnmarshalPoint(s string) (p orb.Point, srid int, err error) {
s, srid, err = splitEWKT(s)
if err != nil {
return orb.Point{}, 0, wkt.ErrWrap(err, errInvalidSRID)
}
p, err = wkt2.UnmarshalPoint(s)
return p, srid, err
} | [
0.8227010369300842,
-0.4203186631202698,
0.5959007740020752,
-0.3207523226737976,
-1.4188746213912964,
-0.06794583052396774,
0.20483407378196716,
0.963421106338501,
0.6067555546760559,
0.2872750163078308,
0.6384120583534241,
0.23045878112316132,
-0.1406181901693344,
-0.31298112869262695,
... |
func UnmarshalMultiPoint(s string) (p orb.MultiPoint, srid int, err error) {
s, srid, err = splitEWKT(s)
if err != nil {
return orb.MultiPoint{}, 0, wkt.ErrWrap(err, errInvalidSRID)
}
p, err = wkt2.UnmarshalMultiPoint(s)
return p, srid, err
} | [
0.5618338584899902,
-0.5320886373519897,
0.5082464814186096,
-0.17427104711532593,
-1.9741184711456299,
-0.3743467926979065,
-0.24713775515556335,
1.1072125434875488,
1.1364691257476807,
0.7029600739479065,
-0.16889742016792297,
-0.02504808083176613,
-0.006033654324710369,
-0.2661476731300... |
func UnmarshalLineString(s string) (p orb.LineString, srid int, err error) {
s, srid, err = splitEWKT(s)
if err != nil {
return orb.LineString{}, 0, wkt.ErrWrap(err, errInvalidSRID)
}
p, err = wkt2.UnmarshalLineString(s)
return p, srid, err
} | [
0.6056075692176819,
-1.0308234691619873,
0.6147246956825256,
-0.8767917156219482,
-1.3592838048934937,
0.12116587907075882,
0.02090054750442505,
0.6460224986076355,
0.7051112651824951,
-0.22496889531612396,
-0.13314136862754822,
0.15558819472789764,
0.2571992874145508,
-0.4268482029438019,... |
func UnmarshalMultiLineString(s string) (p orb.MultiLineString, srid int, err error) {
s, srid, err = splitEWKT(s)
if err != nil {
return orb.MultiLineString{}, 0, wkt.ErrWrap(err, errInvalidSRID)
}
p, err = wkt2.UnmarshalMultiLineString(s)
return p, srid, err
} | [
0.5841346383094788,
-0.7315822243690491,
0.6008777618408203,
-0.5632629990577698,
-1.256250262260437,
-0.4955909550189972,
-0.6816937923431396,
0.851476788520813,
0.545781672000885,
-0.030766254290938377,
0.46302640438079834,
-0.06134844198822975,
0.4541446566581726,
-0.19510501623153687,
... |
func UnmarshalPolygon(s string) (p orb.Polygon, srid int, err error) {
s, srid, err = splitEWKT(s)
if err != nil {
return orb.Polygon{}, 0, wkt.ErrWrap(err, errInvalidSRID)
}
p, err = wkt2.UnmarshalPolygon(s)
return p, srid, err
} | [
0.47346770763397217,
-0.7043947577476501,
0.6933855414390564,
-1.1104317903518677,
-1.34023916721344,
-0.09328026324510574,
-0.007716671098023653,
0.9758275747299194,
0.8715396523475647,
-0.19392827153205872,
-0.5232741236686707,
0.1884995847940445,
0.44645148515701294,
-0.408267080783844,... |
func UnmarshalMultiPolygon(s string) (p orb.MultiPolygon, srid int, err error) {
s, srid, err = splitEWKT(s)
if err != nil {
return orb.MultiPolygon{}, 0, wkt.ErrWrap(err, errInvalidSRID)
}
p, err = wkt2.UnmarshalMultiPolygon(s)
return p, srid, err
} | [
0.20578418672084808,
-0.7298250198364258,
0.6058435440063477,
-0.8121208548545837,
-1.7462188005447388,
-0.21053601801395416,
-0.6724635362625122,
0.8432042002677917,
1.1967475414276123,
0.1443333476781845,
-0.5499823689460754,
0.18236255645751953,
0.45043855905532837,
-0.22928684949874878... |
func UnmarshalCollection(s string) (p orb.Collection, srid int, err error) {
s, srid, err = splitEWKT(s)
if err != nil {
return orb.Collection{}, 0, wkt.ErrWrap(err, errInvalidSRID)
}
p, err = wkt2.UnmarshalCollection(s)
return p, srid, err
} | [
0.48153620958328247,
-0.4058021306991577,
0.6926819086074829,
-0.8707959651947021,
-1.3927642107009888,
-0.445416122674942,
0.8314743638038635,
0.4762154817581177,
0.2932514548301697,
0.22571326792240143,
0.18735480308532715,
0.44146639108657837,
0.15123002231121063,
0.22309806942939758,
... |
func splitEWKT(s string) (wkt string, srid int, err error) {
wkt = strings.ToUpper(strings.Trim(s, " "))
rgxp := regexp.MustCompile("^SRID=(\\d+);")
match := rgxp.FindStringSubmatch(s)
if match != nil {
wkt = strings.Replace(wkt, match[0], "", -1)
srid, err = strconv.Atoi(match[1])
}
return wkt, srid, err
} | [
-0.5485076904296875,
-0.576129138469696,
0.7127346396446228,
-0.7116789221763611,
-1.1218430995941162,
-0.6560721397399902,
0.6303791403770447,
0.8371692895889282,
0.6182291507720947,
-0.0032104351557791233,
-0.3241977393627167,
0.514240026473999,
-0.28840625286102295,
0.5693649649620056,
... |
func (*Engine) Descriptor() ([]byte, []int) {
return file_proto_engine_proto_rawDescGZIP(), []int{0}
} | [
-1.0260695219039917,
0.11775761097669601,
0.40323013067245483,
-0.5121055245399475,
0.3529275953769684,
-0.0008718190365470946,
0.2966708242893219,
0.6936713457107544,
-1.2011409997940063,
-0.25573796033859253,
-0.034423910081386566,
0.10227242857217789,
-0.0002330904535483569,
1.115373015... |
func (*EngineInBuildInfo) Descriptor() ([]byte, []int) {
return file_proto_engine_proto_rawDescGZIP(), []int{1}
} | [
-0.5584965944290161,
-0.6417639255523682,
0.24502243101596832,
-0.4928818643093109,
0.048945918679237366,
0.28434237837791443,
0.3826860785484314,
0.688610315322876,
-1.5073025226593018,
-0.21352815628051758,
-0.41988605260849,
0.05341225862503052,
-0.4985976219177246,
0.6241902112960815,
... |
func (*CreateRequest) Descriptor() ([]byte, []int) {
return file_proto_engine_proto_rawDescGZIP(), []int{2}
} | [
-0.3810598850250244,
0.4311743676662445,
0.6631084084510803,
-0.12285250425338745,
0.561671257019043,
-0.05586590990424156,
-0.0923985168337822,
0.0951828807592392,
-0.6266354322433472,
0.34603747725486755,
-0.1149236410856247,
-0.3764682710170746,
-0.13200217485427856,
0.8927545547485352,... |
func (*CreateResponse) Descriptor() ([]byte, []int) {
return file_proto_engine_proto_rawDescGZIP(), []int{3}
} | [
0.020972995087504387,
0.38892725110054016,
0.4709821045398712,
0.08168301731348038,
1.0120466947555542,
-0.36751875281333923,
0.589226484298706,
-0.25104647874832153,
-0.44501790404319763,
0.17070764303207397,
-0.6210991740226746,
-0.7594020366668701,
-0.8308971524238586,
0.490563839673995... |
func (*DescribeRequest) Descriptor() ([]byte, []int) {
return file_proto_engine_proto_rawDescGZIP(), []int{4}
} | [
-0.8254356384277344,
1.1008741855621338,
0.679218053817749,
-0.10873030126094818,
0.12094235420227051,
0.20548945665359497,
-0.12112244963645935,
-0.08313432335853577,
-0.16705630719661713,
0.10504013299942017,
0.13106679916381836,
0.44764846563339233,
-0.4689341187477112,
0.69928950071334... |
func (*DescribeResponse) Descriptor() ([]byte, []int) {
return file_proto_engine_proto_rawDescGZIP(), []int{5}
} | [
-0.26101773977279663,
0.576423168182373,
0.5710201263427734,
-0.24620448052883148,
0.3868638575077057,
-0.593657374382019,
0.48698797821998596,
-0.2561209499835968,
0.1560627520084381,
0.011114733293652534,
-0.7372912168502808,
-0.2360515594482422,
-1.2949386835098267,
-0.31591111421585083... |
func (*RegisterRequest) Descriptor() ([]byte, []int) {
return file_proto_engine_proto_rawDescGZIP(), []int{6}
} | [
-1.0820425748825073,
0.688978374004364,
0.5269119143486023,
0.08862151950597763,
0.506106972694397,
-0.5726295113563538,
-0.10798721760511398,
0.6578333377838135,
-0.44827955961227417,
-0.4418867826461792,
0.14168772101402283,
0.4094688296318054,
0.11931128799915314,
1.0373759269714355,
... |
func (*RegisterResponse) Descriptor() ([]byte, []int) {
return file_proto_engine_proto_rawDescGZIP(), []int{7}
} | [
-0.33718910813331604,
0.7170078158378601,
0.3317239284515381,
0.13011038303375244,
0.9756106734275818,
-0.9432576894760132,
0.6236665844917297,
0.3976171910762787,
-0.1714688092470169,
-0.3804226219654083,
-0.5215573310852051,
-0.3971668779850006,
-0.6865115761756897,
0.2609018087387085,
... |
func (*DeregisterRequest) Descriptor() ([]byte, []int) {
return file_proto_engine_proto_rawDescGZIP(), []int{8}
} | [
-0.5817699432373047,
0.10562266409397125,
0.6199214458465576,
-0.01013198308646679,
0.5496358871459961,
-0.8078470230102539,
0.8786404132843018,
1.1793535947799683,
-0.27856120467185974,
-0.8470146656036377,
-0.09148339182138443,
0.9572389125823975,
-0.43895673751831055,
0.8172840476036072... |
func (*DeregisterResponse) Descriptor() ([]byte, []int) {
return file_proto_engine_proto_rawDescGZIP(), []int{9}
} | [
0.06761480122804642,
-0.18051877617835999,
0.2548217177391052,
-0.10719075053930283,
1.0082590579986572,
-1.0542306900024414,
1.1608484983444214,
0.5512101650238037,
0.06169842928647995,
-0.7399294972419739,
-0.7492900490760803,
0.19062398374080658,
-1.4333595037460327,
-0.3815300762653351... |
func (*ModifyRequest) Descriptor() ([]byte, []int) {
return file_proto_engine_proto_rawDescGZIP(), []int{10}
} | [
-1.047288417816162,
0.48891276121139526,
0.6720907092094421,
-0.45403140783309937,
0.47825342416763306,
-0.30544376373291016,
-0.007063222583383322,
0.5192518830299377,
-0.028089255094528198,
-0.2968575954437256,
0.2140006721019745,
0.368818461894989,
-0.39382168650627136,
1.18925333023071... |
func (*ModifyResponse) Descriptor() ([]byte, []int) {
return file_proto_engine_proto_rawDescGZIP(), []int{11}
} | [
-0.6074709892272949,
0.07287280261516571,
0.5205520987510681,
-0.49637579917907715,
0.7941729426383972,
-0.6826525926589966,
0.5439561009407043,
0.28681597113609314,
0.6075147390365601,
-0.5642702579498291,
-0.28212863206863403,
-0.40179964900016785,
-1.086796760559082,
0.06643890589475632... |
func (*DeleteRequest) Descriptor() ([]byte, []int) {
return file_proto_engine_proto_rawDescGZIP(), []int{12}
} | [
-0.9107580184936523,
0.3143567740917206,
0.5578275918960571,
0.04144402965903282,
0.023103991523385048,
-0.26255106925964355,
-0.039445661008358,
0.5673698782920837,
0.2589617967605591,
-0.7383695244789124,
-0.02336413972079754,
0.6292911171913147,
-0.007725321222096682,
1.0342390537261963... |
func (*DeleteResponse) Descriptor() ([]byte, []int) {
return file_proto_engine_proto_rawDescGZIP(), []int{13}
} | [
-0.4017355144023895,
0.29392871260643005,
0.2458248883485794,
0.09862244129180908,
0.29169803857803345,
-1.0954225063323975,
0.32232245802879333,
0.20235812664031982,
0.7043008208274841,
-1.0166904926300049,
-0.6603192090988159,
-0.16181428730487823,
-0.9630593061447144,
-0.175239399075508... |
func (i *instrumentor) tracingBegin(ctx context.Context, eventJSON []byte) (context.Context, trace.Span) {
// Add trace id to context
mc := i.configuration.EventToCarrier(eventJSON)
ctx = i.configuration.Propagator.Extract(ctx, mc)
var span trace.Span
spanName := os.Getenv("AWS_LAMBDA_FUNCTION_NAME")
var attrib... | [
0.34541070461273193,
-0.07114177197217941,
0.7602415680885315,
-1.0044622421264648,
-0.294064462184906,
0.28747451305389404,
0.14538313448429108,
-0.20167024433612823,
0.8998106718063354,
-0.047259218990802765,
-0.12548938393592834,
0.38062670826911926,
0.6963793039321899,
0.53238970041275... |
func (i *instrumentor) tracingEnd(ctx context.Context, span trace.Span) {
span.End()
// force flush any tracing data since lambda may freeze
err := i.configuration.Flusher.ForceFlush(ctx)
if err != nil {
errorLogger.Println("failed to force a flush, lambda may freeze before instrumentation exported: ", err)
}
} | [
0.07935313135385513,
0.9210647344589233,
0.3374856412410736,
-0.7495173215866089,
0.3918040990829468,
1.192054271697998,
0.36438271403312683,
-0.4712124466896057,
0.3599736988544464,
0.4646921455860138,
-0.6377158164978027,
0.3717789053916931,
-0.15393321216106415,
0.5745885968208313,
0.... |
func mostFreeSubnet(subnets []*ec2.Subnet) *ec2.Subnet {
sortedSubnets := subnets
sort.Sort(subnetsSort(sortedSubnets))
return sortedSubnets[len(sortedSubnets)-1]
} | [
0.5432612895965576,
0.550792932510376,
0.5293604731559753,
0.7722205519676208,
-0.8309077024459839,
0.2808283567428589,
-0.8843623995780945,
-1.547715663909912,
0.5066229104995728,
-0.46801841259002686,
0.5698680281639099,
0.33455929160118103,
-0.22871512174606323,
0.5179200768470764,
-0... |
func (e Aes256CtsHmacSha384192) VerifyIntegrity(protocolKey, ct, pt []byte, usage uint32) bool {
// We don't need ib just there for the interface
return rfc8009.VerifyIntegrity(protocolKey, ct, usage, e)
} | [
0.1780960112810135,
0.5900440216064453,
0.16416354477405548,
0.5206888318061829,
0.3251538872718811,
0.14113973081111908,
0.25581371784210205,
-0.7901865243911743,
0.26178571581840515,
0.28421929478645325,
-0.9294078946113586,
-0.43924379348754883,
-1.5442206859588623,
0.8532831072807312,
... |
func ApplyHamming(x [][]float64) {
segments, size := len(x), len(x[0])
hamming := window.Hamming(size)
for i := 0; i < segments; i++ {
for j := 0; j < size; j++ {
x[i][j] = x[i][j] * hamming[j]
}
}
} | [
0.5000624060630798,
0.5299229025840759,
0.7859821915626526,
0.4275018870830536,
-0.012033743783831596,
0.32763803005218506,
0.8279271721839905,
0.715709924697876,
1.179355502128601,
0.42116862535476685,
0.009314856491982937,
-0.019063230603933334,
-0.30210089683532715,
0.9896647930145264,
... |
func (f *FileLock) GetLock(lockFile string) bool {
f.f_lock = flock.New(lockFile)
is_locked, err := f.f_lock.TryLock()
f.is_locked = is_locked
if err != nil { // some OS error attempting to obtain a file lock
log.Errorf("unable to obtain a lock on %s\n", lockFile)
return false
}
if !f.is_locked { // another ... | [
0.2233738899230957,
0.2917611598968506,
0.6251089572906494,
0.7132576704025269,
0.7950782179832458,
-0.33131030201911926,
0.5070047974586487,
-0.2677875757217407,
-0.6703905463218689,
-1.0964527130126953,
0.04577857255935669,
0.08026115596294403,
-0.5007855296134949,
0.21063727140426636,
... |
func (f *FileLock) Unlock() {
if f.is_locked {
f.f_lock.Unlock()
}
} | [
-0.2281211018562317,
0.38796883821487427,
0.32411012053489685,
0.7237119674682617,
0.8588069081306458,
-0.23656979203224182,
0.49166935682296753,
0.9079743027687073,
-1.0611521005630493,
-1.0243713855743408,
0.4134836494922638,
0.17905350029468536,
0.19547495245933533,
0.11479194462299347,... |
func ServiceStart(service string, cmd string) (bool, error) {
log.Infof("ServiceStart called for '%s'\n", service)
svcStatus, pid, err := GetServiceStatus(service)
if err != nil {
return false, errors.New("Could not get status for '" + service + "' : " + err.Error())
} else if svcStatus == SvcRunning && cmd == "s... | [
-0.5362293124198914,
-0.12115438282489777,
0.7911354303359985,
0.14359790086746216,
-0.1606060415506363,
0.14842180907726288,
0.14695154130458832,
0.5310996770858765,
-0.15895572304725647,
0.28719431161880493,
0.10620700567960739,
0.4013559818267822,
-0.8723999857902527,
0.3588686585426330... |
func PackageInfo(cmdstr string, name string) ([]string, error) {
var result []string
switch cmdstr {
case "cfg-files": // returns a list of the package configuration files.
output, rc, err := ExecCommand("/bin/rpm", "-q", "-c", name)
if rc == 1 { // rpm package for 'name' was not found.
return nil, nil
} el... | [
0.282821923494339,
-0.12904253602027893,
0.730019748210907,
-0.0855596587061882,
-0.3210194706916809,
-0.9229212999343872,
-0.308477520942688,
-0.4057796597480774,
-0.60505610704422,
0.07296180725097656,
0.09892010688781738,
-0.8808918595314026,
-0.06058570742607117,
0.6797735095024109,
... |
func (suite *FeeTestSuite) createCdps() {
// create 2 accounts in the state and give them some coins
// create two private key pair addresses
_, addrs := app.GeneratePrivKeyAddressPairs(2)
ak := suite.app.GetAccountKeeper()
// setup the first account
acc := ak.NewAccountWithAddress(suite.ctx, addrs[0])
acc.SetCo... | [
0.44573768973350525,
0.7595965266227722,
0.7949221134185791,
-0.37617695331573486,
0.5822612047195435,
-0.008532880805432796,
0.1986875981092453,
-0.19387707114219666,
0.4750920832157135,
0.035085078328847885,
0.30261874198913574,
-0.43562865257263184,
-0.09477746486663818,
0.1152581945061... |
func (suite *FeeTestSuite) TestUpdateFees() {
// this helper function creates two CDPs with id 1 and 2 respectively, each with zero fees
suite.createCdps()
// move the context forward in time so that cdps will have fees accumulate if CalculateFees is called
// note - time must be moved forward by a sufficient amou... | [
0.1445191502571106,
0.019169723615050316,
0.7843812704086304,
0.07850416749715805,
0.5645438432693481,
-0.1876552700996399,
0.6502665281295776,
-0.0022197451908141375,
-0.09434820711612701,
-0.20446781814098358,
0.2096441090106964,
0.04007699713110924,
-0.10597576946020126,
0.8433325290679... |
func NewStaticCredential(token azcore.AccessToken) *StaticCredential {
return &StaticCredential{
token: token,
}
} | [
0.1917365938425064,
-0.902592658996582,
-0.2079552859067917,
0.2591533064842224,
-0.7010942697525024,
0.26259490847587585,
-0.45196858048439026,
-0.34555166959762573,
-0.27723228931427,
0.6280443072319031,
-1.2319817543029785,
1.5310020446777344,
-0.06974025815725327,
-0.013851109892129898... |
func (c *StaticCredential) GetToken(ctx context.Context, options policy.TokenRequestOptions) (azcore.AccessToken, error) {
return c.token, nil
} | [
-0.12225347757339478,
-0.21897649765014648,
0.39705491065979004,
1.1538784503936768,
0.7297550439834595,
0.7244926691055298,
0.9664324522018433,
0.1495605707168579,
0.4971228837966919,
-0.993741512298584,
0.5485365390777588,
1.7607191801071167,
0.5814647078514099,
-0.18148759007453918,
0... |
func run(name string, b *testing.B, count int, fn func(buf *Buffer, r *Reader)) {
b.Run(name, func(b *testing.B) {
buf := NewBuffer(count * 20)
r := NewReader()
b.ReportAllocs()
b.ResetTimer()
for n := 0; n < b.N; n++ {
buf.Reset("test")
fn(buf, r)
}
})
} | [
0.5006183981895447,
-0.014888172037899494,
0.5225119590759277,
-0.1958562135696411,
0.29942330718040466,
-0.29795557260513306,
0.8998103737831116,
-0.037696149200201035,
-0.2299092561006546,
-0.8672993183135986,
-0.5684762597084045,
-0.25175222754478455,
-0.6654484272003174,
0.086710929870... |
func NewChannel(id string, createdAt string, updatedAt string, resourceOwnerId string, name string, ) *Channel {
this := Channel{}
this.Id = id
this.CreatedAt = createdAt
this.UpdatedAt = updatedAt
this.ResourceOwnerId = resourceOwnerId
this.Name = name
return &this
} | [
-0.4389360249042511,
-0.8732597827911377,
0.39274588227272034,
0.22970455884933472,
-0.034906741231679916,
0.5593388080596924,
-0.3561062812805176,
-0.6521819233894348,
-0.28327059745788574,
-0.9465621113777161,
0.372071236371994,
1.2646890878677368,
0.12411866337060928,
-0.136077657341957... |
func NewChannelWithDefaults() *Channel {
this := Channel{}
return &this
} | [
-0.04335080087184906,
-0.42596060037612915,
-0.2800990045070648,
0.6446210145950317,
0.5637791752815247,
-0.23606157302856445,
-0.7965511679649353,
-1.0789070129394531,
0.02911192551255226,
-1.4476875066757202,
-0.4973796308040619,
-0.35828226804733276,
-0.5844467878341675,
0.7043979167938... |
func (o *Channel) GetId() string {
if o == nil {
var ret string
return ret
}
return o.Id
} | [
1.1338084936141968,
-0.401246577501297,
0.08353584259748459,
0.3018125593662262,
0.5784996747970581,
0.6953491568565369,
0.5455232262611389,
-0.4487417936325073,
1.361065149307251,
-0.2484995573759079,
0.09816226363182068,
-0.2003091722726822,
-0.6731941103935242,
-0.0024415634106844664,
... |
func (o *Channel) GetIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Id, true
} | [
-0.6322972774505615,
0.7247821688652039,
0.5579923391342163,
0.7644472122192383,
0.5486863255500793,
0.00834017712622881,
0.6054071187973022,
0.3739975094795227,
0.7166878581047058,
-0.12827692925930023,
-1.3061069250106812,
-0.2645564675331116,
-0.2562372386455536,
-0.03229070082306862,
... |
func (o *Channel) SetId(v string) {
o.Id = v
} | [
0.4448161721229553,
-0.42328473925590515,
-0.15162305533885956,
-0.6105315089225769,
0.23770785331726074,
0.8058292269706726,
-0.4206416606903076,
0.03626546263694763,
0.8848865628242493,
0.3833412826061249,
-0.6291109919548035,
0.7292218208312988,
-0.6417188048362732,
0.019767064601182938... |
func (o *Channel) GetCreatedAt() string {
if o == nil {
var ret string
return ret
}
return o.CreatedAt
} | [
0.6697432994842529,
-0.25692275166511536,
-0.24936668574810028,
-0.6586573123931885,
-0.005439302418380976,
0.46947023272514343,
-0.23936700820922852,
-0.9227761030197144,
0.05868583172559738,
-1.4243706464767456,
0.2716338634490967,
-0.5017889142036438,
0.2561723291873932,
0.2067003399133... |
func (o *Channel) GetCreatedAtOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.CreatedAt, true
} | [
0.05681143328547478,
0.43423551321029663,
0.5432246923446655,
0.4359745383262634,
0.668770968914032,
0.7974988222122192,
0.4047700762748718,
-0.2925114929676056,
-0.928083598613739,
-0.9592652320861816,
-0.8000726699829102,
-0.2744072675704956,
1.2280035018920898,
0.7223130464553833,
-0.... |
func (o *Channel) SetCreatedAt(v string) {
o.CreatedAt = v
} | [
0.5237038135528564,
-0.5722139477729797,
-0.3018266260623932,
-1.6170717477798462,
-0.5246804356575012,
0.3436695337295532,
-0.5544525384902954,
-1.0275131464004517,
-0.6671019196510315,
-0.6471285820007324,
-0.34496283531188965,
-0.21722760796546936,
0.10237104445695877,
-0.13332584500312... |
func (o *Channel) GetUpdatedAt() string {
if o == nil {
var ret string
return ret
}
return o.UpdatedAt
} | [
0.37610605359077454,
-0.97380131483078,
0.2580784559249878,
-0.6496700644493103,
-0.5014461874961853,
1.0282766819000244,
-0.16578175127506256,
-0.7598682045936584,
0.16203945875167847,
-0.7041018605232239,
0.2058931589126587,
-0.28023773431777954,
0.48534849286079407,
-0.324883371591568,
... |
func (o *Channel) GetUpdatedAtOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.UpdatedAt, true
} | [
-0.8358869552612305,
-0.22861231863498688,
0.9930732250213623,
0.3111514151096344,
-0.9202128648757935,
0.699200451374054,
-0.19311363995075226,
0.6202496886253357,
0.11157471686601639,
-0.2690737545490265,
-1.8698675632476807,
0.3900420665740967,
1.0384870767593384,
0.16455286741256714,
... |
func (o *Channel) SetUpdatedAt(v string) {
o.UpdatedAt = v
} | [
0.38182640075683594,
-0.8581943511962891,
0.23732174932956696,
-1.6940391063690186,
-0.94371497631073,
0.9588543772697449,
-0.549757182598114,
-0.2734927833080292,
-0.110268235206604,
-0.0398714654147625,
-0.35061657428741455,
0.11011029779911041,
0.47250160574913025,
-0.36067259311676025,... |
func (o *Channel) GetResourceOwnerId() string {
if o == nil {
var ret string
return ret
}
return o.ResourceOwnerId
} | [
0.3406926095485687,
-0.48933345079421997,
-0.09270104765892029,
0.06343264132738113,
-0.43298348784446716,
0.653220534324646,
1.0219132900238037,
0.043448857963085175,
0.6115396022796631,
-0.8353580832481384,
0.3109673261642456,
-0.6140387058258057,
-0.35446783900260925,
0.648139476776123,... |
func (o *Channel) GetResourceOwnerIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.ResourceOwnerId, true
} | [
0.02166021056473255,
0.450883150100708,
0.5035613775253296,
0.28398704528808594,
0.025920860469341278,
0.3346918821334839,
1.4279675483703613,
0.4566671848297119,
0.05033890902996063,
-0.5965364575386047,
-0.6143969893455505,
-1.2567814588546753,
0.6018962860107422,
0.4041042625904083,
-... |
func (o *Channel) SetResourceOwnerId(v string) {
o.ResourceOwnerId = v
} | [
0.133812814950943,
-0.6952877640724182,
-0.41385966539382935,
-0.3349202275276184,
-0.9078313708305359,
0.3152182996273041,
0.46608513593673706,
-0.20692728459835052,
-0.064750075340271,
-0.06698927283287048,
0.26554960012435913,
0.07042159885168076,
-0.31959930062294006,
0.736545920372009... |
func (o *Channel) GetName() string {
if o == nil {
var ret string
return ret
}
return o.Name
} | [
0.2601231634616852,
-0.03927157074213028,
0.11717859655618668,
-0.0644170492887497,
-0.0680357813835144,
-0.6075135469436646,
0.36737143993377686,
-0.6575963497161865,
0.0590151883661747,
0.6085687279701233,
0.11963590234518051,
-0.4077560603618622,
-0.25682154297828674,
0.2396697252988815... |
func (o *Channel) GetNameOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Name, true
} | [
-0.16977256536483765,
-0.01203895453363657,
0.7604703903198242,
-0.06605742126703262,
-0.26293879747390747,
0.35141468048095703,
0.003606461687013507,
-0.5915400385856628,
-0.3368115723133087,
1.3839269876480103,
-1.485175609588623,
-0.5907465815544128,
0.12560854852199554,
0.3744850456714... |
func (o *Channel) SetName(v string) {
o.Name = v
} | [
-0.22327442467212677,
-0.011936472728848457,
-0.07319759577512741,
-0.8534255027770996,
-0.5464159846305847,
-0.5143406987190247,
-0.52753084897995,
-0.5062251091003418,
-0.3235519826412201,
1.2036317586898804,
-0.7367116212844849,
0.4739460051059723,
-0.19898657500743866,
0.14138950407505... |
func (o *Channel) GetDescription() string {
if o == nil || o.Description == nil {
var ret string
return ret
}
return *o.Description
} | [
1.0764844417572021,
0.36416977643966675,
0.36759331822395325,
0.6702061295509338,
0.09992554038763046,
-0.7193514108657837,
0.4634159505367279,
-0.6852392554283142,
0.9952803254127502,
0.13594746589660645,
0.31379392743110657,
-1.1800057888031006,
-0.940969705581665,
1.100486397743225,
1... |
func (o *Channel) GetDescriptionOk() (*string, bool) {
if o == nil || o.Description == nil {
return nil, false
}
return o.Description, true
} | [
0.37168383598327637,
0.31208083033561707,
0.5216044187545776,
0.46804484724998474,
-0.052232496440410614,
0.6385502815246582,
0.48965930938720703,
0.45060205459594727,
-0.050249647349119186,
1.0460693836212158,
-0.13982221484184265,
-0.6275463700294495,
0.2631441354751587,
0.90463095903396... |
func (o *Channel) HasDescription() bool {
if o != nil && o.Description != nil {
return true
}
return false
} | [
0.921259343624115,
0.4896988272666931,
0.32499727606773376,
-0.017203550785779953,
0.6912757754325867,
-0.5944172739982605,
-0.033829253166913986,
0.5098611116409302,
0.29175952076911926,
0.08951348066329956,
-0.2648092210292816,
-0.2971649765968323,
-0.35962527990341187,
1.134815573692321... |
func (o *Channel) SetDescription(v string) {
o.Description = &v
} | [
0.8986542820930481,
-0.05913747847080231,
-0.2884056270122528,
-0.36867988109588623,
-0.5539941191673279,
-0.2691704034805298,
-0.7694692611694336,
-0.82876056432724,
-0.1552371382713318,
0.6820791363716125,
0.45391714572906494,
1.4970371723175049,
-0.56549072265625,
-0.03244882822036743,
... |
func (o *Channel) GetChannelProtocols() []ChannelProtocol {
if o == nil || o.ChannelProtocols == nil {
var ret []ChannelProtocol
return ret
}
return *o.ChannelProtocols
} | [
0.1278075873851776,
0.13506972789764404,
0.5388520956039429,
0.6467308402061462,
-0.12403268367052078,
0.10590144246816635,
-0.3291943371295929,
-1.1065257787704468,
1.2115652561187744,
0.41798141598701477,
-0.861467719078064,
-0.3195292055606842,
-1.1682831048965454,
-0.30922505259513855,... |
func (o *Channel) GetChannelProtocolsOk() (*[]ChannelProtocol, bool) {
if o == nil || o.ChannelProtocols == nil {
return nil, false
}
return o.ChannelProtocols, true
} | [
0.2026941031217575,
0.6445413827896118,
0.5926240086555481,
0.9675567150115967,
0.0632910281419754,
0.3296014070510864,
-0.331961065530777,
-0.35249727964401245,
0.6391975283622742,
1.1348315477371216,
-1.3334728479385376,
-0.2941800057888031,
-0.238983154296875,
-0.9863001704216003,
-0.... |
func (o *Channel) HasChannelProtocols() bool {
if o != nil && o.ChannelProtocols != nil {
return true
}
return false
} | [
0.7262675166130066,
0.25569701194763184,
0.5995643734931946,
-0.2068237066268921,
0.3747664988040924,
0.0959773063659668,
-0.5735305547714233,
-0.3154423236846924,
0.3316051959991455,
0.6392053961753845,
-1.1222968101501465,
-0.6312544941902161,
-0.850263774394989,
-0.22570931911468506,
... |
func (o *Channel) SetChannelProtocols(v []ChannelProtocol) {
o.ChannelProtocols = &v
} | [
0.2648254632949829,
0.022289562970399857,
0.09533054381608963,
0.41745296120643616,
0.0005205133347772062,
0.5585666298866272,
-0.9026574492454529,
-1.6597490310668945,
0.5464256405830383,
0.6866832971572876,
-0.7299785614013672,
0.5065780878067017,
-0.9037949442863464,
-0.5559425354003906... |
func (o *Channel) GetDisplayInfo() []DisplayInfo {
if o == nil || o.DisplayInfo == nil {
var ret []DisplayInfo
return ret
}
return *o.DisplayInfo
} | [
0.79068523645401,
-0.1944098323583603,
0.5169034004211426,
0.8770749568939209,
-0.33051860332489014,
0.02329402044415474,
0.22010758519172668,
-1.1014883518218994,
0.25412437319755554,
-0.6508078575134277,
-0.8066521883010864,
-1.2315996885299683,
-0.3796829581260681,
0.958846390247345,
... |
func (o *Channel) GetDisplayInfoOk() (*[]DisplayInfo, bool) {
if o == nil || o.DisplayInfo == nil {
return nil, false
}
return o.DisplayInfo, true
} | [
0.8302392959594727,
-0.5847274661064148,
0.3176726698875427,
0.6143927574157715,
-0.3792060613632202,
0.8713864088058472,
0.40870580077171326,
-0.4233205020427704,
-0.6253501176834106,
0.23982122540473938,
-0.729132890701294,
-1.1856275796890259,
0.5184294581413269,
0.6535459160804749,
0... |
func (o *Channel) HasDisplayInfo() bool {
if o != nil && o.DisplayInfo != nil {
return true
}
return false
} | [
1.483773112297058,
-0.3122979998588562,
0.29851001501083374,
-0.12473312020301819,
-0.03504355624318123,
0.14531320333480835,
-0.34747159481048584,
-0.33750638365745544,
-0.7165906429290771,
-1.1158888339996338,
-1.0045660734176636,
-1.363110899925232,
0.6293240785598755,
0.725457549095153... |
func (o *Channel) SetDisplayInfo(v []DisplayInfo) {
o.DisplayInfo = &v
} | [
0.9437947869300842,
-0.884250819683075,
-0.24431322515010834,
0.42674964666366577,
-0.07430296391248703,
0.7434489130973816,
-0.45609137415885925,
-1.9472121000289917,
-0.3057749569416046,
-0.16463887691497803,
-0.6796126961708069,
-0.1978336125612259,
0.4582291841506958,
0.503995120525360... |
func (o *Channel) GetLabels() []Label {
if o == nil || o.Labels == nil {
var ret []Label
return ret
}
return *o.Labels
} | [
-0.19548043608665466,
0.3369710445404053,
0.37340307235717773,
0.0005100804264657199,
0.5958848595619202,
-0.6227566599845886,
-0.05303081125020981,
-0.7738226652145386,
1.077641248703003,
-0.5704785585403442,
0.47410863637924194,
-1.334012746810913,
-1.1748474836349487,
1.003990888595581,... |
func (o *Channel) GetLabelsOk() (*[]Label, bool) {
if o == nil || o.Labels == nil {
return nil, false
}
return o.Labels, true
} | [
0.2845075726509094,
0.24307192862033844,
0.3269866108894348,
-0.7569684386253357,
-0.2744711935520172,
0.09889853000640869,
-0.2149994969367981,
-0.6990692615509033,
-0.0469360426068306,
0.538066029548645,
-0.4181138575077057,
-1.2281582355499268,
-0.2868695557117462,
0.5979777574539185,
... |
func (o *Channel) HasLabels() bool {
if o != nil && o.Labels != nil {
return true
}
return false
} | [
0.6611732840538025,
0.4182024598121643,
0.3780806064605713,
-1.2032690048217773,
0.7214808464050293,
-0.19118450582027435,
-0.6583942770957947,
0.45225489139556885,
0.03874671086668968,
-0.6877033710479736,
0.14162221550941467,
-1.1157214641571045,
-0.8281600475311279,
0.9009222388267517,
... |
func (o *Channel) SetLabels(v []Label) {
o.Labels = &v
} | [
-0.32884687185287476,
0.13526703417301178,
-0.15788070857524872,
-0.350512832403183,
0.10190822929143906,
0.014182314276695251,
-1.4566688537597656,
-1.2644941806793213,
0.12311103940010071,
-0.010006990283727646,
0.477640837430954,
0.4513230323791504,
-1.0497022867202759,
0.62230610847473... |
func (o *Channel) GetMessagingConfig() MessagingConfig {
if o == nil || o.MessagingConfig == nil {
var ret MessagingConfig
return ret
}
return *o.MessagingConfig
} | [
0.2571716904640198,
0.5878218412399292,
0.4862595796585083,
0.7560377717018127,
-0.7121264338493347,
-0.4642781615257263,
-0.4732954800128937,
0.33209070563316345,
0.7466163039207458,
0.5382146239280701,
-0.7712787985801697,
-1.0832914113998413,
-0.8119339346885681,
1.623909831047058,
0.... |
func (o *Channel) GetMessagingConfigOk() (*MessagingConfig, bool) {
if o == nil || o.MessagingConfig == nil {
return nil, false
}
return o.MessagingConfig, true
} | [
-0.5733697414398193,
1.3305609226226807,
0.40189194679260254,
0.2245149463415146,
-0.6387799382209778,
0.1897697150707245,
-0.25362953543663025,
1.2633497714996338,
-0.7515767812728882,
1.3430111408233643,
-1.3124163150787354,
-0.756351113319397,
0.026323538273572922,
1.2193459272384644,
... |
func (o *Channel) HasMessagingConfig() bool {
if o != nil && o.MessagingConfig != nil {
return true
}
return false
} | [
0.2937856614589691,
0.8809258341789246,
0.3422836363315582,
-0.1377527266740799,
-0.7404354214668274,
-0.4780486822128296,
-0.696010410785675,
0.9327734708786011,
-0.04110728204250336,
0.3614158630371094,
-1.3790658712387085,
-0.8168559074401855,
-0.22506365180015564,
1.8598750829696655,
... |
func (o *Channel) SetMessagingConfig(v MessagingConfig) {
o.MessagingConfig = &v
} | [
0.5160172581672668,
0.31367287039756775,
-0.09954585134983063,
-0.5388861894607544,
-1.2413949966430664,
0.12324396520853043,
-0.9366106986999512,
0.22354575991630554,
0.18029183149337769,
0.9839913249015808,
-0.8957104682922363,
0.22092019021511078,
-0.39974185824394226,
1.089261651039123... |
func (o *Channel) GetDatastoreConfig() DataStoreConfig {
if o == nil || o.DatastoreConfig == nil {
var ret DataStoreConfig
return ret
}
return *o.DatastoreConfig
} | [
0.7364547848701477,
0.7784020304679871,
0.154472216963768,
0.03140890598297119,
-0.5554444193840027,
-0.9162197113037109,
-0.1619376540184021,
0.688345730304718,
0.4832059144973755,
-0.5279603600502014,
-1.0551272630691528,
-0.2945813834667206,
0.07736685127019882,
1.0363788604736328,
-0... |
func (o *Channel) GetDatastoreConfigOk() (*DataStoreConfig, bool) {
if o == nil || o.DatastoreConfig == nil {
return nil, false
}
return o.DatastoreConfig, true
} | [
-0.23163005709648132,
1.4668657779693604,
0.0953381285071373,
-0.3194277882575989,
-0.1957055777311325,
-0.48154565691947937,
-0.1480923593044281,
1.5190281867980957,
-0.43197891116142273,
0.6039106845855713,
-1.38881516456604,
-0.41944006085395813,
1.005228042602539,
0.831877589225769,
... |
func (o *Channel) HasDatastoreConfig() bool {
if o != nil && o.DatastoreConfig != nil {
return true
}
return false
} | [
0.7405554056167603,
0.7671472430229187,
0.0038809971883893013,
-0.997218132019043,
-0.28326645493507385,
-1.2302851676940918,
-0.39434921741485596,
1.0439822673797607,
0.2385135293006897,
-0.49640077352523804,
-1.4800444841384888,
-0.23517945408821106,
1.013152003288269,
1.542897343635559,... |
func (o *Channel) SetDatastoreConfig(v DataStoreConfig) {
o.DatastoreConfig = &v
} | [
0.9811530709266663,
0.13643541932106018,
-0.2305859476327896,
-1.0975189208984375,
-0.756193995475769,
-0.6579300761222839,
-0.4787605106830597,
0.6429711580276489,
0.2889488637447357,
-0.08473608642816544,
-0.8705928325653076,
0.7561917901039124,
0.8155825734138489,
1.0964269638061523,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.