text
stringlengths
11
6.3k
embedding
listlengths
768
768
func (m *MongoDB) Close() error { return m.client.Disconnect(m.ctx) }
[ -0.46812066435813904, 0.22075051069259644, 0.26317286491394043, 0.3675687611103058, 0.13025274872779846, 0.43671751022338867, -0.8537235260009766, -0.8383686542510986, -0.3168478310108185, -0.06096874549984932, 0.5936571359634399, 0.09446138143539429, -2.134009599685669, 0.297596275806427,...
func (m *MongoDB) Collection(name string) (*mongo.Collection, error) { coll, ok := m.coll[name] if !ok { return nil, fmt.Errorf("not defined collection %s", name) } return coll, nil }
[ -0.17106647789478302, -1.1754329204559326, 0.5361256003379822, 0.40732333064079285, 0.0688084289431572, -0.4555542767047882, -0.13086016476154327, -0.7568415999412537, -0.2741429805755615, 0.5523800253868103, 0.08180579543113708, 0.23526927828788757, 0.37634265422821045, 0.8739368319511414...
func (m *MongoDB) Collections() map[string]*mongo.Collection { return m.coll }
[ -0.4862334728240967, -1.0778863430023193, 0.27782130241394043, 0.06819771230220795, -0.22054950892925262, 0.8931794166564941, -0.3132389187812805, -0.7184696793556213, 0.40648576617240906, -0.48665887117385864, -0.4438842236995697, -0.341800719499588, 0.18249182403087616, 0.987009346485137...
func (m *MongoDB) CollectionsAreExisting() bool { if m.client == nil { return false } if m.db == nil { return false } if m.coll == nil { return false } if len(m.coll) == 0 { return false } colls, err := m.db.ListCollectionNames(m.ctx, bson.M{}) if err != nil { return false } for name := range m.c...
[ -0.23120512068271637, -0.5236992239952087, 0.6086177825927734, -0.8651403188705444, 1.1107910871505737, 0.6796932220458984, -0.30439555644989014, -0.26830562949180603, -0.2326967418193817, 0.9359877705574036, -0.06252913922071457, -0.9793674945831299, -1.0214314460754395, 0.914387047290802...
func (m *MongoDB) Connect() error { return m.client.Connect(m.ctx) }
[ -0.4657156467437744, 0.12439041584730148, 0.3092876374721527, 1.1816924810409546, -0.04226415976881981, 0.3690522611141205, -0.792646050453186, -0.9991782903671265, -0.7474150657653809, 0.2836534380912781, 0.4493706226348877, 0.3217034935951233, -1.1379350423812866, 0.5559040307998657, -...
func (m *MongoDB) Context() context.Context { return m.ctx }
[ 0.18664763867855072, -0.34270724654197693, 0.09105440974235535, 0.35783958435058594, 0.46457478404045105, 0.9561421275138855, 0.26856479048728943, -0.4508345425128937, 1.0428818464279175, -0.3599574863910675, 0.08664612472057343, 0.6641573905944824, -0.8797505497932434, -0.0333542823791503...
func (m *MongoDB) CreateIndex(name, key string, order int) (string, error) { coll, ok := m.coll[name] if !ok { return "", fmt.Errorf("not defined collection %s", name) } asscending := 1 if order == -1 { asscending = -1 } model := mongo.IndexModel{ Keys: bson.D{{Key: key, Value: asscending}}, //Options:...
[ -0.3393625319004059, 0.03342778608202934, 0.6383230090141296, 0.6487522721290588, -0.13948984444141388, 0.2747233510017395, -0.03694777190685272, -0.5503498911857605, -0.3696122169494629, 1.114760160446167, -0.4773176610469818, -0.21823090314865112, -0.20320436358451843, 0.585769772529602,...
func (m *MongoDB) Database() (*mongo.Database, error) { if m.db == nil { return nil, fmt.Errorf("database is not defined") } return m.db, nil }
[ -0.24079911410808563, -0.127083882689476, 0.14845114946365356, 1.5226315259933472, 1.1298753023147583, -0.22712068259716034, 0.17473134398460388, -0.2885490953922272, 0.3358769416809082, -0.08967364579439163, 0.5863406658172607, -0.14179591834545135, -0.8216744065284729, 0.985579252243042,...
func (m *MongoDB) DatabaseIsExisting() bool { if m.client == nil { return false } if m.db == nil { return false } name := m.db.Name() databases, _ := m.client.ListDatabaseNames(m.ctx, bson.M{}) return inStringSlice(name, databases) }
[ -0.7454319000244141, 0.7400133609771729, 0.2426581084728241, -0.1662018597126007, 1.2866097688674927, 0.2228168547153473, -0.9062116742134094, 0.2916973829269409, 0.6914451122283936, 1.2919580936431885, -0.2120647430419922, 0.06087275967001915, -1.7013601064682007, 0.22184889018535614, -...
func (m *MongoDB) DeleteOne(name string, filter interface{}) (int64, error) { coll, err := m.selCollection(name) if err != nil { return -1, err } result, err := coll.DeleteOne(m.ctx, filter) if err != nil { return -1, err } return result.DeletedCount, nil }
[ -1.0101271867752075, 0.3968241810798645, 0.8703392148017883, 0.3323341906070709, -0.09761027246713638, -0.3218599557876587, 0.7383848428726196, 0.018191633746027946, -0.42348426580429077, 0.43061119318008423, -0.6771060228347778, -0.024842072278261185, -1.2893686294555664, 0.15949706733226...
func (m *MongoDB) EstimatedDocumentCount(name string) (int64, error) { coll, err := m.selCollection(name) if err != nil { return -1, err } // specify the MaxTime option to limit the amount of time the operation // can run on the server opts := options.EstimatedDocumentCount().SetMaxTime(2 * time.Second) retu...
[ -1.0960341691970825, 0.031524937599897385, 0.7957921028137207, -0.2466871440410614, -1.0280492305755615, -0.320081889629364, 0.49697166681289673, -0.21576078236103058, -0.30265966057777405, 1.2644705772399902, -0.7799683809280396, 0.16752737760543823, -1.0017566680908203, 0.798955857753753...
func (m *MongoDB) Find( name string, filter interface{}, docs *[]map[string]interface{}, opts ...*options.FindOptions, ) error { coll, err := m.selCollection(name) if err != nil { return err } var cursor *mongo.Cursor if len(opts) == 0 { cursor, err = coll.Find(m.ctx, filter) } else { cursor, err = col...
[ -0.06119146570563316, 0.031105121597647667, 0.5849342942237854, 0.28213202953338623, 0.03709833696484566, -0.3208741545677185, -0.25802430510520935, -0.945408284664154, -0.04453900083899498, 0.7393511533737183, 0.43708059191703796, 0.2377849668264389, -1.359794020652771, 0.5394242405891418...
func (m *MongoDB) FindOne( name string, filter interface{}, doc interface{}, ) error { coll, err := m.selCollection(name) if err != nil { return err } return coll.FindOne(m.ctx, filter).Decode(doc) }
[ -0.33575695753097534, 0.2106138914823532, 0.44405093789100647, 0.48576101660728455, -0.4173797070980072, -0.03450516238808632, -0.027023833245038986, -0.5946303606033325, -0.5700464844703674, 0.799640417098999, -0.5894355177879333, 0.13133865594863892, -1.4491853713989258, 0.13049346208572...
func (m *MongoDB) InsertMany(name string, docs []interface{}) error { coll, err := m.selCollection(name) if err != nil { return err } _, err = coll.InsertMany(m.ctx, docs) return err }
[ -1.7503873109817505, 0.49723318219184875, 0.6903060674667358, 0.09360046684741974, 0.7527102828025818, -0.31325826048851013, -0.2383246272802353, -0.9316308498382568, -0.24063952267169952, 0.8425942659378052, -1.0403094291687012, -0.933360755443573, -1.1831365823745728, 0.6969408988952637,...
func (m *MongoDB) InsertOne(name string, doc interface{}) error { coll, err := m.selCollection(name) if err != nil { return err } _, err = coll.InsertOne(m.ctx, doc) return err }
[ -0.9756618142127991, 0.6313401460647583, 0.5364223718643188, 0.2472444623708725, 0.46735212206840515, 0.5317692160606384, 0.6562464237213135, -0.32736507058143616, -0.6216336488723755, 0.5472549796104431, -1.0392013788223267, -0.4942689538002014, -1.6017979383468628, 0.09845059365034103, ...
func (m *MongoDB) ReplaceOne( name string, filter interface{}, doc interface{}, upsert bool, ) (bool, error) { var created bool coll, err := m.selCollection(name) if err != nil { return created, err } opts := options.Replace().SetUpsert(upsert) result, err := coll.ReplaceOne(m.ctx, filter, doc, opts) if e...
[ -0.5904820561408997, 0.3195134699344635, 1.058097004890442, 0.09909909218549728, 0.20654788613319397, -0.020247237756848335, 0.5380208492279053, 0.5963348150253296, -0.2602463662624359, 0.9639383554458618, -1.3548331260681152, -0.5339829921722412, -1.6166406869888306, 0.1895090937614441, ...
func (m *MongoDB) Ping() error { return m.client.Ping(m.ctx, nil) }
[ -0.3420794904232025, 0.3343503475189209, 0.09853159636259079, 0.899262547492981, 1.3751804828643799, 0.5030811429023743, -0.02404843643307686, 0.018276168033480644, -0.0786149650812149, 1.0709484815597534, 0.4800876975059509, 0.07548382878303528, -1.2828303575515747, 0.4267866313457489, ...
func (m *MongoDB) SetDatabase(name string) { m.db = m.client.Database(name) }
[ -0.7016084790229797, 0.6422037482261658, 0.053607601672410965, 0.6271806359291077, 0.5257998704910278, 0.10705031454563141, -0.3926752209663391, -0.40805676579475403, 0.1649046540260315, 0.4265764653682709, -1.1257317066192627, 0.25483235716819763, -1.1964221000671387, 1.4335951805114746, ...
func (m *MongoDB) SetCollections(names ...string) error { if m.db == nil { return fmt.Errorf("database is not configured yet") } for _, name := range names { m.coll[name] = m.db.Collection(name) } return nil }
[ -0.5896888971328735, 0.5756757259368896, 0.41441676020622253, 0.2322595715522766, 0.4657210409641266, 0.6415228843688965, -0.4939229488372803, -1.4744160175323486, -0.38862887024879456, -0.2288302630186081, -1.009451150894165, -0.8529843688011169, -0.7414330244064331, 1.2046018838882446, ...
func Login(registry string) (bool, error) { logrus.Info("log in: ", registry) if strings.Contains(registry, "docker") { registry = "https://" + registry + "/v2" } else { registry = "http://" + registry + "/v2" } client := httpclient.Get() request, err := http.NewRequest("GET", registry, nil) response, er...
[ -1.186400294303894, 0.20479342341423035, 0.9790663719177246, 0.09655892848968506, -0.7622227072715759, 0.2310778945684433, 0.11276764422655106, 0.4675438702106476, 0.45741006731987, -0.1796729862689972, -0.3160851299762726, 0.9529233574867249, -0.4440865218639374, -0.2056516706943512, 0....
func CachedSources(size string) (sources []string) { key := fmt.Sprintf("models.image.cachedfallbackimage:%s", size) s := reflect.ValueOf(cache.Client.Get(key)) if !cache.Client.IsExist(key) { var q string excludes := ` src not like '%xvideos.%' AND src not like '%erovideo.%' AND src not like '%redtube...
[ -1.131377935409546, 0.6490877866744995, 0.8317475914955139, -0.6389443874359131, -0.5136903524398804, -1.1333404779434204, -0.18037383258342743, -0.8083712458610535, 1.0604075193405151, 0.20303818583488464, -0.995842456817627, -0.3197397291660309, -0.6280138492584229, 0.9099006652832031, ...
func BufferedRead(reader *bufio.Reader, msgBuf []byte) (uint64, error) { len := uint64(0) var lengthBuf [8]byte _, err := io.ReadFull(reader, lengthBuf[:]) length := binary.BigEndian.Uint64(lengthBuf[:]) if err != nil { return len, err } for bytesRead := uint64(0); bytesRead < length; { readLen, err := reade...
[ 0.9668674468994141, -0.23101134598255157, 0.8106306195259094, -0.9358740448951721, 0.32910341024398804, 0.0445483922958374, 0.6741651892662048, 0.053927723318338394, 0.18005795776844025, -0.6672738790512085, -0.2635372281074524, 0.6034104824066162, -0.6500445604324341, 0.5998930931091309, ...
func BufferedWrite(writer *bufio.Writer, data []byte) error { var lengthBuf [8]byte binary.BigEndian.PutUint64(lengthBuf[:], uint64(len(data))) writer.Write(lengthBuf[:]) writer.Flush() _, err := writer.Write(data) if err != nil { return err } writer.Flush() return nil }
[ 0.5093446373939514, 0.4804219603538513, 0.42957696318626404, -0.4113551378250122, 0.9011164307594299, 0.2362484186887741, 0.416880339384079, -0.06817710399627686, 0.24767234921455383, -0.4082299768924713, -1.3815828561782837, 0.2725030183792114, 0.0786115750670433, 0.35911980271339417, -...
func (ch *ChangeLog) Encode(w io.Writer) { writeSequence(ch.Since, w) for _, entry := range ch.Entries { entry.Encode(w, "") } }
[ 0.1799544245004654, 0.24919648468494415, 0.2515193521976471, 0.4065687656402588, -0.012428777292370796, 0.1130487248301506, 0.010543722659349442, -0.13154301047325134, -1.1706055402755737, 0.5541146993637085, -0.28307315707206726, 0.5263431668281555, -0.12685659527778625, 1.068710565567016...
func (entry *LogEntry) Encode(w io.Writer, parent string) { entry.assertValid() writeUInt8(entry.Flags, w) writeSequence(entry.Sequence, w) writeString(entry.DocID, w) writeString(entry.RevID, w) writeString(parent, w) }
[ 0.8962277173995972, -0.19734086096286774, 0.3045092821121216, -0.18758660554885864, 0.1649797409772873, 0.544075071811676, -0.05176640674471855, -0.5284315347671509, 0.19197794795036316, -0.20534317195415497, 0.5411344170570374, 0.7859824895858765, 0.1200454831123352, 0.007287745364010334,...
func DecodeChangeLog(r *bytes.Reader, afterSeq uint64) (log *ChangeLog) { defer func() { if panicMsg := recover(); panicMsg != nil { // decodeChangeLog panicked. base.Warn("Panic from DecodeChangeLog: %v", panicMsg) } }() return decodeChangeLog(r, afterSeq) }
[ 0.41940343379974365, -0.3553434908390045, 0.03491402789950371, 0.17806202173233032, -1.4343031644821167, -0.6469650268554688, 0.15138539671897888, -0.17735329270362854, -0.000014309835933090653, 0.4330238103866577, -1.1770597696304321, -0.01069970428943634, 0.22620147466659546, 0.380184292...
func TruncateEncodedChangeLog(r *bytes.Reader, maxLength, minLength int, w io.Writer) (removed int, newLength int) { since := readSequence(r) // Find the starting position and sequence of each entry: entryPos := make([]int64, 0, 1000) entrySeq := make([]uint64, 0, 1000) for { pos, err := r.Seek(0, 1) if err !=...
[ 0.6054707765579224, -0.00834375899285078, 0.733038067817688, -0.5107284784317017, -1.1236778497695923, -0.1885800063610077, 0.12957942485809326, 0.47390440106391907, -0.0555734857916832, 0.6277053952217102, -0.4966491758823395, 0.2620629072189331, -0.5062921643257141, 0.10622160136699677, ...
func findPivot(values []uint64, minIndex int) (pivot int, maxBefore uint64) { // First construct a table where minRight[i] is the minimum value in [i..n) n := len(values) minRight := make([]uint64, n) var min uint64 = math.MaxUint64 for i := n - 1; i >= 0; i-- { if values[i] < min { min = values[i] } minR...
[ -0.5385643243789673, 0.5929059386253357, 0.7181240916252136, -0.22007295489311218, -0.9166353940963745, -0.593437910079956, -0.3048924505710602, -0.7822648882865906, -0.00429761316627264, -0.3511373698711395, -0.13139009475708008, -0.2847093343734741, -1.1641135215759277, 0.682578921318054...
func NewJsonnet(a app.App, module, source, paramsPath string) *Jsonnet { return &Jsonnet{ app: a, module: module, source: source, paramsPath: paramsPath, } }
[ 0.059040237218141556, -0.46168598532676697, 0.39922410249710083, -0.17901113629341125, -1.3983919620513916, -0.28362613916397095, -0.7191810607910156, -0.6285536885261536, 0.0842750146985054, -0.021141882985830307, -0.21945664286613464, 0.6350293159484863, 0.19111965596675873, -0.107752427...
func (j *Jsonnet) Name(wantsNameSpaced bool) string { base := filepath.Base(j.source) name := strings.TrimSuffix(base, filepath.Ext(base)) if !wantsNameSpaced { return name } if j.module == "/" { return name } return path.Join(j.module, name) }
[ -0.6207219362258911, -0.1406179517507553, 0.570744514465332, -0.2429855614900589, -0.8434712290763855, 0.44293445348739624, -0.2943388819694519, -0.6938941478729248, -0.26955100893974304, 0.4688379168510437, 0.015197332948446274, -0.24512246251106262, 0.36930719017982483, 0.718764662742614...
func (j *Jsonnet) Type() string { return "jsonnet" }
[ -0.7912583947181702, -0.09155331552028656, 0.26948124170303345, -0.3020695745944977, 0.46622949838638306, 0.6606149673461914, -0.45446377992630005, -1.6831591129302979, 0.4578078091144562, -0.054571960121393204, -0.39559420943260193, 0.2630869448184967, 0.31580039858818054, 0.6503751873970...
func (j *Jsonnet) SetParam(path []string, value interface{}) error { // TODO: make this work at the env level too paramsData, err := j.readParams("") if err != nil { return err } updatedParams, err := params.SetInObject(path, paramsData, j.Name(false), value, paramsComponentRoot) if err != nil { return err ...
[ -0.4732043445110321, -0.6667442321777344, 0.7265968322753906, 0.26195207238197327, 0.09116847068071365, 0.5304881930351257, 0.5259052515029907, 0.32850566506385803, -0.3284798860549927, 0.28896868228912354, 0.4435436427593231, 0.47147995233535767, 0.23910214006900787, 0.3736077845096588, ...
func (j *Jsonnet) DeleteParam(path []string) error { // TODO: make this work at the env level too paramsData, err := j.readParams("") if err != nil { return err } updatedParams, err := params.DeleteFromObject(path, paramsData, j.Name(false), paramsComponentRoot) if err != nil { return err } if err = j.wri...
[ -0.23887309432029724, -0.8674003481864929, 0.6920431852340698, -0.16288796067237854, 0.6516798138618469, 0.33676713705062866, 0.8857924938201904, 0.3715955317020416, -0.1578100323677063, 0.04958720505237579, 0.6007434129714966, 0.49796417355537415, 0.24099735915660858, 0.6042984127998352, ...
func (j *Jsonnet) Params(envName string) ([]ModuleParameter, error) { j.log().WithField("env-name", envName).Debug("getting component params") paramsData, err := j.readParams(envName) if err != nil { return nil, err } props, err := params.ToMap(j.Name(false), paramsData, paramsComponentRoot) if err != nil { ...
[ -0.6565397381782532, -1.0847828388214111, 0.618317723274231, -0.8105807304382324, 0.016160955652594566, 0.023224953562021255, -0.5792387127876282, -0.4280604124069214, -0.12582767009735107, 0.7846516966819763, 0.7661356925964355, 0.8497325778007507, 0.034525394439697266, 1.097185730934143,...
func (j *Jsonnet) Summarize() (Summary, error) { return Summary{ ComponentName: j.Name(false), Type: "jsonnet", }, nil }
[ -0.9927107691764832, 1.4455350637435913, 0.48171037435531616, -0.8014714121818542, 0.34479084610939026, -0.6034713387489319, -1.0578609704971313, -1.0834887027740479, 0.7225492596626282, 0.005185412243008614, -0.5316498875617981, -0.2560146749019623, -0.18346652388572693, 0.435895085334777...
func (j *Jsonnet) ToNode(envName string) (string, ast.Node, error) { n, err := jsonnet.ImportNodeFromFs(j.source, j.app.Fs()) if err != nil { return "", nil, err } return j.Name(false), n, nil }
[ -0.9044801592826843, -0.12542396783828735, 0.6247288584709167, -0.9337588548660278, -0.4249257743358612, -0.6092406511306763, -0.3310075104236603, 0.037320561707019806, 0.2691788375377655, 1.2893071174621582, -0.5596708059310913, -0.06428682059049606, 0.8515116572380066, 0.1004086509346962...
func rootDir() (string, error) { dir, err := os.Getwd() if err != nil { return "", err } lastdir := "" for lastdir != dir { if _, err = os.Stat(filepath.Join(dir, ".gong")); err == nil { return dir, nil } lastdir = dir dir = filepath.Dir(dir) } return "", ErrNoRootDir }
[ 0.5682215690612793, -0.159159854054451, 0.8988686203956604, 0.7398298978805542, -0.6120203137397766, 0.1125829666852951, 0.32897114753723145, -0.860270082950592, 0.6080899238586426, -0.35135188698768616, 0.6526804566383362, 0.43518099188804626, -0.427919864654541, 1.7151238918304443, 0.8...
func gopath() string { rootDir, _ := rootDir() return filepath.Join(rootDir, ".gong.deps") }
[ 0.9372507929801941, 0.33841902017593384, 0.4433897137641907, -0.25001615285873413, 0.2220287322998047, 1.2520779371261597, 0.715506911277771, -0.9216881990432739, -0.07477738708257675, 0.4558241367340088, 0.17406417429447174, 0.08852408826351166, -0.6089068055152893, 0.24600264430046082, ...
func setup(force bool) { rootDir, err := rootDir() if err == nil { if force { fmt.Printf("gong: running setup again for %s\n", rootDir) } else { // no need to do anything, just return return } } else if err != ErrNoRootDir { fmt.Printf("directory issues, can't continue: %v\n", err) os.Exit(2) } e...
[ -0.06066197156906128, 0.6370888352394104, 0.7783540487289429, 0.16516868770122528, 0.21691319346427917, 0.4542372524738312, 1.2908507585525513, -0.009706879034638405, -0.07578104734420776, -0.5788464546203613, -0.045900214463472366, -0.2219170778989792, -0.6740172505378723, 0.6907880306243...
func addAttachedFiles(xRefTable *types.XRefTable, files types.StringSet) (ok bool, err error) { // Ensure a Collection entry in the catalog. err = xRefTable.EnsureCollection() if err != nil { return false, err } for filename := range files { sd, err := xRefTable.NewEmbeddedFileStreamDict(filename) if err ...
[ -0.32833966612815857, 0.38841351866722107, 1.1027299165725708, -0.786183774471283, 0.1917588859796524, 0.667643129825592, 0.5421119332313538, -0.5170004963874817, -0.8711355924606323, 0.26958879828453064, 0.3899534344673157, -0.2477334886789322, -0.7271729707717896, 0.4307546615600586, -...
func removeAttachedFiles(xRefTable *types.XRefTable, files types.StringSet) (ok bool, err error) { log.Debug.Println("removeAttachedFiles begin") if xRefTable.EmbeddedFiles == nil { return false, nil } if len(files) > 0 { for fileName := range files { log.Debug.Printf("removeAttachedFiles: removing %s\n...
[ -0.390840619802475, 0.060616035014390945, 1.0557447671890259, -0.4787197709083557, -1.0578752756118774, 0.05075617507100105, 0.5216591954231262, -0.23670880496501923, -0.5315234065055847, 0.4899190366268158, 0.24418500065803528, -0.5403099060058594, -0.9641947746276855, 0.6595202088356018,...
func List(xRefTable *types.XRefTable) (list []string, err error) { log.Debug.Println("List begin") if !xRefTable.Valid && xRefTable.EmbeddedFiles == nil { xRefTable.EmbeddedFiles, err = xRefTable.LocateNameTree("EmbeddedFiles", false) if err != nil { return nil, err } } if xRefTable.EmbeddedFiles == nil...
[ 0.5192263722419739, -0.6982831358909607, 0.7111141681671143, -0.10992177575826645, 0.49120911955833435, 0.3176223933696747, 0.29382506012916565, 0.22094210982322693, 0.34831830859184265, 0.4815661311149597, 0.11375272274017334, -0.17201070487499237, -0.22510084509849548, 0.8762259483337402...
func Extract(ctx *types.PDFContext, files types.StringSet) (err error) { log.Debug.Println("Extract begin") if !ctx.Valid && ctx.EmbeddedFiles == nil { ctx.EmbeddedFiles, err = ctx.LocateNameTree("EmbeddedFiles", false) if err != nil { return err } } if ctx.EmbeddedFiles == nil { return errors.Errorf(...
[ 0.02398812770843506, -0.7388064861297607, 0.8361777663230896, -0.28772181272506714, -0.3173048496246338, -0.10565289109945297, 0.3090951442718506, -0.3601004481315613, -0.049374423921108246, 0.1136450320482254, 0.9517495632171631, 0.17173947393894196, -0.915229082107544, 0.1804680377244949...
func Add(xRefTable *types.XRefTable, files types.StringSet) (ok bool, err error) { log.Debug.Println("Add begin") if xRefTable.EmbeddedFiles == nil { xRefTable.EmbeddedFiles, err = xRefTable.LocateNameTree("EmbeddedFiles", true) if err != nil { return false, err } } ok, err = addAttachedFiles(xRefTable,...
[ -0.08713629096746445, 0.2671648859977722, 1.0517972707748413, -0.7224364876747131, 0.0430515855550766, 0.596428632736206, -0.11997248232364655, -0.1930253654718399, -0.4401084780693054, 0.46533501148223877, 0.7504791617393494, -0.09136226028203964, -1.1079436540603638, 0.34481528401374817,...
func Remove(xRefTable *types.XRefTable, files types.StringSet) (ok bool, err error) { log.Debug.Println("Remove begin") if !xRefTable.Valid && xRefTable.EmbeddedFiles == nil { xRefTable.EmbeddedFiles, err = xRefTable.LocateNameTree("EmbeddedFiles", false) if err != nil { return false, err } } if xRefTab...
[ -0.036838941276073456, -0.016105009242892265, 0.9490633010864258, -0.49369677901268005, -0.785148561000824, -0.09505774080753326, 0.14155231416225433, 0.11913224309682846, -0.38835033774375916, 0.6046978831291199, 0.2823816239833832, -0.5651069283485413, -1.4306302070617676, -0.09997220337...
func (*EncodeMetaDataRequest) Descriptor() ([]byte, []int) { return file_raptorq_proto_rawDescGZIP(), []int{0} }
[ -0.7778701186180115, 0.3338194489479065, 0.2718130946159363, 0.27073273062705994, -0.376905232667923, 0.6207875609397888, -0.01615222916007042, 0.12482215464115143, -0.6814191341400146, 0.5485435128211975, 0.20348751544952393, 0.8279693126678467, -0.08153524994850159, 0.39616894721984863, ...
func (*EncodeMetaDataReply) Descriptor() ([]byte, []int) { return file_raptorq_proto_rawDescGZIP(), []int{1} }
[ -0.48367708921432495, 0.8459583520889282, 0.050768766552209854, -0.6983729600906372, 0.3094325661659241, -0.008356310427188873, -0.3975203037261963, -0.08663143217563629, -0.23335224390029907, 0.7108150124549866, -0.41737309098243713, 1.459574580192566, -0.7722150683403015, -0.395094484090...
func (*EncodeRequest) Descriptor() ([]byte, []int) { return file_raptorq_proto_rawDescGZIP(), []int{2} }
[ -1.2772369384765625, 0.2913128137588501, 0.5126612186431885, -0.3827216327190399, -0.11526153981685638, 0.2771736681461334, 0.1889878213405609, -0.1163506805896759, -0.5237289667129517, -0.3618231415748596, 0.25482240319252014, 0.6454480290412903, 0.055738892406225204, 0.6188507080078125, ...
func (*EncodeReply) Descriptor() ([]byte, []int) { return file_raptorq_proto_rawDescGZIP(), []int{3} }
[ -0.8795900940895081, 0.39020249247550964, 0.2821686863899231, -0.5822357535362244, 0.3358564078807831, -0.07243616878986359, -0.35380569100379944, -0.32038140296936035, 0.35116732120513916, -0.22101694345474243, -0.7556089758872986, 0.96025550365448, -1.260441541671753, 0.18411855399608612...
func (*DecodeRequest) Descriptor() ([]byte, []int) { return file_raptorq_proto_rawDescGZIP(), []int{4} }
[ -1.479583740234375, 0.07523056119680405, 0.5091441869735718, -0.3209196925163269, -0.0779346153140068, -0.4577561616897583, 0.664246678352356, 0.5761372447013855, -0.908727765083313, -1.0657670497894287, -0.7160069346427917, 0.3192022144794464, 0.06963620334863663, 1.009300947189331, 0.9...
func (*DecodeReply) Descriptor() ([]byte, []int) { return file_raptorq_proto_rawDescGZIP(), []int{5} }
[ -0.8815334439277649, 0.5759729743003845, 0.41088563203811646, -1.1965885162353516, 0.004190746694803238, -0.9608997106552124, 0.23214752972126007, 0.23632566630840302, 0.10609229654073715, -0.8720442652702332, -1.3745753765106201, 0.804315984249115, -0.7218682765960693, -0.1825712919235229...
func GetContacts(user uint) ([]*Contact){ contacts := make([]*Contact, 0) err := GetDB().Table("contacts").Where("user_id = ?", user).Find(&contacts).Error if err != nil{ fmt.Println(err) return nil } return contacts }
[ -0.4356897175312042, -0.11774822324514389, 0.6137219071388245, 1.1033544540405273, 0.605000376701355, -0.21726727485656738, 0.3562917113304138, -1.082306981086731, 0.3213353455066681, -0.4186032712459564, 0.11033590137958527, 0.17228811979293823, -0.6010310053825378, 1.3701757192611694, ...
func DefaultSession() *session.Session { return session.Must( session.NewSessionWithOptions( session.Options{ SharedConfigState: session.SharedConfigEnable, }, ), ) }
[ 0.027227992191910744, 0.1114773154258728, 0.41117140650749207, 0.8361735343933105, 0.16321918368339539, 0.130815327167511, 0.5359693169593811, -0.6876793503761292, 1.1840877532958984, -0.1876549869775772, -0.36943620443344116, -0.6302763819694519, -0.5978559851646423, -0.25079524517059326,...
func Init(s *session.Session) { EC2Client(ec2.New(s)) RDSClient(rds.New(s)) S3Client(s3.New(s)) IAMClient(iam.New(s)) }
[ -0.2468269318342209, -0.5601409673690796, 0.4566752016544342, -1.0988677740097046, 0.5813685655593872, 0.48920613527297974, -0.17200569808483124, -0.9423519372940063, 0.5110451579093933, -0.4790765941143036, -0.5497506856918335, 1.074332594871521, 0.9921440482139587, -0.9170616865158081, ...
func (s *Service) Frozen(ctx context.Context, req *pb.FrozenRequest) (*pb.FrozenResponse, error) { if !strings.HasPrefix(strings.Title(req.Address), "Mx") { return nil, status.Error(codes.InvalidArgument, "invalid address") } cState := s.blockchain.CurrentState() cState.RLock() defer cState.RUnlock() var reqC...
[ -0.5772982239723206, -0.2930753529071808, 0.6079951524734497, 0.28436657786369324, 0.31433549523353577, -0.17634838819503784, 0.36091312766075134, -0.549426794052124, 0.5049880146980286, 0.3803620934486389, -0.5355352163314819, 0.8665828704833984, -0.6257312297821045, 0.3798869550228119, ...
func New(addr []string, config *tls.Config) (register.Register, error) { kcfg := &gokong.Config{ HostAddress: addr[0], } reg := &kRegister{ kAddrs: addr, kClient: gokong.NewClient(kcfg), } return reg, nil }
[ 0.4428374469280243, 0.6418211460113525, 0.3846392333507538, -0.15285533666610718, -0.23792442679405212, -0.3360472619533539, -0.7677594423294067, 0.7935425043106079, -1.093733549118042, 0.8170397281646729, -0.47501271963119507, 0.40380698442459106, 0.059930868446826935, 0.7558808922767639,...
func (r *kRegister) CreateService(svc *register.Service) error { var ( err error startedAll = time.Now() ) defer reportRegisterKongMetrics("CreateService", err, startedAll) kreq := kongServiceRequestConvert(svc) // 1. create specified service information started := time.Now() ksvc, err := r.kClient.S...
[ -0.29101112484931946, -0.022403066977858543, 0.6750583052635193, 0.5723149180412292, 0.7158418297767639, -0.01571287028491497, 0.31105276942253113, -0.4656245708465576, -0.1342334896326065, 0.2316981703042984, -0.35006770491600037, 0.3955593705177307, -0.24957653880119324, 1.27447545528411...
func (r *kRegister) UpdateService(svc *register.Service) error { return r.ReplaceTargetByService(svc, svc.Backends) }
[ -0.16968576610088348, 0.17866982519626617, 0.2107900232076645, 0.4484952986240387, 1.0905382633209229, -0.5708202123641968, -0.23858974874019623, 0.12511317431926727, 0.5100941061973572, 0.6243393421173096, 0.4488861858844757, 1.283558964729309, -0.9596468806266785, 0.7385931611061096, -...
func (r *kRegister) GetService(svc string) (*register.Service, error) { var ( err error started = time.Now() kSvc *gokong.Service ) defer reportRegisterKongMetrics("GetService", err, started) kSvc, err = r.kClient.Services().GetServiceByName(svc) if err != nil { reportKongAPIMetrics("GetServices", ...
[ -0.4146658182144165, 0.4994896352291107, 0.6200149655342102, 0.024690885096788406, -0.059854574501514435, -0.9123204350471497, -0.09663742780685425, -0.6124051809310913, -0.08661959320306778, -0.39858153462409973, 0.36037808656692505, 1.0511523485183716, -1.192181944847107, 0.6240107417106...
func (r *kRegister) DeleteService(svc *register.Service) error { if svc.Host == "" || svc.Name == "" { return fmt.Errorf("service lost Name or Host") } var ( err error startedAll = time.Now() ) defer reportRegisterKongMetrics("DeleteService", err, startedAll) started := time.Now() //clean route, ro...
[ 0.012558246031403542, 0.6239749789237976, 1.017471432685852, 0.1652108132839203, -0.360323041677475, -0.1348438411951065, 0.46775081753730774, -0.12006623297929764, 0.024127230048179626, 0.3648303151130676, 0.35517600178718567, 0.6709235906600952, -0.29522407054901123, 1.671451449394226, ...
func (r *kRegister) ListServices() ([]*register.Service, error) { query := &gokong.ServiceQueryString{ Size: 200, } var ( err error started = time.Now() kSvcs []*gokong.Service ) defer reportRegisterKongMetrics("ListServices", err, started) kSvcs, err = r.kClient.Services().GetServices(query) if ...
[ -1.0049618482589722, 0.18661993741989136, 0.670395016670227, 0.10401701182126999, -0.044122207909822464, -0.29454895853996277, -1.0085256099700928, -0.056988976895809174, 0.15477345883846283, -0.4644666314125061, 0.42212262749671936, 0.5132803916931152, -1.014815092086792, 1.28474164009094...
func (r *kRegister) GetTargetByService(svc *register.Service) ([]register.Backend, error) { if svc == nil || len(svc.Host) == 0 { return nil, fmt.Errorf("necessary service info lost") } var ( err error started = time.Now() kTargets []*gokong.Target ) defer reportRegisterKongMetrics("GetTargetByServi...
[ -0.005908266641199589, 0.4314890503883362, 0.5790908932685852, 0.5651675462722778, 0.6390320062637329, -0.8350119590759277, -0.7258557677268982, -0.8926417827606201, -0.26486143469810486, 0.39746373891830444, 0.3167913258075714, 1.084625244140625, -0.9826275110244751, 0.7652352452278137, ...
func (r *kRegister) ReplaceTargetByService(svc *register.Service, backends []register.Backend) error { //get original targets if svc.Name == "" || svc.Host == "" { return fmt.Errorf("service info lost Name or Host") } if len(backends) == 0 { return fmt.Errorf("lost backends list") } var ( startedAll = time....
[ -0.32762107253074646, 0.05427774414420128, 0.8625043034553528, 0.014335795305669308, 0.21562622487545013, -0.5720621943473816, -0.3783341646194458, -0.005919578485190868, -0.03800351172685623, 0.4656825363636017, 0.4220997095108032, 0.9442654848098755, -0.89159095287323, 0.688083827495575,...
func (r *kRegister) DeleteTargetByService(svc *register.Service) error { return fmt.Errorf("not implemented") }
[ 0.18642902374267578, 0.08742509037256241, 0.641248881816864, 0.5366116762161255, -0.14174628257751465, -0.6256269812583923, 0.40050560235977173, 0.14328832924365997, 0.8043574690818787, -0.03212688863277435, 0.15398931503295898, 0.9672496914863586, -0.5737015008926392, 0.6252159476280212, ...
func innerServiceConvert(ksvc *gokong.Service) *register.Service { svc := &register.Service{ Name: *ksvc.Name, Protocol: *ksvc.Protocol, Host: *ksvc.Host, Port: uint(*ksvc.Port), } //path will be empty when rewrite feature turns off if ksvc.Path != nil { svc.Path = *ksvc.Path } return svc }
[ -0.7924860119819641, -0.3735307455062866, 0.7279208302497864, -0.09840956330299377, -0.441423237323761, -0.24222660064697266, -0.5151307582855225, 0.42186063528060913, 0.18799962103366852, -0.3387143909931183, -0.06169602647423744, 0.8375329971313477, -1.032020926475525, -0.208513498306274...
func kongServiceRequestConvert(svc *register.Service) *gokong.ServiceRequest { ksvc := &gokong.ServiceRequest{ Name: &svc.Name, Protocol: &svc.Protocol, Host: &svc.Host, Retries: gokong.Int(svc.Retries), } if len(svc.Path) != 0 { ksvc.Path = &svc.Path } if len(svc.Labels) != 0 { for _, v := ra...
[ -0.4194943308830261, -0.5165994167327881, 0.7139737606048584, 0.35333192348480225, -0.9903894066810608, -0.0366562157869339, -1.2994152307510376, -0.43185171484947205, -0.15093667805194855, -0.11384529620409012, 0.19401772320270538, 1.0076247453689575, -0.28686362504959106, 0.3796880841255...
func kongRouteConvert(route *register.Route, ID *string) *gokong.RouteRequest { var protocols []*string //no matter what protocol it is, service only support tls //route supports double protocols if route.Protocol == protocolHTTP || route.Protocol == protocolHTTPS { protocols = []*string{gokong.String(protocolHTT...
[ -0.47606730461120605, -0.2745586335659027, 0.9989110827445984, 0.027941547334194183, -0.46546685695648193, -0.2392411231994629, -1.1779204607009888, -0.025794243440032005, -0.38077205419540405, 0.6782968044281006, 0.1284959316253662, 0.569182813167572, -0.6659274697303772, 0.40489521622657...
func kongPluginConvert(plugin *register.Plugins, ID *string, tys string) []*gokong.PluginRequest { var plugins []*gokong.PluginRequest if plugin.HeadOption != nil { plu := kongReqTransformerConvert(plugin.HeadOption, *ID, tys) plugins = append(plugins, plu) } if plugin.AuthOption != nil { plu := kongBKBCSAuth...
[ -1.3506423234939575, -0.9940023422241211, 0.7388054132461548, 0.9422634840011597, -0.19380994141101837, -0.44213569164276123, -1.3407611846923828, -0.33087530732154846, 1.02782142162323, 0.5642234683036804, -0.7406051158905029, 0.7323446273803711, -0.8973119258880615, -0.2898229956626892, ...
func kongReqTransformerConvert(option *register.HeaderOption, ID string, tys string) *gokong.PluginRequest { pr := &gokong.PluginRequest{ Name: "request-transformer", } if tys == "service" { pr.ServiceId = gokong.ToId(ID) } else { pr.RouteId = gokong.ToId(ID) } //setting clean operation pr.Config = make(ma...
[ -1.3035106658935547, -0.17981015145778656, 1.0004231929779053, -0.7532752752304077, -0.6627182364463806, -0.8178915977478027, -1.0089919567108154, 0.03939320892095566, 0.015612993389368057, 0.466434121131897, -0.2591756582260132, 0.5189253687858582, -0.6199885606765747, 0.594894289970398, ...
func kongBKBCSAuthConvert(option *register.BCSAuthOption, id string, tys string) *gokong.PluginRequest { pr := &gokong.PluginRequest{ Name: option.Name, } if tys == "service" { pr.ServiceId = gokong.ToId(id) } else { pr.RouteId = gokong.ToId(id) } pr.Config = make(map[string]interface{}) //setting clean op...
[ -0.46974220871925354, -0.8037182688713074, 0.6826537847518921, 0.42739152908325195, -0.22987313568592072, -0.47423627972602844, -1.0763863325119019, -0.4550068974494934, 0.9872176647186279, 1.0447663068771362, -0.14082664251327515, 0.9472710490226746, -0.5380152463912964, -0.06230280175805...
func (cf *ComponentFilter) Equals(other *ComponentFilter) bool { return cf.Required.Equals(other.Required) && cf.OneRequired.Equals(other.OneRequired) && cf.Forbidden.Equals(other.Forbidden) }
[ -1.1181066036224365, -0.7818875312805176, 0.4369349181652069, -0.17553479969501495, 0.1648576408624649, -0.016412410885095596, -0.45683449506759644, -0.3051173686981201, -0.5157625079154968, -0.16361260414123535, -1.3323131799697876, 0.570561408996582, -0.617191731929779, 0.655458509922027...
func (cf *ComponentFilter) Allow(other *bitset.BitSet) bool { if cf == nil { return false } if cf.Required != nil && !cf.Required.Empty() { if !other.ContainsAll(cf.Required) { return false } } if cf.OneRequired != nil { if !cf.OneRequired.Intersects(other) && !cf.OneRequired.Empty() { return false...
[ -0.7655559182167053, 0.2487608939409256, 0.8920625448226929, -0.07506600767374039, -0.8425993323326111, 0.5141869783401489, 0.804875373840332, -0.42276057600975037, -0.6903859972953796, 0.0534668006002903, 0.33519110083580017, 0.325015664100647, -0.935004472732544, 1.2694721221923828, 0....
func (ps *UserService) FindOne(loggedInUser string, id string) (user, error) { dummy, err := ps.repository.FindOne(id) if err != nil { panic(err) } return dummy, nil }
[ -0.5446137189865112, 0.7422590851783752, 0.354758083820343, 0.9055079817771912, 0.5298309326171875, 0.24965494871139526, -0.10916931182146072, -1.062423825263977, -0.16744278371334076, -0.08447345346212387, -0.1359163075685501, 0.24872025847434998, -0.969965934753418, -0.23585832118988037,...
func (ps *UserService) Update(loggedInUser string, id string, update User) (user, error) { dummy, err := ps.repository.Update(id, update) if err != nil { panic(err) } return dummy, nil }
[ -1.1125967502593994, -0.007809833157807589, 0.2390688955783844, 0.7533257603645325, -0.490519255399704, 0.16442552208900452, -0.7498699426651001, -0.6313807368278503, 0.7662561535835266, -0.2096216082572937, -0.26043957471847534, 0.2832545340061188, -0.8154292106628418, -1.1176174879074097...
func (ps *UserService) Delete(loggedInUser string, id string) error { err := ps.repository.Delete(id) if err != nil { panic(err) } return err }
[ 0.025674140080809593, 0.5466967225074768, 0.26249438524246216, 1.061010718345642, 0.07419953495264053, 0.5065743923187256, -0.6416261792182922, -0.1279323846101761, 0.2886675298213959, 0.006050515919923782, 0.4128677546977997, 0.6742596626281738, -0.9304144978523254, -0.9433034062385559, ...
func NewService(repo *UserRepository) *UserService { return &UserService{ repository: repo, } }
[ 0.08739328384399414, 0.1027258113026619, -0.10107342153787613, 0.46095457673072815, -1.0439287424087524, -0.00314669799990952, -0.42768171429634094, -0.578264057636261, 0.19135676324367523, -0.03683249279856682, -0.3984515964984894, 0.9650900363922119, 0.04629313573241234, 0.41969135403633...
func NewGoFS(reader io.ReadSeeker) (*GoFs, error) { fs, err := New(reader) if err != nil { return nil, err } return &GoFs{*fs}, nil }
[ -0.6406219005584717, -0.10180442780256271, 0.012505383230745792, -0.5312825441360474, -0.5574319362640381, -0.7817149758338928, -0.035396259278059006, -0.7550624012947083, -0.2992408275604248, -0.06539683043956757, 0.5565789341926575, -0.29054999351501465, -0.6247861385345459, 0.0226363260...
func NewGoFSSkipChecks(reader io.ReadSeeker) (*GoFs, error) { fs, err := NewSkipChecks(reader) if err != nil { return nil, err } return &GoFs{*fs}, nil }
[ -0.4888654053211212, -0.002375781536102295, 0.16003891825675964, -0.004713717848062515, -0.5135714411735535, 0.40454983711242676, 0.675622284412384, -0.6497089266777039, -0.3804849088191986, -0.5600618124008179, 0.9295579195022583, -0.8056655526161194, -0.5121714472770691, -0.0613229833543...
func (v User) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonD2b7633eEncodeBackendInternalModels(&w, v) return w.Buffer.BuildBytes(), w.Error }
[ -0.7316744327545166, -0.005019437056034803, 0.3082050383090973, 0.5224627256393433, -0.6072903275489807, -0.41596221923828125, 1.158320665359497, -0.24069179594516754, 0.015592563897371292, 0.10131420940160751, -1.1891244649887085, 0.29404228925704956, -0.6459783315658569, 0.43262651562690...
func (v User) MarshalEasyJSON(w *jwriter.Writer) { easyjsonD2b7633eEncodeBackendInternalModels(w, v) }
[ -0.5617879033088684, -0.10109047591686249, 0.3246101140975952, -0.26173263788223267, -0.3894121050834656, -0.7291885018348694, 0.9208844900131226, -1.096091389656067, 0.28452086448669434, -0.07946809381246567, -1.403342843055725, 0.29352858662605286, -0.07567045837640762, 0.951341152191162...
func (v *User) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonD2b7633eDecodeBackendInternalModels(&r, v) return r.Error() }
[ -0.515724778175354, 0.30937638878822327, 0.4702557325363159, -0.4093998372554779, -1.0286657810211182, -0.030644753947854042, 0.7898777723312378, 0.042146068066358566, -0.09588675200939178, -0.05758817121386528, -0.7274944186210632, 0.07389213144779205, -0.8383145928382874, 0.3322176933288...
func (v *User) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonD2b7633eDecodeBackendInternalModels(l, v) }
[ -0.047734636813402176, 0.04362915828824043, 0.5242630839347839, -0.4381226897239685, -0.5747607946395874, -0.8055546283721924, 0.7406829595565796, -0.023350615054368973, 0.039253491908311844, 0.016253111883997917, -1.2117096185684204, -0.04815319553017616, -0.4660775661468506, 0.6699703335...
func (v ProductToAdd) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonD2b7633eEncodeBackendInternalModels1(&w, v) return w.Buffer.BuildBytes(), w.Error }
[ -0.9854745864868164, -0.2622574269771576, 0.48534369468688965, 0.005054335109889507, 0.31103622913360596, 0.16665993630886078, 0.48738962411880493, -0.49803751707077026, 0.5501781702041626, 0.7656528949737549, -0.5195845365524292, 1.014043927192688, -0.3778235614299774, -0.0046940925531089...
func (v ProductToAdd) MarshalEasyJSON(w *jwriter.Writer) { easyjsonD2b7633eEncodeBackendInternalModels1(w, v) }
[ -0.843203067779541, -0.23867915570735931, 0.4332493245601654, -0.36356067657470703, 0.4018019139766693, -0.16636285185813904, 0.24809911847114563, -1.1300691366195679, 0.6057620048522949, 0.5511302351951599, -0.6936330795288086, 0.7961940765380859, -0.03637922555208206, 0.45851704478263855...
func (v *ProductToAdd) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonD2b7633eDecodeBackendInternalModels1(&r, v) return r.Error() }
[ -0.9901183247566223, 0.12011001259088516, 0.509566068649292, -1.0447286367416382, -0.1211370900273323, 0.3260824680328369, 0.08977539092302322, -0.6187794208526611, 0.2897023558616638, 0.8146900534629822, -0.15068140625953674, 0.6882903575897217, -0.4282410740852356, -0.1582704484462738, ...
func (v *ProductToAdd) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonD2b7633eDecodeBackendInternalModels1(l, v) }
[ -0.741659939289093, 0.10652313381433487, 0.5216952562332153, -0.7555984854698181, 0.35802456736564636, -0.4700174629688263, 0.27033254504203796, -0.3451178967952728, 0.34933286905288696, 0.7989733815193176, -0.678994357585907, 0.5541800260543823, -0.37248703837394714, 0.11243176460266113, ...
func (v ProductShrinkedArr) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonD2b7633eEncodeBackendInternalModels2(&w, v) return w.Buffer.BuildBytes(), w.Error }
[ -0.9233466386795044, -0.28814220428466797, 0.3323933184146881, 0.27719640731811523, 0.34694328904151917, -0.14146000146865845, 0.5807279944419861, -0.36211785674095154, 0.6235460638999939, 0.2518098056316376, -0.018155906349420547, 0.9784641265869141, 0.016836712136864662, 0.24879677593708...
func (v ProductShrinkedArr) MarshalEasyJSON(w *jwriter.Writer) { easyjsonD2b7633eEncodeBackendInternalModels2(w, v) }
[ -0.8149049282073975, -0.24117904901504517, 0.21215273439884186, -0.21115855872631073, 0.5084168910980225, -0.7223531603813171, 0.40723317861557007, -1.0570647716522217, 0.7154658436775208, 0.29926055669784546, -0.30417734384536743, 0.7941111922264099, 0.28075218200683594, 0.621220827102661...
func (v *ProductShrinkedArr) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonD2b7633eDecodeBackendInternalModels2(&r, v) return r.Error() }
[ -0.7698574662208557, 0.019091416150331497, 0.28333917260169983, -0.7279226183891296, 0.059974271804094315, 0.07457251846790314, 0.4146278500556946, -0.40621042251586914, 0.345232218503952, 0.32656824588775635, 0.3657747805118561, 0.984849750995636, -0.2175934612751007, 0.12125015258789062,...
func (v *ProductShrinkedArr) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonD2b7633eDecodeBackendInternalModels2(l, v) }
[ -0.5468015074729919, -0.24936845898628235, 0.3108087182044983, -0.6451599597930908, 0.3146473169326782, -0.9272063374519348, 0.3356083929538727, -0.1575479805469513, 0.3401496410369873, 0.40137991309165955, -0.25290003418922424, 0.6505790948867798, -0.11441636085510254, 0.4134646952152252,...
func (v ProductShrinked) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonD2b7633eEncodeBackendInternalModels3(&w, v) return w.Buffer.BuildBytes(), w.Error }
[ -0.7292514443397522, -0.02028549835085869, 0.24092821776866913, -0.1493644416332245, 0.7757114171981812, -0.038164667785167694, 0.7710393071174622, -0.06606180965900421, 0.6487511396408081, 0.21861696243286133, -0.6752329468727112, 0.9175174236297607, -0.02520822361111641, -0.1073536202311...
func (v ProductShrinked) MarshalEasyJSON(w *jwriter.Writer) { easyjsonD2b7633eEncodeBackendInternalModels3(w, v) }
[ -0.5472145080566406, 0.13715115189552307, 0.23461078107357025, -0.7129254341125488, 0.8330422639846802, -0.4559682011604309, 0.42130184173583984, -0.8138779401779175, 0.8277734518051147, 0.3165671229362488, -0.7980093955993652, 0.6387619376182556, 0.18973252177238464, 0.11129313707351685, ...
func (v *ProductShrinked) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonD2b7633eDecodeBackendInternalModels3(&r, v) return r.Error() }
[ -0.5264966487884521, 0.35578271746635437, 0.29561930894851685, -1.1435651779174805, 0.354178249835968, 0.22871412336826324, 0.575211763381958, -0.13783134520053864, 0.5100089907646179, 0.08884143829345703, -0.36324453353881836, 0.8604264259338379, -0.09022796154022217, -0.3380078673362732,...
func (v *ProductShrinked) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonD2b7633eDecodeBackendInternalModels3(l, v) }
[ -0.38694679737091064, 0.33235374093055725, 0.3469865620136261, -1.0291699171066284, 0.6204691529273987, -0.5920042991638184, 0.4748321771621704, 0.04587295278906822, 0.6309029459953308, 0.4113510251045227, -0.7616701722145081, 0.36095231771469116, -0.2073580026626587, -0.20592640340328217,...
func (v ProductExtendedArr) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonD2b7633eEncodeBackendInternalModels4(&w, v) return w.Buffer.BuildBytes(), w.Error }
[ -0.7423900365829468, 0.15735168755054474, 0.45570865273475647, 0.48959600925445557, -0.7145984768867493, 0.025132376700639725, 0.5246644020080566, -0.05467694625258446, 0.19323748350143433, 0.3136635422706604, -1.1098178625106812, 0.9346368908882141, -0.5576518774032593, 0.4704191684722900...
func (v ProductExtendedArr) MarshalEasyJSON(w *jwriter.Writer) { easyjsonD2b7633eEncodeBackendInternalModels4(w, v) }
[ -0.5399848222732544, 0.15793798863887787, 0.3557537794113159, -0.026612089946866035, -0.33456993103027344, -0.44790324568748474, 0.41992950439453125, -0.7243525385856628, 0.36977434158325195, 0.19131943583488464, -1.1338245868682861, 0.6723442673683167, -0.31656453013420105, 0.783608436584...
func (v *ProductExtendedArr) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonD2b7633eDecodeBackendInternalModels4(&r, v) return r.Error() }
[ -0.4560451805591583, 0.3939034044742584, 0.496206670999527, -0.37433889508247375, -1.0145673751831055, 0.1726258397102356, 0.148605078458786, -0.027306726202368736, 0.08152731508016586, 0.49626144766807556, -0.8298438787460327, 0.842712938785553, -0.48843973875045776, 0.3661724627017975, ...
func (v *ProductExtendedArr) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonD2b7633eDecodeBackendInternalModels4(l, v) }
[ -0.13453254103660583, 0.274958074092865, 0.4951859414577484, -0.40675583481788635, -0.5099473595619202, -0.7658815979957581, 0.2923543453216553, 0.005795270670205355, 0.2489841729402542, 0.3558676838874817, -1.1973750591278076, 0.4544128179550171, -0.44520103931427, 0.44026532769203186, ...
func (v ProductExtended) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonD2b7633eEncodeBackendInternalModels5(&w, v) return w.Buffer.BuildBytes(), w.Error }
[ -0.616756796836853, 0.17031975090503693, 0.38096651434898376, 0.24580901861190796, -0.5664216876029968, 0.06770544499158859, 0.38336631655693054, 0.07224318385124207, -0.03390401974320412, 0.3669688105583191, -1.745917558670044, 1.1568001508712769, -0.6341453790664673, -0.00290980306454002...
func (v ProductExtended) MarshalEasyJSON(w *jwriter.Writer) { easyjsonD2b7633eEncodeBackendInternalModels5(w, v) }
[ -0.4092273712158203, 0.28086668252944946, 0.27902936935424805, -0.19387874007225037, -0.3695673942565918, -0.3281153440475464, 0.27196842432022095, -0.6280926465988159, 0.1396813988685608, 0.3241118788719177, -1.7673206329345703, 0.9868566989898682, -0.2656593322753906, 0.4021216630935669,...