text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func GetNotifacationsByTrade(ctx context.Context, db driver.Database, uid, tid string) ([]model.Notification, errstack.E) {
var ns []model.Notification
query := `for d in notifications
filter d.entityID like @tid && @uid in d.receiver && @uid not in d.dismissed
sort d.createdAt desc return d`
bindVars := map[str... | [
-0.060976509004831314,
0.1527138501405716,
0.6937893033027649,
-0.3427967131137848,
-0.12608209252357483,
-0.2827276885509491,
0.906160831451416,
-0.9516395330429077,
-0.28826475143432617,
0.952357828617096,
0.1362895965576172,
0.8464093804359436,
0.2891242802143097,
0.87473064661026,
-0... |
func NotificationDismiss(ctx context.Context, db driver.Database, uid, notifID string) errstack.E {
query := `for d in notifications update { _key:@notifID, dismissed: append(d.dismissed, @uid)} in notifications`
bindVars := map[string]interface{}{
"uid": uid,
"notifID": notifID,
}
_, err := db.Query(ctx, q... | [
0.6412210464477539,
-0.045904334634542465,
0.34446337819099426,
-0.19666624069213867,
-0.0310562364757061,
0.7443211674690247,
-0.43472641706466675,
-0.5986788868904114,
0.18178893625736237,
0.4281342327594757,
-0.10182823240756989,
0.392341285943985,
-0.16710196435451508,
0.97791308164596... |
func NewRoomDAO(db *DBAccess) *RoomDAO {
return &RoomDAO{
db: db,
collection: "rooms",
}
} | [
0.4686324894428253,
-0.6243683099746704,
0.11132635176181793,
0.5628371238708496,
-1.0926212072372437,
0.7340800762176514,
0.45573386549949646,
1.076521873474121,
-0.01837923191487789,
-0.07907094806432724,
-0.5697365999221802,
0.8970931172370911,
0.5924648642539978,
1.564997911453247,
0... |
func (r *RoomDAO) FindByID(id string) (RoomDTO, error) {
var room RoomDTO
err := r.db.C(r.collection).FindId(bson.ObjectIdHex(id)).One(&room)
return room, err
} | [
0.13143852353096008,
-0.04986923560500145,
0.17723791301250458,
-0.0000540528999408707,
-0.4536609649658203,
0.35174062848091125,
0.725724995136261,
-0.16454100608825684,
0.050960224121809006,
0.4739810526371002,
-0.8161584138870239,
0.32478469610214233,
-1.0572501420974731,
1.180321455001... |
func (r *RoomDAO) FindAll() ([]RoomDAO, error) {
var rooms []RoomDAO
err := r.db.C(r.collection).Find(bson.M{}).All(&rooms)
return rooms, err
} | [
-0.053026311099529266,
-0.01924324780702591,
0.20814916491508484,
1.2176964282989502,
0.2273341715335846,
0.7211740016937256,
0.2212129533290863,
0.7783788442611694,
-0.247425377368927,
0.25507834553718567,
-0.5754613280296326,
0.453736275434494,
-0.4806188941001892,
2.083975076675415,
-... |
func (r *RoomDAO) Insert(room RoomDTO) error {
err := r.db.C(r.collection).Insert(&room)
return err
} | [
-1.299838900566101,
0.8104256987571716,
0.19793978333473206,
-0.07074709236621857,
0.2793753147125244,
1.3475455045700073,
0.7023918628692627,
1.0473188161849976,
-0.6012876629829407,
-0.054331254214048386,
-1.1421856880187988,
-0.32817068696022034,
-1.2758394479751587,
0.8387024402618408,... |
func (r *RoomDAO) Delete(room RoomDTO) error {
err := r.db.C(r.collection).Remove(&room)
return err
} | [
-0.46832868456840515,
0.09306167811155319,
0.2722755968570709,
0.4977636933326721,
0.3696967661380768,
1.1814180612564087,
0.39576756954193115,
0.9825421571731567,
0.07705329358577728,
0.3280656933784485,
-0.46302330493927,
-0.19149848818778992,
-0.5442822575569153,
0.7310697436332703,
-... |
func (r *RoomDAO) Update(room RoomDTO) error {
err := r.db.C(r.collection).UpdateId(room.ID, &room)
return err
} | [
-1.2259953022003174,
-0.7845891118049622,
0.060519877821207047,
0.28463682532310486,
-0.28373849391937256,
1.255191683769226,
0.24338963627815247,
0.5834436416625977,
-0.08035015314817429,
0.32619723677635193,
-0.4824181795120239,
0.1146782860159874,
-0.5725350975990295,
0.7129193544387817... |
func Info(msg string, fields ...zapcore.Field) {
l.Info(msg, fields...)
} | [
0.7964361906051636,
0.423479288816452,
0.22615084052085876,
-0.05488508194684982,
0.495944082736969,
0.21176983416080475,
0.4698970317840576,
0.23170284926891327,
-1.5357918739318848,
-0.1723560392856598,
-0.6888562440872192,
-0.17499805986881256,
0.45645448565483093,
0.7674989700317383,
... |
func Warn(msg string, fields ...zapcore.Field) {
l.Warn(msg, fields...)
} | [
0.4483684003353119,
0.8587793111801147,
0.26163575053215027,
-0.2573431730270386,
0.2872526943683624,
0.12654030323028564,
-0.2529813349246979,
0.3040284216403961,
-1.1003416776657104,
-0.6344560384750366,
-0.699972927570343,
0.30325114727020264,
0.47491714358329773,
-0.03467739000916481,
... |
func IsUUID(s *string) error {
if s == nil {
return nil
}
if !uuidRegexp.MatchString(*s) {
return fmt.Errorf("'%s' is not a UUID", *s)
}
return nil
} | [
-0.022136036306619644,
-0.5114972591400146,
0.4417588710784912,
0.41177651286125183,
-0.47100964188575745,
-0.2065301537513733,
-0.22467000782489777,
1.4296207427978516,
1.3263649940490723,
0.1421300768852234,
0.3106622099876404,
0.4846724271774292,
-0.34899237751960754,
-0.384169697761535... |
func (p *Undirected) AddEdge(n1, n2 NI) {
// Similar code in LabeledAdjacencyList.AddEdge.
// determine max of the two end points
max := n1
if n2 > max {
max = n2
}
// expand graph if needed, to include both
g := p.AdjacencyList
if int(max) >= len(g) {
p.AdjacencyList = make(AdjacencyList, max+1)
copy(p.... | [
-0.3494323194026947,
0.7370070815086365,
0.7445359826087952,
0.6391332149505615,
0.4759041368961334,
0.383882999420166,
-0.43912383913993835,
-0.03596937283873558,
0.113050177693367,
-0.6196244955062866,
0.4306091070175171,
0.07415515929460526,
-0.3734312355518341,
0.03975440189242363,
0... |
func (g Undirected) RemoveEdge(n1, n2 NI) (ok bool) {
ok, x1, x2 := g.HasEdge(n1, n2)
if !ok {
return
}
a := g.AdjacencyList
to := a[n1]
last := len(to) - 1
to[x1] = to[last]
a[n1] = to[:last]
if n1 == n2 {
return
}
to = a[n2]
last = len(to) - 1
to[x2] = to[last]
a[n2] = to[:last]
return
} | [
-1.0245616436004639,
0.93466717004776,
0.7311270833015442,
-0.001579082221724093,
-0.1263248771429062,
-0.44475027918815613,
0.006920234765857458,
0.30931326746940613,
-0.5523084998130798,
0.5905414819717407,
-0.35436296463012695,
-0.5227721333503723,
-0.6931501030921936,
-0.54694300889968... |
func ArcDensity(n, a int) float64 {
return float64(a) / (float64(n) * float64(n-1))
} | [
0.4224195182323456,
0.013602642342448235,
0.29592010378837585,
-0.9017738103866577,
-0.3419091999530792,
-0.37975555658340454,
0.1829850822687149,
-0.12248946726322174,
0.14619384706020355,
0.20849643647670746,
1.2128709554672241,
0.8573277592658997,
0.8739249110221863,
-0.1677354127168655... |
func Density(n, m int) float64 {
return float64(m) * 2 / (float64(n) * float64(n-1))
} | [
0.30378279089927673,
0.20669002830982208,
0.44717660546302795,
0.3358750343322754,
-0.2657102644443512,
-0.05599367246031761,
0.28256112337112427,
-0.6158212423324585,
-0.5775133371353149,
0.06458479911088943,
1.3434637784957886,
-0.38396602869033813,
0.14807474613189697,
0.395666807889938... |
func (g Undirected) Edges(v EdgeVisitor) {
a := g.AdjacencyList
unpaired := make(AdjacencyList, len(a))
for fr, to := range a {
arc: // for each arc in a
for _, to := range to {
if to == NI(fr) {
v(Edge{NI(fr), to}) // output loop
continue
}
// search unpaired arcs
ut := unpaired[to]
for i,... | [
-0.7859317064285278,
0.20562300086021423,
0.7307621836662292,
-1.1209485530853271,
0.3554448187351227,
-0.8102216720581055,
0.5277549624443054,
0.40463683009147644,
0.7849001884460449,
-0.18935023248195648,
0.43814507126808167,
-0.28634291887283325,
0.4313265085220337,
-0.22111843526363373... |
func (g Undirected) HasEdge(n1, n2 NI) (has bool, x1, x2 int) {
if has, x1 = g.HasArc(n1, n2); !has {
return has, x1, x1
}
has, x2 = g.HasArc(n2, n1)
return
} | [
0.19125667214393616,
0.7211257815361023,
0.6972293853759766,
0.3920128047466278,
0.8692547082901001,
-0.07126259803771973,
-0.16064605116844177,
-0.26563239097595215,
-0.776718258857727,
-0.6037282943725586,
-0.13632740080356598,
-0.7209748029708862,
0.19913946092128754,
0.1905496120452880... |
func (g Undirected) SimpleEdges(v EdgeVisitor) {
for fr, to := range g.AdjacencyList {
e := bits.New(len(g.AdjacencyList))
for _, to := range to {
if to > NI(fr) && e.Bit(int(to)) == 0 {
e.SetBit(int(to), 1)
v(Edge{NI(fr), to})
}
}
}
// undefined behavior is that unpaired arcs may or may not be e... | [
-0.8063864707946777,
0.5202747583389282,
0.582805871963501,
-0.3835858106613159,
0.04144615679979324,
-0.2636858820915222,
0.8030812740325928,
0.36617061495780945,
0.9051454067230225,
-0.7377524375915527,
-0.12863223254680634,
-0.7010762095451355,
0.37725234031677246,
0.06644850969314575,
... |
func (g Undirected) TarjanBiconnectedComponents(emit func([]Edge) bool) {
// Implemented closely to pseudocode in "Depth-first search and linear
// graph algorithms", Robert Tarjan, SIAM J. Comput. Vol. 1, No. 2,
// June 1972.
//
// Note Tarjan's "adjacency structure" is graph.AdjacencyList,
// His "adjacency lis... | [
0.03977307677268982,
-0.23999536037445068,
0.9361332058906555,
-0.49495384097099304,
-0.16835461556911469,
-0.3545893132686615,
0.8267484903335571,
-0.1767655462026596,
-0.21753092110157013,
0.23336835205554962,
-0.40160125494003296,
-0.3867936432361603,
-0.2530687749385834,
-0.25388425588... |
func (g LabeledUndirected) Edges(v LabeledEdgeVisitor) {
// similar code in LabeledAdjacencyList.InUndirected
a := g.LabeledAdjacencyList
unpaired := make(LabeledAdjacencyList, len(a))
for fr, to := range a {
arc: // for each arc in a
for _, to := range to {
if to.To == NI(fr) {
v(LabeledEdge{Edge{NI(fr),... | [
-1.1498465538024902,
-0.4944039285182953,
0.8908852338790894,
-1.5355029106140137,
0.44016534090042114,
-0.5311441421508789,
0.39762771129608154,
0.5238274931907654,
0.5749275088310242,
0.0356980599462986,
0.4337848424911499,
0.09777108579874039,
0.529760479927063,
-0.49257898330688477,
... |
func (g LabeledUndirected) RemoveEdge(n1, n2 NI) (ok bool, label LI) {
ok, x1, x2 := g.HasEdge(n1, n2)
if !ok {
return
}
a := g.LabeledAdjacencyList
to := a[n1]
label = to[x1].Label // return value
last := len(to) - 1
to[x1] = to[last]
a[n1] = to[:last]
if n1 == n2 {
return
}
to = a[n2]
last = len(to) ... | [
-1.3369314670562744,
0.004792137537151575,
0.8992087841033936,
-0.3028992712497711,
-0.007932883687317371,
-0.05750037357211113,
0.11004405468702316,
0.41676563024520874,
-0.411565899848938,
0.7061207890510559,
-0.54217129945755,
-0.3102149963378906,
-0.5849334597587585,
-0.538183212280273... |
func (g LabeledUndirected) RemoveEdgeLabel(n1, n2 NI, l LI) (ok bool) {
ok, x1, x2 := g.HasEdgeLabel(n1, n2, l)
if !ok {
return
}
a := g.LabeledAdjacencyList
to := a[n1]
last := len(to) - 1
to[x1] = to[last]
a[n1] = to[:last]
if n1 == n2 {
return
}
to = a[n2]
last = len(to) - 1
to[x2] = to[last]
a[n2]... | [
-1.4650264978408813,
-0.17800232768058777,
0.918598473072052,
-0.46439746022224426,
-0.3463584780693054,
0.4379003345966339,
0.4358379542827606,
-0.04655474051833153,
-0.30373460054397583,
0.7681632041931152,
-0.6288723945617676,
-0.38148507475852966,
-0.7752418518066406,
-0.56006163358688... |
func (g LabeledUndirected) TarjanBiconnectedComponents(emit func([]LabeledEdge) bool) {
// Implemented closely to pseudocode in "Depth-first search and linear
// graph algorithms", Robert Tarjan, SIAM J. Comput. Vol. 1, No. 2,
// June 1972.
//
// Note Tarjan's "adjacency structure" is graph.AdjacencyList,
// His ... | [
-0.48552370071411133,
-0.3960764706134796,
0.9818968772888184,
-0.8743121027946472,
-0.23255600035190582,
-0.03582221642136574,
0.7867335677146912,
-0.13228482007980347,
-0.38995087146759033,
0.3402584195137024,
-0.3908688724040985,
-0.20090517401695251,
0.2651750147342682,
-0.423288136720... |
func Logger(inner http.HandlerFunc, name string) http.HandlerFunc {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
start := time.Now()
inner.ServeHTTP(w, r)
log.Printf(
"%s\t%s\t%s\t%s",
r.Method,
r.RequestURI,
name,
time.Since(start),
)
})
} | [
-0.8415498733520508,
-0.4358866512775421,
0.7934763431549072,
-0.7618222832679749,
-0.5724378824234009,
0.09997513890266418,
-0.5174506902694702,
0.31636983156204224,
-1.1889164447784424,
-0.457967072725296,
-0.06211075931787491,
-0.023914696648716927,
0.13879872858524323,
1.02976500988006... |
func HealthCheckStatusHandler(w http.ResponseWriter, r *http.Request) {
response := HealthCheckStatusResponse{"OK"}
w.Header().Set("Content-Type", "application/json; charset=UTF-8")
w.WriteHeader(http.StatusOK)
if err := json.NewEncoder(w).Encode(response); err != nil {
panic(err)
}
} | [
-0.11021774262189865,
-1.496209740638733,
0.5998557209968567,
-0.000771923630964011,
-0.21089878678321838,
0.3177919089794159,
0.11358098685741425,
-0.19763916730880737,
0.2760747969150543,
0.34808477759361267,
-0.007561525795608759,
0.1508704572916031,
0.5630714297294617,
-0.0548624880611... |
func Uname() string {
buf := unix.Utsname{}
err := unix.Uname(&buf)
if err != nil {
panic("unix.Uname failed: " + err.Error())
}
str := "(" + unix.ByteSliceToString(buf.Sysname[:])
str += " " + unix.ByteSliceToString(buf.Release[:])
str += " " + unix.ByteSliceToString(buf.Version[:])
str += " " + unix.ByteSl... | [
-0.3210131824016571,
-0.2828627824783325,
0.7764163613319397,
-0.7531940340995789,
-0.4259639382362366,
0.4812780022621155,
-0.9900192022323608,
0.2428380399942398,
-0.5372006297111511,
0.856134295463562,
-0.028307130560278893,
0.6693837642669678,
0.0884651243686676,
-0.9817836880683899,
... |
func New(repo repo.Repo, chunkSize int) *flusher {
return &flusher{repo: repo, chunkSize: chunkSize}
} | [
0.3072218596935272,
-0.02227116748690605,
0.2365770787000656,
-0.44411152601242065,
-0.520026683807373,
-0.2757827937602997,
-0.9757401347160339,
-0.06433044373989105,
-0.5992436408996582,
-0.49809134006500244,
-0.6851922869682312,
0.9392681121826172,
0.16010206937789917,
1.005342125892639... |
func (fl *flusher) Flush(ctx context.Context, span opentracing.Span, classrooms []models.Classroom) []models.Classroom {
chunks, err := utils.SplitSlice(classrooms, fl.chunkSize)
if err != nil {
return classrooms
}
for i, chunk := range chunks {
var childSpan opentracing.Span
if span != nil {
childSpan... | [
-1.4411431550979614,
0.19479762017726898,
0.5912694334983826,
0.49671420454978943,
0.5311259031295776,
0.5257223844528198,
0.7607948780059814,
-0.7074688076972961,
0.16352804005146027,
-0.21605919301509857,
0.17040520906448364,
0.14093327522277832,
-0.2228851318359375,
1.3152717351913452,
... |
func SwapMapKeyValue(sourceMap map[int]string) (map[string]int, error) {
if sourceMap == nil {
return nil, nil
}
destMap := make(map[string]int, len(sourceMap))
for key, value := range sourceMap {
if _, found := destMap[value]; found {
return nil, ErrSourceMapMustBeUnique
}
destMap[value] = key
}
re... | [
-1.4416319131851196,
-0.15468762814998627,
0.5912275314331055,
-0.7650195360183716,
-0.775105893611908,
-0.3620304465293884,
0.05573510006070137,
0.7695737481117249,
0.2171793133020401,
0.47264939546585083,
-0.83653324842453,
0.3107757270336151,
0.44472309947013855,
0.6330243945121765,
0... |
func GetRootPath() string {
_, filename, _, ok := runtime.Caller(0)
if !ok {
panic("Cannot get file into for env")
}
return path.Dir(path.Dir(filename))
} | [
0.641735315322876,
0.8046651482582092,
0.7061938643455505,
1.4993059635162354,
0.3838980495929718,
0.6704183220863342,
1.1572645902633667,
-0.8367143869400024,
-0.9076105356216431,
-0.16164493560791016,
1.3077586889266968,
0.8746594190597534,
-0.53265780210495,
0.986219584941864,
1.11291... |
func (this *Blockchain) addBlock(block Block) {
mutex.Lock()
this.chain = append(this.chain, block)
mutex.Unlock()
// reset pending Transactions
this.pendingTransactions = nil
} | [
-0.25920629501342773,
0.7889382243156433,
0.7309577465057373,
0.6177413463592529,
0.7191178202629089,
-0.30824553966522217,
-0.5605661273002625,
-0.35206684470176697,
0.4335373342037201,
-0.5451045632362366,
-0.4505046606063843,
0.21009336411952972,
-1.25691556930542,
0.28961244225502014,
... |
func NewMethodsList(receiverName, entityNameWithPackage string) Appender {
return &methodsList{
receiverName: receiverName,
entityNameWithPackage: entityNameWithPackage,
methods: []method{
{
receiverName: j.Id(receiverName),
methodName: findAllMethod,
args: nil,
returnParams... | [
-0.5660971999168396,
-0.575729489326477,
0.8881036639213562,
-0.7690533995628357,
-0.5148877501487732,
-1.1835145950317383,
-0.3019773066043854,
-0.20395644009113312,
0.6491447687149048,
0.5425562858581543,
0.0217038132250309,
-0.7247492671012878,
0.4594968259334564,
1.335207462310791,
-... |
func SupportsMap(extractor *Extractor) bool {
return extractor.Type.ExtractorType == KValExtractor || extractor.Type.ExtractorType == DSLExtractor
} | [
-0.7089459300041199,
0.11311627924442291,
0.7110492587089539,
0.7631021738052368,
-1.1266721487045288,
0.32259559631347656,
-0.801215648651123,
1.0237778425216675,
1.3399851322174072,
-0.3034931719303131,
0.46258029341697693,
-0.7806363701820374,
0.7087763547897339,
0.22500893473625183,
... |
func (app *managerFactory) Create() Manager {
return createManager(map[string]Bridge{})
} | [
-0.07314706593751907,
-0.3830738067626953,
0.05346893519163132,
0.6255954504013062,
0.019712626934051514,
0.6667789816856384,
-1.1913831233978271,
-0.20177558064460754,
-0.01755668595433235,
-1.3083046674728394,
0.32115304470062256,
-0.3718636929988861,
-0.09429057687520981,
1.395810365676... |
func MustInt(c *gin.Context, key string) int {
if strv := c.Query(key); strv != "" {
v, e := strconv.Atoi(strv)
if e != nil {
panic(e)
}
return v
} else {
panic(fmt.Sprintf("cannot get value of param [%s]", key))
}
} | [
0.29428476095199585,
0.4133583903312683,
0.5312138199806213,
-0.2030586302280426,
-0.2997763156890869,
0.18347826600074768,
-1.0183334350585938,
-1.2785837650299072,
-0.8361859917640686,
1.1382595300674438,
0.5276862978935242,
-0.2968173623085022,
-0.5331461429595947,
-0.0200320016592741,
... |
func Int(c *gin.Context, key string, defaults ...int) (int, error) {
if strv := c.Query(key); strv != "" {
return strconv.Atoi(strv)
} else if len(defaults) > 0 {
return defaults[0], nil
} else {
return strconv.Atoi(strv)
}
} | [
-0.5236204266548157,
0.4726645052433014,
0.2602243423461914,
-0.47808170318603516,
-0.10575596243143082,
-0.5664898753166199,
-0.5960390567779541,
0.14451059699058533,
-1.227227807044983,
0.1551523655653,
0.16352316737174988,
-0.14758136868476868,
-0.3050534427165985,
-0.5564418435096741,
... |
func GetStatusOfSomeService(serviceName string) *service.Status {
srv := service.NewDefaultService(serviceName)
status, _ := srv.Status()
return status
} | [
-0.11314167827367783,
0.051513317972421646,
0.19479382038116455,
0.014908152632415295,
-0.3403031826019287,
-0.512300968170166,
-0.9970642328262329,
-0.41502153873443604,
0.6923714876174927,
-0.6241406202316284,
-0.8732865452766418,
0.23747611045837402,
-0.7126563191413879,
0.4342713654041... |
func StartSomeService(serviceName string) {
srv := service.NewDefaultService(serviceName)
_ = srv.Start()
} | [
0.03936777636408806,
-0.04935149475932121,
0.3484986424446106,
0.916597843170166,
0.24013862013816833,
-0.3571685552597046,
-0.4325137436389923,
-0.002146320417523384,
0.7401061654090881,
-1.035273790359497,
-1.0180507898330688,
0.9062484502792358,
-1.1065295934677124,
0.7096444964408875,
... |
func GetSpawnedPIDs(serviceName string) ([]int, error) {
srv := service.NewDefaultService(serviceName)
status, err := srv.Status()
if err != nil {
return nil, err
}
var spawnedPIDs []int
for _, p := range status.MainPID.Children {
spawnedPIDs = append(spawnedPIDs, p.ID)
}
return spawnedPIDs, nil
} | [
-0.16718076169490814,
-0.5434383749961853,
0.8218899965286255,
0.42098549008369446,
-0.5095812678337097,
0.6556669473648071,
-0.2810356318950653,
0.46288540959358215,
0.8374636769294739,
0.07036997377872467,
-0.9218904972076416,
1.0829802751541138,
-1.0260239839553833,
0.4964875280857086,
... |
func NewGridfsStorage(con *mgo.Session) (Storage, error) {
if con == nil {
return nil, errors.New("mgo.Session must be set")
}
return &GridfsStorage{Connection: con}, nil
} | [
0.40578126907348633,
0.2879711389541626,
0.17387570440769196,
0.5027254819869995,
-0.42798587679862976,
-0.9698503017425537,
-0.051103025674819946,
-0.9535461664199829,
-0.7131453156471252,
-0.21494066715240479,
0.08241830766201019,
-1.076356291770935,
-0.6564335227012634,
0.63616448640823... |
func (g GridfsStorage) IsValidID(id string) bool {
return bson.IsObjectIdHex(id)
} | [
-0.4857725203037262,
-0.9037598371505737,
0.33762070536613464,
0.3163067400455475,
-0.0665341466665268,
0.514761745929718,
-0.9028461575508118,
0.14140774309635162,
1.0712733268737793,
-0.12971413135528564,
0.05711910501122475,
-0.4759705364704132,
-0.39856889843940735,
0.1879929155111313,... |
func (g GridfsStorage) FindImageByParentID(namespace, id string, entry *Entry) (Cacheable, error) {
gridfs := g.Connection.DB(namespace).GridFS("fs")
var fp *mgo.GridFile
var query bson.M
if entry == nil {
query = bson.M{"_id": bson.ObjectIdHex(id)}
} else {
query = bson.M{
"metadata.original.$id": bson.Ob... | [
0.35506272315979004,
-0.07658323645591736,
0.5183309316635132,
-0.37274816632270813,
-0.11785349994897842,
-0.8611562252044678,
-0.23987697064876556,
-0.9013814330101013,
-0.8212142586708069,
0.7843483090400696,
0.8013936281204224,
-0.040329184383153915,
-0.2951423227787018,
0.908438861370... |
func (g GridfsStorage) FindImageByParentFilename(namespace, filename string, entry *Entry) (Cacheable, error) {
gridfs := g.Connection.DB(namespace).GridFS("fs")
var fp *mgo.GridFile
var query bson.M
if entry == nil {
query = bson.M{"filename": filename}
} else {
query = bson.M{
"metadata.originalFilename"... | [
0.48903393745422363,
0.0527430921792984,
0.5406305193901062,
-0.15486687421798706,
-0.035982895642519,
-0.7001218795776367,
0.05658726021647453,
-0.6275407075881958,
-1.1408698558807373,
0.769406259059906,
1.188248634338379,
-0.21833154559135437,
-0.4613145589828491,
0.6829593777656555,
... |
func (g GridfsStorage) StoreChildImage(
database,
imageFormat string,
reader io.Reader,
imageWidth,
imageHeight int,
original Cacheable,
entry *Entry,
) (Cacheable, error) {
con := g.Connection.Copy()
defer con.Close()
con.EnsureSafe(&mgo.Safe{W: 1, J: true})
gridfs := con.DB(database).GridFS("fs")
targetf... | [
-0.11993540823459625,
-0.45100072026252747,
0.7142306566238403,
-0.6832075715065002,
-0.2238609939813614,
-0.29577288031578064,
0.08250124007463455,
-0.2407505214214325,
-0.7796979546546936,
0.3809065818786621,
-0.0629451721906662,
0.003261520527303219,
0.2889745533466339,
-0.0183901321142... |
func Marshal(v Marshaler) ([]byte, error) {
if isNilInterface(v) {
return nullBytes, nil
}
w := jwriter.Writer{}
v.MarshalTinyJSON(&w)
return w.BuildBytes()
} | [
-0.13078248500823975,
0.278579443693161,
0.41825154423713684,
0.18432649970054626,
-1.5178203582763672,
-0.768815815448761,
-0.07758858054876328,
-0.3804199695587158,
1.0989999771118164,
-0.5632061958312988,
-0.5845494270324707,
0.5004333257675171,
-0.28881070017814636,
0.7813228964805603,... |
func MarshalToWriter(v Marshaler, w io.Writer) (written int, err error) {
if isNilInterface(v) {
return w.Write(nullBytes)
}
jw := jwriter.Writer{}
v.MarshalTinyJSON(&jw)
return jw.DumpTo(w)
} | [
-0.5213019847869873,
-0.0804523155093193,
0.6127216815948486,
-0.4211268723011017,
-0.939429521560669,
-0.7838869094848633,
0.13895325362682343,
-0.37553471326828003,
0.5759848952293396,
0.04608127102255821,
-0.2065235674381256,
0.0022441211622208357,
0.12259814143180847,
1.026378631591796... |
func Unmarshal(data []byte, v Unmarshaler) error {
l := jlexer.Lexer{Data: data}
v.UnmarshalTinyJSON(&l)
return l.Error()
} | [
0.38810545206069946,
-0.3216991722583771,
0.4919285774230957,
-0.7688735723495483,
-0.9510272741317749,
-0.4048731029033661,
-0.7943535447120667,
0.7649394273757935,
0.4574148952960968,
-0.12248697876930237,
-0.3984786868095398,
0.2386046200990677,
-0.08108541369438171,
0.5924127697944641,... |
func UnmarshalFromReader(r io.Reader, v Unmarshaler) error {
data, err := ioutil.ReadAll(r)
if err != nil {
return err
}
l := jlexer.Lexer{Data: data}
v.UnmarshalTinyJSON(&l)
return l.Error()
} | [
0.5730214715003967,
-0.720999538898468,
0.7541221380233765,
-1.0529799461364746,
-1.3738431930541992,
-0.5529080033302307,
-0.7169576287269592,
0.3484020531177521,
-0.05414309352636337,
0.12262748181819916,
0.2658228278160095,
-0.20718427002429962,
-0.10734380781650543,
0.8671405911445618,... |
func (id ID) Valid() error {
return validate.OneOf("LimitID", id,
NotificationRulesPerUser,
ContactMethodsPerUser,
EPStepsPerPolicy,
EPActionsPerStep,
ParticipantsPerRotation,
RulesPerSchedule,
IntegrationKeysPerService,
UnackedAlertsPerService,
TargetsPerSchedule,
HeartbeatMonitorsPerService,
Us... | [
0.8125981092453003,
-0.09122274070978165,
0.2853959798812866,
0.08723122626543045,
0.019568894058465958,
0.9445518255233765,
0.2657563090324402,
-0.20453491806983948,
0.719439685344696,
-0.3520345985889435,
0.575660228729248,
0.45781129598617554,
-0.6150749921798706,
0.20883820950984955,
... |
func genGreeting(ctx context.Context) (string, error) {
ctx, cancel := context.WithTimeout(ctx, 1*time.Second)
defer cancel()
switch locale, err := locale(ctx); {
case err != nil:
return "", err
case locale == "EN/US":
return "Hello", nil
}
return "", fmt.Errorf("unsupported locale")
} | [
0.12406527996063232,
1.1314496994018555,
0.9008749127388,
0.27818042039871216,
-0.6991094350814819,
1.359147071838379,
-0.4397282898426056,
-0.03055804967880249,
-0.9111465811729431,
0.6463766694068909,
0.11615504324436188,
-0.04468632861971855,
-0.06613203138113022,
0.06772755831480026,
... |
func GetConfig(str string) (map[string]string, error) {
if str == "" {
return nil, nil
}
config := make(map[string]string)
splittedItemByComma := strings.Split(str, ";")
for _, item := range splittedItemByComma {
itemTrimmed := strings.Trim(item, " ")
if itemTrimmed == "" {
continue
}
setting := strin... | [
-0.3396602272987366,
0.11358099430799484,
0.7154789566993713,
0.4817533493041992,
-0.6878796219825745,
-0.6269851922988892,
0.1207641065120697,
0.47101354598999023,
-0.056581348180770874,
1.1978728771209717,
-0.7756571173667908,
-0.07733429223299026,
0.230158731341362,
0.18069131672382355,... |
func TestMatrixRanker(t *testing.T) {
s := State{}
s.ShakeHash = sha3.NewShake256()
faults := 0
for i := 0; i < 1000; i++ {
// Fill the matrix with random data
var m Matrix
for i := 0; i < BlockSize; i++ {
for j := 0; j < BlockWords; j++ {
m[i][j] = s.rand()
}
}
if m.Rank() != BlockSize {
fa... | [
0.7735446691513062,
0.4452403783798218,
0.6397697925567627,
0.06247216835618019,
0.05936257913708687,
-0.1603921800851822,
0.5071050524711609,
0.02037849836051464,
0.6160761117935181,
-0.21519652009010315,
0.07803872972726822,
0.4870246350765228,
-0.5016408562660217,
0.9520721435546875,
... |
func getFibonacciNumberForTesting(position int) int {
var Fibonaccis []int
fibonacciPosition := 0
fibonacciPosition = position
if fibonacciPosition > 46 {
fmt.Println("Out of Integer bounds")
}
Fibonaccis = make([]int, fibonacciPosition)
Fibonaccis = fibonacci(fibonacciPosition)
return Fibonaccis[fibonacc... | [
0.20446719229221344,
-0.6156846880912781,
0.7263176441192627,
-0.3641291856765747,
-0.21187447011470795,
-0.9532663226127625,
1.4540700912475586,
0.0449187234044075,
0.21113210916519165,
-0.520552396774292,
-0.4119710624217987,
-0.15929801762104034,
-0.6495758891105652,
0.08076237887144089... |
func GetContacts(w http.ResponseWriter, r *http.Request) {
var contacts []models.Contact
err := store.GetDB().All(&contacts)
if err != nil {
setting.Renderer.JSON(w, http.StatusBadRequest, err)
return
}
setting.Renderer.JSON(w, http.StatusOK, contacts)
} | [
-1.277549147605896,
-0.6732078194618225,
0.6939698457717896,
0.791238009929657,
0.12457633763551712,
-0.23737400770187378,
-0.45973852276802063,
-0.5031908750534058,
0.19404418766498566,
0.163879856467247,
0.21595627069473267,
-0.21964015066623688,
-0.149916410446167,
0.9258179068565369,
... |
func CreateContact(w http.ResponseWriter, r *http.Request) {
err := r.ParseForm()
if err != nil {
setting.Renderer.JSON(w, http.StatusBadRequest, err)
}
contact := new(models.Contact)
contact.ID = bson.NewObjectId()
decoder := schema.NewDecoder()
err = decoder.Decode(contact, r.PostForm)
if err != nil {
... | [
-0.4696098268032074,
-0.5901978611946106,
0.9921618700027466,
0.8349828720092773,
0.1502373367547989,
0.37330055236816406,
-0.5478777885437012,
-0.30662134289741516,
-0.058621443808078766,
0.6004928350448608,
-0.21364906430244446,
-1.1503651142120361,
-0.6399158835411072,
0.407756716012954... |
func (r *RMFileInfo) Debug(d string) {
if r.Debugging {
fmt.Println(d)
}
} | [
1.1516472101211548,
0.19449816644191742,
0.4845292270183563,
-0.9136270880699158,
0.6623194217681885,
0.6255183815956116,
0.12680794298648834,
0.33057764172554016,
0.0801219791173935,
-0.4174356460571289,
0.8259716629981995,
0.04912860319018364,
-0.30966198444366455,
0.8458027243614197,
... |
func (r *RMFileInfo) InsertedPages() string {
return r.insertedPages.insertedPageNumbers()
} | [
0.47570106387138367,
-0.24609506130218506,
0.1018444299697876,
-1.0618244409561157,
0.4097968637943268,
0.346078485250473,
0.22316418588161469,
0.5103647112846375,
0.28634169697761536,
-0.14762142300605774,
-0.18354667723178864,
-0.6853858828544617,
-1.2992918491363525,
0.40303781628608704... |
func (ip insertedPages) insertedPageNos() []int {
var o []int
for _, v := range ip {
o = append(o, v+1)
}
return o
} | [
-0.701259195804596,
0.5035454630851746,
0.34944087266921997,
-0.12293550372123718,
0.7519723773002625,
-0.5526844263076782,
-0.04505592957139015,
0.5405957102775574,
0.02714446932077408,
-0.14006692171096802,
-0.776997447013855,
0.2855665981769562,
-0.38090282678604126,
0.02495629899203777... |
func (ip insertedPages) insertedPageNumbers() string {
var s []string
for _, n := range ip.insertedPageNos() {
s = append(s, strconv.Itoa(n))
}
o := strings.Join(s, " and ")
n := strings.Count(o, " and ")
if n > 1 {
o = strings.Replace(o, " and ", ", ", n-1)
}
return o
} | [
-0.49298998713493347,
-0.19818919897079468,
0.5386055707931519,
-0.7793210744857788,
-0.05836869403719902,
-0.6100333333015442,
-0.2160699963569641,
1.4362211227416992,
0.3412867486476898,
-0.33561864495277405,
-0.3417890965938568,
-0.512111246585846,
-0.6712517142295837,
0.505907356739044... |
func (r *RMFileInfo) PageIterate() (pageNo, pdfPageNo int, inserted, isTemplate bool, reader *io.ReadSeeker) {
pageNo = r.thisPageNo
r.thisPageNo++
// if there is only a template, always return the first page
if r.pdfPath == "" {
pdfPageNo = 0
isTemplate = true
reader = &r.templateReader
return
}
// old... | [
-0.029604222625494003,
-0.6530011892318726,
0.5741989016532898,
-0.8161424994468689,
0.16854949295520782,
-0.5301828980445862,
0.501652717590332,
0.39194023609161377,
0.13993516564369202,
-0.0841207429766655,
1.3852684497833252,
-0.71114182472229,
-0.7225394248962402,
0.5172163844108582,
... |
func (r *RMPage) RMFile() fs.File {
return r.rm
} | [
0.3971259295940399,
-0.23867858946323395,
0.31230753660202026,
-0.1555027812719345,
0.29459065198898315,
0.871776282787323,
-0.00632924260571599,
0.6707506775856018,
0.4605197310447693,
-0.48619604110717773,
0.9835013747215271,
-0.9087142944335938,
-0.3431814908981323,
-0.04449764639139175... |
func (r *RMPage) RMFilePath() string {
return r.rmPath
} | [
0.5228353142738342,
-0.2334255576133728,
0.10015544295310974,
-0.3850483000278473,
0.5856401324272156,
0.8399733304977417,
-0.10461082309484482,
0.7163239121437073,
0.4987792670726776,
0.7536513805389404,
0.14263096451759338,
-0.4683969020843506,
-1.0835487842559814,
0.5584205389022827,
... |
func (t *epochTime) UnmarshalJSON(s []byte) (err error) {
r := strings.Replace(string(s), `"`, ``, -1)
q, err := strconv.ParseInt(r, 10, 64)
if err != nil {
return err
}
eT := time.Unix(q/1000, 0)
// fmt.Printf("eT, %+v | %s\n", eT, string(eT.Format(time.RFC822)))
*(*time.Time)(t) = eT
return
} | [
-0.7261613607406616,
0.4825311005115509,
0.5916609168052673,
-1.780700445175171,
-0.726855993270874,
-0.5516960024833679,
-0.5968610048294067,
0.31205177307128906,
-0.35053613781929016,
1.4520394802093506,
-1.1409153938293457,
0.18335311114788055,
0.5457212328910828,
0.5223003625869751,
... |
func (t epochTime) String() string {
return time.Time(t).String()
} | [
-0.23870901763439178,
-0.36109575629234314,
0.049945514649152756,
-0.9835607409477234,
-0.06406964361667633,
1.177032470703125,
-0.7455772757530212,
-1.2007365226745605,
-0.7448551058769226,
1.330727219581604,
-0.7557743787765503,
0.1986527144908905,
0.602253258228302,
0.24029141664505005,... |
func (t epochTime) Format(str string) string {
return time.Time(t).Format(str)
} | [
-0.0023054315242916346,
-0.2897873520851135,
0.2783857583999634,
-0.9127264022827148,
-0.28861358761787415,
0.3965857923030853,
-1.249938726425171,
-0.6924922466278076,
-0.26143336296081543,
1.2365548610687256,
0.5468557476997375,
0.5108475685119629,
0.5911560654640198,
0.8985506296157837,... |
func checkFileExists(f string) error {
if _, err := os.Stat(f); os.IsNotExist(err) {
return err
}
return nil
} | [
0.5707469582557678,
-0.09871390461921692,
0.5292922258377075,
0.19327037036418915,
1.6330311298370361,
1.3784902095794678,
-0.5892250537872314,
0.36902403831481934,
-0.840883195400238,
0.30045267939567566,
-0.08463763445615768,
-0.12163228541612625,
0.5270464420318604,
0.6398007273674011,
... |
func RMFiler(inputpath string, template string) (RMFileInfo, error) {
rm := RMFileInfo{}
// rm.Debugging = true
var err error
// make a remarkable file system of files and scan the file system
if filepath.Ext(strings.ToLower(inputpath)) == ".zip" {
rm.RmFS, err = NewZipRmFS(inputpath, template)
if err != nil... | [
-0.27470171451568604,
-1.2218903303146362,
0.5802662372589111,
-0.5100049376487732,
-0.5239152312278748,
-0.36649319529533386,
0.3486545979976654,
0.06013018637895584,
-0.1383771151304245,
-0.05658580735325813,
0.1894313097000122,
-0.30108800530433655,
-0.24357947707176208,
-0.003050405997... |
func (ca *CreateGitAction) ToGitActionConfig(version string) (*models.GitActionConfig, error) {
return &models.GitActionConfig{
ReleaseID: ca.Release.Model.ID,
GitRepo: ca.GitRepo,
GitBranch: ca.GitBranch,
ImageRepoURI: ca.ImageRepoURI,
DockerfilePath: ca.Dock... | [
-0.23265738785266876,
-0.7232945561408997,
0.45413869619369507,
-0.7826785445213318,
0.4976547062397003,
0.6183369755744934,
0.6403372883796692,
0.12323621660470963,
-0.4111039936542511,
1.368186354637146,
-1.2342525720596313,
0.5192928910255432,
-0.04902191460132599,
0.7523180246353149,
... |
func atoi(in string) int {
n, err := strconv.Atoi(in)
must(err)
return n
} | [
-0.1952025145292282,
-0.6736589074134827,
0.5174504518508911,
-0.40160176157951355,
-1.3072116374969482,
0.039655812084674835,
0.09930648654699326,
0.5786252021789551,
-1.3806558847427368,
0.6041029095649719,
-0.9428554177284241,
0.24299630522727966,
-0.0774049311876297,
-1.019755244255066... |
func ErrWriter(err error) io.Writer {
return &errWriter{err: err}
} | [
-0.29353252053260803,
0.2728165090084076,
-0.21130938827991486,
0.7824827432632446,
-0.8237701654434204,
-0.45423632860183716,
-0.2036338746547699,
0.3758903741836548,
0.48806366324424744,
-0.40134909749031067,
-0.41001662611961365,
-0.5832207202911377,
0.4649013876914978,
0.58888316154479... |
func NewNetworkDns(classId string, objectType string) *NetworkDns {
this := NetworkDns{}
this.ClassId = classId
this.ObjectType = objectType
return &this
} | [
-0.3817056715488434,
-0.29443714022636414,
0.45650017261505127,
1.0126533508300781,
0.03225544095039368,
-0.053371500223875046,
-0.5402353405952454,
-0.6280211806297302,
0.8688797950744629,
-0.3714637756347656,
-1.830370306968689,
-0.11620926111936569,
-0.4250141978263855,
0.11187559366226... |
func NewNetworkDnsWithDefaults() *NetworkDns {
this := NetworkDns{}
var classId string = "network.Dns"
this.ClassId = classId
var objectType string = "network.Dns"
this.ObjectType = objectType
return &this
} | [
-0.35504162311553955,
-0.06492935866117477,
0.10022500157356262,
0.8094418048858643,
0.6774612069129944,
-0.3052055239677429,
-0.47607097029685974,
-0.9399861097335815,
0.8920158743858337,
-0.7514533996582031,
-1.6307969093322754,
-1.2144737243652344,
-0.31135016679763794,
0.42104738950729... |
func (o *NetworkDns) GetClassId() string {
if o == nil {
var ret string
return ret
}
return o.ClassId
} | [
0.5099144577980042,
0.043613284826278687,
0.08246492594480515,
0.655220627784729,
0.26814496517181396,
0.7891219854354858,
0.2665116786956787,
0.1671079397201538,
1.4662768840789795,
-0.892030656337738,
0.3379284739494324,
-0.14017224311828613,
-0.29891419410705566,
0.2402217835187912,
0... |
func (o *NetworkDns) GetClassIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.ClassId, true
} | [
-0.4663265347480774,
0.42963385581970215,
0.6961373686790466,
0.924696683883667,
0.4951549768447876,
0.642170786857605,
0.5484779477119446,
0.7249779105186462,
0.6353482604026794,
-0.16525089740753174,
-1.0325871706008911,
-0.4545702636241913,
0.04813968390226364,
0.7785658836364746,
-0.... |
func (o *NetworkDns) SetClassId(v string) {
o.ClassId = v
} | [
0.011292031034827232,
-0.00893209408968687,
-0.14421787858009338,
-0.19802474975585938,
-0.19827890396118164,
0.633516788482666,
-0.17957419157028198,
0.5210673809051514,
1.2523095607757568,
0.2231282889842987,
-0.42882975935935974,
0.4425075948238373,
-0.342716783285141,
0.328490823507308... |
func (o *NetworkDns) GetObjectType() string {
if o == nil {
var ret string
return ret
}
return o.ObjectType
} | [
0.43006736040115356,
0.6237744092941284,
0.03606719151139259,
-0.09807566553354263,
0.7643231153488159,
0.46849411725997925,
-0.14880289137363434,
-0.35684627294540405,
0.41590258479118347,
-0.30308958888053894,
-0.2801569402217865,
-0.8788896799087524,
-0.76933753490448,
-0.53282028436660... |
func (o *NetworkDns) GetObjectTypeOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.ObjectType, true
} | [
-0.38842153549194336,
0.2693297266960144,
0.6586841344833374,
-0.2673475444316864,
0.29269102215766907,
0.2990637719631195,
-0.010255828499794006,
0.18832294642925262,
-0.059392157942056656,
1.7069171667099,
-1.6048003435134888,
-1.5489455461502075,
0.31650012731552124,
-0.1003580540418624... |
func (o *NetworkDns) SetObjectType(v string) {
o.ObjectType = v
} | [
0.17175458371639252,
0.5286664366722107,
-0.04492279514670372,
-0.7484191656112671,
0.2768741250038147,
0.6130797266960144,
-0.5705001354217529,
-0.4916864335536957,
0.16576537489891052,
0.42481347918510437,
-1.164065957069397,
-0.42818427085876465,
-0.4797550141811371,
-0.4184422194957733... |
func (o *NetworkDns) GetAdditionalDomains() []string {
if o == nil {
var ret []string
return ret
}
return o.AdditionalDomains
} | [
0.19427494704723358,
0.15944115817546844,
0.20207013189792633,
0.05788857489824295,
-0.11563288420438766,
0.7116971611976624,
-0.08950426429510117,
-0.38541239500045776,
1.599916696548462,
-0.9446174502372742,
-0.3740881383419037,
0.5117335319519043,
-0.4929406940937042,
1.340919852256775,... |
func (o *NetworkDns) GetAdditionalDomainsOk() ([]string, bool) {
if o == nil || o.AdditionalDomains == nil {
return nil, false
}
return o.AdditionalDomains, true
} | [
0.11400403082370758,
-0.5117211937904358,
0.026009244844317436,
-0.3074934482574463,
-0.9755683541297913,
0.10250464081764221,
0.577782392501831,
-0.5342501997947693,
0.760668933391571,
0.5274059772491455,
-0.8020521402359009,
-0.25634369254112244,
0.4237225353717804,
1.3810430765151978,
... |
func (o *NetworkDns) HasAdditionalDomains() bool {
if o != nil && o.AdditionalDomains != nil {
return true
}
return false
} | [
0.6903863549232483,
0.4345572590827942,
0.16811230778694153,
-1.0357201099395752,
0.005303632467985153,
-0.15507374703884125,
-0.03603232279419899,
-0.1365814357995987,
1.0559858083724976,
-0.5806756615638733,
-0.5364751815795898,
-0.4413710832595825,
0.3707835078239441,
1.1595256328582764... |
func (o *NetworkDns) SetAdditionalDomains(v []string) {
o.AdditionalDomains = v
} | [
-0.39969897270202637,
0.055453527718782425,
-0.03881965950131416,
-0.9363401532173157,
-0.311941534280777,
0.4019085466861725,
0.11366461217403412,
-0.9552730917930603,
1.2916496992111206,
-0.22030231356620789,
-0.9052587747573853,
0.47286832332611084,
-0.41191819310188293,
1.2763739824295... |
func (o *NetworkDns) GetDefaultDomain() string {
if o == nil || o.DefaultDomain == nil {
var ret string
return ret
}
return *o.DefaultDomain
} | [
-0.027040762826800346,
0.5810486674308777,
0.18363524973392487,
0.7204222679138184,
0.5391643643379211,
0.11867919564247131,
0.5288817882537842,
-0.4121237099170685,
1.0892006158828735,
-1.07794988155365,
-0.43397852778434753,
-0.23491285741329193,
-1.2954171895980835,
1.4022560119628906,
... |
func (o *NetworkDns) GetDefaultDomainOk() (*string, bool) {
if o == nil || o.DefaultDomain == nil {
return nil, false
}
return o.DefaultDomain, true
} | [
-0.6040902733802795,
0.6513709425926208,
0.3260810971260071,
0.5218670964241028,
0.34259968996047974,
-0.009941683150827885,
1.0546520948410034,
0.240878164768219,
0.5091078877449036,
0.3010571300983429,
-1.4080742597579956,
-0.3053990304470062,
-0.40249550342559814,
1.5084301233291626,
... |
func (o *NetworkDns) HasDefaultDomain() bool {
if o != nil && o.DefaultDomain != nil {
return true
}
return false
} | [
-0.010105378925800323,
0.6713846921920776,
0.16105075180530548,
0.1389029175043106,
1.1690651178359985,
-0.7454347014427185,
0.07841533422470093,
0.05934856832027435,
0.8508853912353516,
-1.207046627998352,
-1.1742329597473145,
0.28525829315185547,
-0.6925770044326782,
1.557665228843689,
... |
func (o *NetworkDns) SetDefaultDomain(v string) {
o.DefaultDomain = &v
} | [
-0.29773908853530884,
0.5872007608413696,
-0.05279393121600151,
-0.36263471841812134,
0.04324296861886978,
-0.11316827684640884,
-0.30606767535209656,
-1.2640516757965088,
0.6148276329040527,
-0.7448062300682068,
-0.9610073566436768,
1.2905550003051758,
-1.0990132093429565,
0.4344491660594... |
func (o *NetworkDns) GetNameServers() []string {
if o == nil {
var ret []string
return ret
}
return o.NameServers
} | [
-0.6539873480796814,
0.3425750732421875,
0.32064172625541687,
0.30779677629470825,
-0.004607329610735178,
0.40617355704307556,
-0.21710939705371857,
-1.6790136098861694,
1.395970344543457,
-0.003564273240044713,
-1.6376230716705322,
-0.342144638299942,
-1.0908117294311523,
0.50844925642013... |
func (o *NetworkDns) GetNameServersOk() ([]string, bool) {
if o == nil || o.NameServers == nil {
return nil, false
}
return o.NameServers, true
} | [
-0.7583827972412109,
0.3789726197719574,
0.28117862343788147,
0.20903554558753967,
-0.9650095105171204,
0.10009591281414032,
0.3605365455150604,
-1.8762354850769043,
0.6802757382392883,
1.1076936721801758,
-1.9539583921432495,
-0.7682603001594543,
-0.21686415374279022,
1.0292699337005615,
... |
func (o *NetworkDns) HasNameServers() bool {
if o != nil && o.NameServers != nil {
return true
}
return false
} | [
-0.14295290410518646,
0.8007616400718689,
0.16005323827266693,
-0.7075857520103455,
0.08073879033327103,
-0.330304890871048,
-0.21879495680332184,
-1.4337238073349,
0.8800851702690125,
-0.0629623606801033,
-1.50983726978302,
-1.1210312843322754,
-0.7756667733192444,
0.8128984570503235,
-... |
func (o *NetworkDns) SetNameServers(v []string) {
o.NameServers = v
} | [
-1.177419662475586,
0.37759312987327576,
0.08418706804513931,
-0.6562612652778625,
-0.42114195227622986,
0.282443106174469,
-0.3290582299232483,
-2.0607104301452637,
1.171147108078003,
0.7094722390174866,
-1.995560646057129,
-0.37775832414627075,
-0.8655779957771301,
0.6252380609512329,
... |
func (o *NetworkDns) GetVrfName() string {
if o == nil || o.VrfName == nil {
var ret string
return ret
}
return *o.VrfName
} | [
0.21129803359508514,
0.10929851979017258,
0.38034600019454956,
0.6298519968986511,
-0.23599883913993835,
-0.8072240948677063,
0.051639702171087265,
0.09187956899404526,
0.14346541464328766,
-0.41623595356941223,
-0.6407057046890259,
-1.8254221677780151,
-1.3852752447128296,
0.2943652868270... |
func (o *NetworkDns) GetVrfNameOk() (*string, bool) {
if o == nil || o.VrfName == nil {
return nil, false
}
return o.VrfName, true
} | [
0.597539484500885,
-0.15331444144248962,
0.529017984867096,
0.2993326485157013,
-0.026219915598630905,
-0.6428142189979553,
-0.026538854464888573,
0.48316821455955505,
-0.241840198636055,
0.7245331406593323,
-1.305127501487732,
-1.198134183883667,
-0.44473347067832947,
0.3043975234031677,
... |
func (o *NetworkDns) HasVrfName() bool {
if o != nil && o.VrfName != nil {
return true
}
return false
} | [
0.6942000389099121,
0.29128497838974,
0.40978819131851196,
-0.240224689245224,
0.6610101461410522,
-1.5666500329971313,
-0.2384667694568634,
0.5740914940834045,
-0.339903324842453,
-0.675233006477356,
-1.1936873197555542,
-1.333415150642395,
-1.0659748315811157,
0.46195748448371887,
-0.3... |
func (o *NetworkDns) SetVrfName(v string) {
o.VrfName = &v
} | [
0.3622024357318878,
-0.277749240398407,
-0.0203652735799551,
-0.39016661047935486,
-0.7481964826583862,
-1.014591097831726,
-0.5964949131011963,
-0.5339152812957764,
-0.13883565366268158,
-0.19264265894889832,
-1.222888708114624,
-0.0767393484711647,
-0.8777125477790833,
-0.506547749042511... |
func (o *NetworkDns) GetNetworkElement() NetworkElementRelationship {
if o == nil || o.NetworkElement == nil {
var ret NetworkElementRelationship
return ret
}
return *o.NetworkElement
} | [
-0.31344202160835266,
0.7413766384124756,
0.6630584597587585,
0.8158068060874939,
0.22002127766609192,
0.025039680302143097,
0.564624547958374,
-0.5998812317848206,
0.5795971155166626,
-1.1198062896728516,
-0.7850491404533386,
-1.2610753774642944,
-1.174006462097168,
0.5436267852783203,
... |
func (o *NetworkDns) GetNetworkElementOk() (*NetworkElementRelationship, bool) {
if o == nil || o.NetworkElement == nil {
return nil, false
}
return o.NetworkElement, true
} | [
-0.6676633954048157,
0.6490482091903687,
0.3537578284740448,
1.0031452178955078,
0.4870365560054779,
0.36062750220298767,
0.4582366943359375,
0.10663493722677231,
0.2572839856147766,
-0.36175572872161865,
-1.2394472360610962,
-1.3446189165115356,
-0.6236089468002319,
0.7073765397071838,
... |
func (o *NetworkDns) HasNetworkElement() bool {
if o != nil && o.NetworkElement != nil {
return true
}
return false
} | [
-0.29250219464302063,
0.9072267413139343,
0.5023670196533203,
0.0006025600014254451,
0.6910601854324341,
-0.35647639632225037,
0.3846413791179657,
-0.3011385500431061,
-0.581943154335022,
-0.7088034749031067,
-1.2712843418121338,
-1.6549218893051147,
-0.43341347575187683,
0.656467318534851... |
func (o *NetworkDns) SetNetworkElement(v NetworkElementRelationship) {
o.NetworkElement = &v
} | [
-0.08552954345941544,
0.4625812768936157,
0.24145768582820892,
-0.11515486985445023,
0.15480704605579376,
0.14991800487041473,
-0.4106471836566925,
-1.2164020538330078,
0.23923957347869873,
-0.6674126386642456,
-0.5588396787643433,
-0.3878990113735199,
-0.5624622106552124,
-0.1706140786409... |
func (o *NetworkDns) GetRegisteredDevice() AssetDeviceRegistrationRelationship {
if o == nil || o.RegisteredDevice == nil {
var ret AssetDeviceRegistrationRelationship
return ret
}
return *o.RegisteredDevice
} | [
-0.10064193606376648,
1.809606671333313,
0.2919081151485443,
0.8645753860473633,
0.6477072834968567,
-0.7596946954727173,
0.9949515461921692,
-0.20403647422790527,
0.8763655424118042,
-1.084398865699768,
-0.029515104368329048,
-0.3401576578617096,
-0.7375057935714722,
0.6856451630592346,
... |
func (o *NetworkDns) GetRegisteredDeviceOk() (*AssetDeviceRegistrationRelationship, bool) {
if o == nil || o.RegisteredDevice == nil {
return nil, false
}
return o.RegisteredDevice, true
} | [
-0.6577392816543579,
1.222617745399475,
0.31806325912475586,
0.6127187609672546,
0.05672256276011467,
-0.02745809406042099,
1.5439043045043945,
0.4008687734603882,
0.46957820653915405,
0.5893235206604004,
-0.5623478889465332,
-0.12214270234107971,
0.2133844643831253,
0.9525260329246521,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.