text
stringlengths
11
6.3k
embedding
listlengths
768
768
func New( name string, kvdbName string, kvdbBase string, kvdbMachines []string, clusterID string, kvdbOptions map[string]string, ) (AlertClient, error) { lock.Lock() defer lock.Unlock() if _, ok := instances[name]; ok { return nil, ErrExist } if initFunc, exists := drivers[name]; exists { driver, err :=...
[ -0.04193131998181343, -0.7652273774147034, 0.6288164854049683, 0.24789883196353912, -0.6731103658676147, -0.39281344413757324, -0.5359055399894714, 0.00458372151479125, -0.7464122176170349, 1.1307965517044067, 0.6416189670562744, 0.5420079827308655, -0.28964856266975403, 0.0128201879560947...
func NewAlertInstance( version string, nodeID string, clusterID string, kvdbName string, kvdbBase string, kvdbMachines []string, kvdbOptions map[string]string, ) { kva, err := Get(Name) if err != nil { kva, err = New(Name, kvdbName, kvdbBase, kvdbMachines, clusterID, kvdbOptions) if err != nil { dlog.Er...
[ -0.1460171639919281, -0.5321784019470215, 0.3845164179801941, 0.06317874044179916, -1.0405558347702026, 0.5595158338546753, -0.8167145848274231, 0.3384404480457306, -0.4191867709159851, 0.9048450589179993, -0.06733401119709015, 0.7695605754852295, -0.5817365050315857, 0.6349682211875916, ...
func Instance() AlertInstance { return instance() }
[ 0.3168727457523346, -1.0084222555160522, 0.25395140051841736, -0.957522451877594, -1.0953675508499146, 1.0650842189788818, 0.35897964239120483, 0.23141314089298248, 0.4610689878463745, -0.34436139464378357, -0.03365398570895195, 1.2902193069458008, -0.39702656865119934, -0.2634812593460083...
func Register(name string, initFunc InitFunc) error { lock.Lock() defer lock.Unlock() if _, exists := drivers[name]; exists { return ErrExist } drivers[name] = initFunc return nil }
[ -0.6279305219650269, -0.7739994525909424, 0.5481850504875183, -0.041691336780786514, 0.7275012135505676, -1.1110146045684814, -0.6757507920265198, 0.49398598074913025, -0.7043496370315552, 0.027554238215088844, -0.9561378359794617, 0.062309008091688156, -0.5537570714950562, -0.233918026089...
func getForkOldNewCommon(ctx context.Context, t *testing.T, chainStore *chain.Store, blockSource *th.TestFetcher, dstP *SyncerTestParams, a, b, c uint) (types.TipSet, types.TipSet, types.TipSet) { // Add a - 1 tipsets to the head of the chainStore. requireGrowChain(ctx, t, blockSource, chainStore, a, dstP) commonAnc...
[ 0.6853761672973633, 0.3801635205745697, 0.9641532301902771, 0.23837566375732422, -0.13847053050994873, 0.024661529809236526, 0.843498170375824, -0.20627842843532562, -0.5569084882736206, -0.23876428604125977, 0.17794059216976166, 0.18238241970539093, -0.5776625871658325, 0.4703750908374786...
func getSubsetOldNewCommon(ctx context.Context, t *testing.T, chainStore *chain.Store, blockSource *th.TestFetcher, dstP *SyncerTestParams, a uint) (types.TipSet, types.TipSet, types.TipSet) { requireGrowChain(ctx, t, blockSource, chainStore, a, dstP) commonAncestor := requireHeadTipset(t, chainStore) requireGrowCha...
[ 0.3044891953468323, -0.10479767620563507, 0.7778810262680054, -0.18468014895915985, -0.6455848813056946, -0.054907187819480896, 0.48758432269096375, -0.5005308389663696, -0.49824586510658264, -0.24967379868030548, -0.37370413541793823, 0.46579837799072266, -0.19860561192035675, 0.021188333...
func registerImageFormats() { syncLock.Do(func() { image.RegisterFormat("jpeg", "jpeg", jpeg.Decode, jpeg.DecodeConfig) image.RegisterFormat("png", "png", png.Decode, png.DecodeConfig) }) }
[ -0.6955931782722473, 0.12353349477052689, 0.4694538116455078, 0.0030804886482656, -0.07095794379711151, -0.5137040615081787, -0.46209201216697693, -0.6845323443412781, -0.12032052129507065, -0.2754132151603699, -1.1776001453399658, 0.029874499887228012, 0.2534112334251404, 1.42016303539276...
func DecodeImage(file string) (imgCfg image.Config, imgFormat string, err error) { // validation if strings.Compare(file, "") == 0 { err = errors.New("file location given is empty~") return } // load the file imgFilePtr, err := os.Open(file) defer imgFilePtr.Close() if err ...
[ -0.7499856948852539, -0.33351191878318787, 0.5391760468482971, -0.14643853902816772, -0.27873846888542175, -0.0004208392056170851, 0.1635739505290985, 1.0624706745147705, -0.7036849856376648, 0.17918279767036438, -0.23962509632110596, -0.14500392973423004, -0.3247184157371521, 1.3470717668...
func NewAPIController(c *container.Container) *APIController { return &APIController{ Controller: NewController(c), } }
[ -0.01695578172802925, -0.24274219572544098, -0.022148726508021355, -0.5119165778160095, -1.0213024616241455, -0.6950578093528748, -0.4571221172809601, -0.37778761982917786, 0.7622426748275757, -0.09839912503957748, -1.0914980173110962, -0.5461335182189941, 0.05592552199959755, -0.285749197...
func (ctl *APIController) GetInfo(w http.ResponseWriter, r *http.Request) { // transform tr := transformers.APITransformer{ Name: "Catalyst", Version: "v2.5.1", Purpose: "A REST API base written in Golang", } // send response ctl.sendResponse(r.Context(), w, http.StatusOK, tr) }
[ -0.43398329615592957, -0.6524678468704224, 0.6585150957107544, 0.20590874552726746, 0.5464416742324829, -0.22021427750587463, 0.35428786277770996, 0.5302287936210632, -0.772321343421936, 0.13603955507278442, -0.43369540572166443, 0.30630263686180115, -0.24184879660606384, -0.35495382547378...
func (l *Lexer) consumeDelimeter() Token { c := l.getCurr() t := Token{ Column: l.Column, Line: l.Line, Value: string(c), } switch c { case ',': t.Type = Comma case '(': t.Type = LeftParenthesis case ')': t.Type = RightParenthesis case '[': t.Type = LeftBracket case ']': t.Type = RightBrack...
[ -0.0005679528112523258, -0.7414208650588989, 0.5977009534835815, -0.5751235485076904, -0.44754257798194885, 0.11169011145830154, -0.1646951138973236, 0.16545766592025757, -0.45582419633865356, 0.5513440370559692, -0.21881195902824402, 0.4602920711040497, 0.1351708322763443, -0.464671432971...
func (l *Lexer) consumeNewline() Token { t := Token{ Column: l.Column, Line: l.Line, Type: NewLine, Value: `\n`, } l.position++ l.Line++ l.Column = 1 return t }
[ 0.5221306085586548, -0.7254621982574463, 0.4058772921562195, 0.06243886798620224, -0.4327394962310791, -0.1467745453119278, -0.8582744598388672, -0.13147707283496857, -0.5087290406227112, 0.32632893323898315, -0.4270075559616089, -0.34591832756996155, 0.9369862675666809, 0.0372036285698413...
func (l *Lexer) consumeColonOrDeclare() Token { t := Token{ Type: Colon, Value: string(Colon), Column: l.Column, Line: l.Line, } l.move() // check if it is a `:=` if next, _ := l.peek(); next == '=' { t.Type = Declare t.Value = `:=` l.move() } return t }
[ 0.3082799017429352, -0.5658637881278992, 0.7161409258842468, -0.5760911703109741, -0.5601701140403748, -0.22171619534492493, -0.6766306161880493, 0.47260403633117676, -0.6646950244903564, 0.6631048321723938, 0.27689307928085327, 0.5918566584587097, -0.27191320061683655, -0.0892269313335418...
func (l *Lexer) recognizeOperator() Token { c := l.getCurr() if isArithmeticOperator(c) || isBitOperator(c) || c == '!' { t := l.consumeArithmeticOrBitOperator() if t.Type == Unknown && isBoolOperator(c) { return l.consumableBoolOperator() } return t } // attempt to consume shift operator if beginsBit...
[ -0.5526522994041443, -0.14009305834770203, 0.807934045791626, 0.27685287594795227, -1.1792110204696655, -0.20295239984989166, -0.22187857329845428, -0.23338285088539124, 0.04166983813047409, 0.28421834111213684, 0.1612597107887268, -0.32314690947532654, -0.15830673277378082, 0.399407744407...
func (l *Lexer) consumeBitShiftOperator() Token { c := l.getCurr() t := Token{ Column: l.Column, Line: l.Line, } switch c { case '<': t.Type = BitLeftShift t.Value = string(BitLeftShift) case '>': t.Type = BitRightShift t.Value = string(BitRightShift) default: return l.getUnknownToken(string(c))...
[ 0.04058503359556198, -0.33171162009239197, 0.64925217628479, 0.07024246454238892, -1.0406444072723389, -0.16124364733695984, 0.06589826941490173, -0.8157612085342407, -0.02231825701892376, -0.5622328519821167, -0.2655872404575348, 0.3342386782169342, 0.5987243056297302, 0.3577287793159485,...
func (l *Lexer) consumeArithmeticOrBitOperator() Token { op := l.getCurr() t := Token{ Column: l.Column, Line: l.Line, Value: string(op), } l.move() next, _ := l.peek() if next == '=' { switch op { case '+': t.Type = PlusEq case '-': t.Type = MinusEq case '/': t.Type = DivEq case '*'...
[ -0.6891418695449829, -0.3654642701148987, 1.0447368621826172, 0.00031532018329016864, -0.915473461151123, -0.3080722689628601, 0.45815470814704895, -0.6061340570449829, -0.21115124225616455, 0.5754719972610474, -0.4031309187412262, -0.17262110114097595, 0.34819531440734863, -0.054034370929...
func (l *Lexer) consumableBoolOperator() Token { t := Token{ Column: l.Column, Line: l.Line, } c := l.getCurr() l.move() next, _ := l.peek() if c != '!' && c != next { return l.getUnknownToken(string(next)) } switch c { case '&': t.Type = And t.Value = string(And) case '|': t.Type = Or t.Va...
[ -0.5819025635719299, -0.1517331898212433, 0.7545628547668457, -0.33621761202812195, -1.2109160423278809, -0.44534122943878174, -0.2272009700536728, 0.8604487180709839, -0.5899950265884399, 1.286159634590149, -0.19744688272476196, -0.48254451155662537, -0.11674017459154129, -0.1843580007553...
func (l *Lexer) consumeComparisonOperator() Token { t := Token{ Column: l.Column, Line: l.Line, } char := l.getCurr() hasEquals := false if l.position+1 < len(l.input) { // copy next rune cpy := l.input[l.position+1] // move cursor to accommodate '=' if cpy == '=' { hasEquals = true l.move()...
[ -0.6852943897247314, -0.5087082982063293, 0.6750161647796631, -0.5341180562973022, -0.8735193610191345, -0.24965941905975342, 0.34367886185646057, -0.2974590063095093, -0.1419636458158493, 0.9925873875617981, 0.06588701903820038, -0.10414709895849228, 0.5531113147735596, 0.0242711193859577...
func (l *Lexer) consumeIdentifierOrKeyword() Token { word := l.getNextWord(isValidIdentifierChar) defer func() { l.position += len(word) l.Column += len(word) }() if t := l.consumableKeyword(word); t.Type != Unknown { return t } Type := Identifier if word == `_` { Type = Underscore } col := l.Column...
[ -0.29345840215682983, -0.41016677021980286, 0.3928676247596741, 0.39600515365600586, -1.5286412239074707, 0.13577452301979065, 0.11468349397182465, 0.1343916356563568, -0.07928834110498428, 1.1033167839050293, -0.33153462409973145, -0.11596797406673431, 0.3551197052001953, 0.02685455791652...
func (l *Lexer) consumableKeyword(word string) Token { t := Token{ Value: word, Column: l.Column, Line: l.Line, } keyword := TokenType(word) if keyword == `true` || keyword == `false` { t.Type = Bool } else if _, ok := keywords[keyword]; ok { t.Type = keyword } else { t.Type = Unknown } return ...
[ -0.06270147114992142, -0.17956122756004333, 0.6457083821296692, 0.13963674008846283, -1.514235258102417, 0.12483896315097809, -0.5496121644973755, 0.4767152667045593, -0.2662856876850128, 1.3565133810043335, -0.5350435376167297, 0.2833690941333771, 0.17443707585334778, -0.06810718774795532...
func (l *Lexer) consumeDots() Token { t := Token{ Type: Dot, Value: string(Dot), Line: l.Line, Column: l.Column, } l.move() // check for potential second dot to form two dots if next, _ := l.peek(); isDot(next) { t.Type = TwoDots t.Value = string(TwoDots) l.move() // check for potential thir...
[ 0.08241134136915207, -0.626889169216156, 0.5681788921356201, -1.2641597986221313, -0.19924451410770416, 0.050175778567790985, 0.029396161437034607, -0.19307908415794373, 0.21296189725399017, -0.010374189354479313, -0.3281036615371704, 0.040211789309978485, 1.0423766374588013, 0.04179110378...
func (l *Lexer) consumeRune() Token { // consume_quote returns an empty Token and true if a quote // can be consumed else it returns an unknown token and false consume_quote := func() (Token, bool) { if b, ok := l.peek(); !ok || b != '\'' { col := l.Column l.move() if !ok { return UnknownToken(``, l.L...
[ 0.3955111801624298, -0.45202136039733887, 0.9804669618606567, -0.21312862634658813, -0.0417422354221344, -1.1628632545471191, -0.1760663539171219, 0.12368836253881454, -0.06934097409248352, -0.05068931356072426, 0.23322370648384094, 0.4877585172653198, -0.15550529956817627, -0.126687496900...
func (l *Lexer) consumableIdentifier(word string) Token { t := Token{ Type: Identifier, Column: l.Column, Line: l.Line, } for _, c := range word { if !isValidIdentifierChar(rune(c)) { break } } t.Value = word return t }
[ 0.02117203362286091, -0.43518781661987305, 0.3485372066497803, -0.3762683570384979, -1.426975131034851, 0.30256888270378113, 0.05500144138932228, 0.5818213820457458, 0.12863574922084808, 0.689791202545166, -0.5684476494789124, -0.28662440180778503, -0.15180383622646332, -0.7644773125648499...
func (l *Lexer) consumeNumber() Token { fsm := fsm.New(numberStates, numberStates[0], nextNumberState) buf, isNum := fsm.Run(l.input[l.position:]) num := buf.String() if !isNum { return UnknownToken(string(l.getCurr()), l.Line, l.Column) } // check for a decimal/exponent to determine whether Int or Float var...
[ 0.28422999382019043, -0.07709453254938126, 0.6770288944244385, 0.1994914561510086, -0.42740386724472046, -0.9528752565383911, 0.0828172042965889, 0.5146900415420532, 0.4155276417732239, -0.40021127462387085, 0.17886853218078613, -0.327157586812973, 0.5217077136039734, 0.12148609012365341, ...
func GetProducts() ([]model.Product, error) { resp, err := http.Get("https://my-json-server.typicode.com/convictional/engineering-interview/products") if err != nil { log.Println(err) return nil, err } defer resp.Body.Close() // parse json into products bytes, err := ioutil.ReadAll(resp.Body) if err != nil {...
[ -1.4271742105484009, -0.20805005729198456, 0.6584271788597107, -0.3507998585700989, 0.8991234302520752, 0.42112085223197937, -1.0544830560684204, -0.8369839787483215, -0.08930651843547821, 0.537148654460907, -0.08472486585378647, 0.540869951248169, -1.1094930171966553, 0.25891080498695374,...
func FindProductById(w http.ResponseWriter, req *http.Request) { id := mux.Vars(req)["id"] w.Header().Set("Content-Type", "text/plain") str, _ := json.Marshal(ser.GetProduct(id)) w.Write([]byte(str)) }
[ -0.7246679663658142, -0.6972562074661255, 0.4171014130115509, 0.07433585822582245, 0.03985925391316414, -0.15837198495864868, 0.035799894481897354, -2.040177583694458, 0.4464905858039856, 0.5409311056137085, -0.5128570795059204, 0.4406977891921997, -0.31662189960479736, 0.39478161931037903...
func (c *Client) CloseConn() error { c.readLock.Lock() c.lowLevelLock.Lock() c.topLevelLock.Lock() c.WriteMessage(ws.BinaryMessage, []byte{CLOSECONNECTION}) if c.OnCloseConnection != nil { c.OnCloseConnection() } time.Sleep(time.Second) c.pendingConfirms = 1 if c.confirmed != nil { close(c.confirmed) } ...
[ -0.26307883858680725, -0.3539039194583893, 0.46003207564353943, 0.8575802445411682, 0.3489376902580261, -0.29189908504486084, 0.696550726890564, -0.2905772030353546, -0.9613263010978699, -0.8688417077064514, 0.3232743442058563, 0.503420352935791, -0.5873774290084839, 1.173119068145752, 1...
func GetSmallestUseCount() (int, error) { ctx := context.Background() // Check if database is alive. err := db.PingContext(ctx) if err != nil { return -1, err } tsql := fmt.Sprintf("SELECT MIN(UseCounter) AS smallestUseCounter FROM dbo.City;") // Execute query rows, err := db.QueryContext(ctx, tsql) if ...
[ 0.3997591435909271, 0.3233072757720947, 0.8949509859085083, -0.717486560344696, -0.34169626235961914, -0.841827929019928, 0.5082380771636963, -0.04442518576979637, -0.30680856108665466, -0.7790188789367676, 0.006798340938985348, -0.1537269651889801, -0.6845611929893494, 0.24900579452514648...
func GetRandomCity(smallestUseCounter int) (*City, error) { ctx := context.Background() // Check if database is alive. err := db.PingContext(ctx) if err != nil { return nil, err } tsql := fmt.Sprintf(`SELECT TOP 1 c.CityId ,c.StateId ,c.Name ,c.UseCounter ,c.LastUsed ,c.CreatedOn FROM dbo.City ...
[ 0.06769747287034988, -0.0003842148871626705, 0.75016188621521, -0.36554163694381714, -0.30108678340911865, -0.2272089570760727, 0.3014039397239685, -0.6960734128952026, 0.2578932046890259, -0.8216689825057983, -0.20511989295482635, -0.18735508620738983, -0.39213991165161133, 0.357591211795...
func IncrementCityUse(city *City) (int64, error) { ctx := context.Background() // Check if database is alive. err := db.PingContext(ctx) if err != nil { return -1, err } t := time.Now() city.UseCounter++ city.LastUsed = &t tsql := fmt.Sprintf("UPDATE dbo.City SET UseCounter = @useCounter, LastUsed = @la...
[ -1.0211471319198608, -0.24682892858982086, 1.017521619796753, -0.7657812833786011, -0.3139030337333679, -0.524442195892334, 0.5422008037567139, -0.16574688255786896, -0.13728950917720795, 0.4407658576965332, -0.047252289950847626, -0.9126104712486267, -1.022552251815796, 0.9157175421714783...
func (*Crypto) Descriptor() ([]byte, []int) { return file_internal_proto_crypto_proto_rawDescGZIP(), []int{0} }
[ 0.4589862823486328, 0.3877521753311157, 0.4297277331352234, 0.16336362063884735, -0.2038019895553589, -0.32896411418914795, 0.4741170108318329, 0.4861907958984375, -0.7984426617622375, -0.5530126690864563, -0.9223760962486267, 0.5142000317573547, 0.19207260012626648, 0.45165571570396423, ...
func (*VoteRequest) Descriptor() ([]byte, []int) { return file_internal_proto_crypto_proto_rawDescGZIP(), []int{1} }
[ -1.2678643465042114, -0.16422362625598907, 0.3704448640346527, 0.6395171880722046, 0.4989701509475708, -0.08619605004787445, -0.04788194224238396, 0.8142895102500916, -0.27594420313835144, -0.04487885907292366, -0.33927688002586365, 0.3771953284740448, -0.04110712930560112, 0.9808056950569...
func (*VoteResponse) Descriptor() ([]byte, []int) { return file_internal_proto_crypto_proto_rawDescGZIP(), []int{2} }
[ -0.7825106382369995, -0.25086379051208496, 0.060445331037044525, 0.549564003944397, 0.33658239245414734, -0.5977545976638794, 0.49884554743766785, 0.4839160442352295, 0.2950616776943207, 0.005854739807546139, -0.7621251940727234, -0.5793992877006531, -0.9363366961479187, 0.0112200416624546...
func (*Empty) Descriptor() ([]byte, []int) { return file_internal_proto_crypto_proto_rawDescGZIP(), []int{3} }
[ -0.9008349776268005, 0.3682902455329895, 0.714257538318634, -0.48589107394218445, 0.09764700382947922, 0.5586155652999878, 0.001735852682031691, 0.021970465779304504, -0.9444587826728821, 0.41137176752090454, -0.8385851979255676, 0.6796252131462097, -0.13287068903446198, 0.4775202870368957...
func (*CreateReq) Descriptor() ([]byte, []int) { return file_internal_proto_crypto_proto_rawDescGZIP(), []int{4} }
[ -0.6498527526855469, 0.4335183799266815, 0.8704741597175598, -0.2802055776119232, 0.683225154876709, -0.05400785431265831, 0.17534510791301727, 0.08964021503925323, -0.9124860167503357, -0.07197721302509308, -0.6288020014762878, -0.02956169843673706, -0.19342708587646484, 1.137540578842163...
func (*CreateRes) Descriptor() ([]byte, []int) { return file_internal_proto_crypto_proto_rawDescGZIP(), []int{5} }
[ 0.1093650683760643, 0.8706839084625244, 0.17014996707439423, -0.7525849938392639, 0.5474870204925537, -0.23178553581237793, 0.6050865054130554, -0.6789761781692505, -0.5706709027290344, 0.015873512253165245, -0.5572843551635742, -0.12325509637594223, -0.5410473346710205, 0.5191676020622253...
func (*ReadReq) Descriptor() ([]byte, []int) { return file_internal_proto_crypto_proto_rawDescGZIP(), []int{6} }
[ -1.471849799156189, 0.2964642345905304, 0.8906334042549133, 0.10036998242139816, -0.055249616503715515, -0.1259971410036087, 0.16510885953903198, 0.20512637495994568, -1.014370322227478, -0.6423995494842529, -0.042483825236558914, 0.7289409637451172, 0.23745694756507874, 0.5661664009094238...
func (*ReadRes) Descriptor() ([]byte, []int) { return file_internal_proto_crypto_proto_rawDescGZIP(), []int{7} }
[ -0.4821942448616028, 0.8185687065124512, 0.3234599232673645, -0.4165746569633484, -0.026187747716903687, -0.3463514745235443, 0.3577049970626831, -0.2978428304195404, -0.24440112709999084, -0.5090763568878174, 0.039630286395549774, 0.2961295247077942, -0.047732699662446976, -0.046298485249...
func (*UpdateReq) Descriptor() ([]byte, []int) { return file_internal_proto_crypto_proto_rawDescGZIP(), []int{8} }
[ -1.817893624305725, 0.27589064836502075, 1.054545521736145, 0.022115137428045273, -0.39152443408966064, -0.10919489711523056, 0.19921189546585083, 0.1521744728088379, -0.5781363844871521, 0.10756344348192215, -0.5555317997932434, 0.6088986992835999, 0.05204015225172043, 0.6846656203269958,...
func (*UpdateRes) Descriptor() ([]byte, []int) { return file_internal_proto_crypto_proto_rawDescGZIP(), []int{9} }
[ -0.5155567526817322, 0.5327370762825012, 0.41587623953819275, -0.584123969078064, -0.33790403604507446, -0.29329735040664673, 0.43707260489463806, -0.4092830419540405, -0.11247145384550095, 0.08428806066513062, -0.24618130922317505, 0.08264760673046112, -0.2862124443054199, -0.166348129510...
func (*DeleteReq) Descriptor() ([]byte, []int) { return file_internal_proto_crypto_proto_rawDescGZIP(), []int{10} }
[ -1.4838192462921143, 0.38903820514678955, 0.863395631313324, 0.030604198575019836, 0.09857571125030518, -0.16679485142230988, 0.5177395939826965, 0.8814272284507751, -0.5524184107780457, -0.3298892378807068, -0.6310915350914001, 0.6131017208099365, -0.0878712460398674, 1.056442379951477, ...
func (*DeleteRes) Descriptor() ([]byte, []int) { return file_internal_proto_crypto_proto_rawDescGZIP(), []int{11} }
[ -0.3926040828227997, 1.1590170860290527, 0.46792346239089966, -0.5492544174194336, -0.13946327567100525, -0.39929941296577454, 0.2201341837644577, 0.4976341426372528, 0.118352971971035, -0.9012267589569092, 0.3582116365432739, 0.525541365146637, -0.323731005191803, 0.4122821092605591, 0....
func (mc *MsgCache) WriteMsg(msg *Msg) bool { if mc.cache == nil { mc.cache = make([]*Msg, 0, 8) } min := sort.Search(len(mc.cache), func(mid int) bool { return mc.comparator(msg.key, mc.cache[mid].key) <= 0 }) //if cache contain the key. replace it if min != len(mc.cache) && mc.comparator(msg.key, mc.cache...
[ -1.1020264625549316, 1.0602717399597168, 0.9156460165977478, -0.48559892177581787, -0.6572070717811584, 0.03368255868554115, 0.17558160424232483, 0.3346046805381775, -0.013575145043432713, 1.336068034172058, -0.5086475014686584, -0.25091421604156494, -1.3479398488998413, 1.3508172035217285...
func Share(mod *big.Int, nPieces int, secret *big.Int) []*big.Int { if nPieces == 0 { panic("Number of shares must be at least 1") } else if nPieces == 1 { return []*big.Int{secret} } out := make([]*big.Int, nPieces) acc := new(big.Int) for i := 0; i < nPieces-1; i++ { out[i] = utils.RandInt(mod) acc.A...
[ -0.7344661355018616, 1.1969197988510132, 0.6855950951576233, 0.306745707988739, 0.07517771422863007, -0.1924000382423401, 0.7886627912521362, 0.2868368625640869, 0.2134023904800415, 0.07908706367015839, -0.6390461921691895, 0.611271858215332, -0.9642915725708008, 0.31406068801879883, 0.9...
func GetInfo(url string) (Info, error) { res, err := http.Get(url) if err != nil { return Info{}, fmt.Errorf("unable to http get url %s: %v", url, err) } defer res.Body.Close() if res.StatusCode != http.StatusOK { return Info{}, fmt.Errorf("twitpic responded with non 200 status: %v", res.Status) } html, err ...
[ -0.3397883474826813, -0.09204931557178497, 0.8110231757164001, -1.0777044296264648, -0.14076726138591766, -0.35159263014793396, -0.02918526530265808, -0.2924889922142029, -0.25191792845726013, 0.13923674821853638, -0.16720761358737946, 0.2560795545578003, 0.08499806374311447, 0.17110827565...
func Parse(html string) (Info, error) { r, err := regexp.Compile(imgURLPattern) if err != nil { return Info{}, fmt.Errorf("unable to compile regex pattern %s: %v", imgURLPattern, err) } m := r.FindStringSubmatch(html) url := m[1] r, err = regexp.Compile(fileExtPattern) if err != nil { return Info{}, fmt.Err...
[ 0.04908069968223572, 0.06135309487581253, 0.7633509635925293, -0.3111131191253662, -0.33862796425819397, -0.5033104419708252, 0.42406561970710754, 0.4135397970676422, -0.293597936630249, -0.31078726053237915, -0.084075927734375, -0.09909237176179886, -0.15554389357566833, 0.613945305347442...
func New(cred esign.Credential) *Service { return &Service{credential: cred} }
[ 0.3247491717338562, -0.7371113896369934, -0.08271858096122742, -0.34042245149612427, -0.2817161977291107, 0.4236496686935425, -0.23454225063323975, 0.26505279541015625, -0.2817530333995819, -0.20267513394355774, -0.4042400121688843, 1.3623675107955933, 0.5023948550224304, 1.028570652008056...
func (s *Service) BrandsCreate(brand *model.Brand) *BrandsCreateOp { return &BrandsCreateOp{ Credential: s.credential, Method: "POST", Path: "brands", Payload: brand, QueryOpts: make(url.Values), Version: esign.APIv2, } }
[ -0.947634756565094, 0.674218475818634, 0.168082594871521, 0.11913425475358963, 0.5385369658470154, 0.31132733821868896, -0.8016055226325989, -0.5148550271987915, 0.288473904132843, -0.3582330644130707, -0.4762554168701172, 0.6877797842025757, -0.4523172080516815, -0.267493337392807, -1.3...
func (op *BrandsCreateOp) Do(ctx context.Context) (*model.BrandsResponse, error) { var res *model.BrandsResponse return res, ((*esign.Op)(op)).Do(ctx, &res) }
[ -0.22641661763191223, 0.3925536572933197, 0.2381637692451477, -0.11118970066308975, 0.9318118095397949, 0.08151347190141678, -0.1290699541568756, -0.787517249584198, 0.30197077989578247, 0.14111047983169556, -0.2989599108695984, -0.09330815821886063, -0.035693176090717316, 0.29574039578437...
func (s *Service) BrandsDelete(brandID string) *BrandsDeleteOp { return &BrandsDeleteOp{ Credential: s.credential, Method: "DELETE", Path: strings.Join([]string{"brands", brandID}, "/"), QueryOpts: make(url.Values), Version: esign.APIv2, } }
[ -0.08280003815889359, 0.17780987918376923, 0.11205236613750458, -0.34825268387794495, 0.56560879945755, -0.3756534159183502, -0.45540526509284973, 0.29342958331108093, 0.9084851741790771, 0.1643170416355133, -0.01455021183937788, 0.8163262605667114, -0.6632372140884399, -0.4965346753597259...
func (op *BrandsDeleteOp) Do(ctx context.Context) error { return ((*esign.Op)(op)).Do(ctx, nil) }
[ 0.19006766378879547, 0.16395904123783112, 0.332026869058609, 0.2641357481479645, 0.9162924289703369, -0.19275492429733276, -0.24353046715259552, -0.02473245933651924, 0.58559650182724, 0.7804659605026245, 0.04001026228070259, 0.3791363835334778, 0.29667556285858154, -0.22857153415679932, ...
func (s *Service) BrandsDeleteList(brandsRequest *model.BrandsRequest) *BrandsDeleteListOp { return &BrandsDeleteListOp{ Credential: s.credential, Method: "DELETE", Path: "brands", Payload: brandsRequest, Accept: "application/json", QueryOpts: make(url.Values), Version: esign.APIv2, ...
[ -1.0823200941085815, -0.036585550755262375, 0.1606123000383377, -0.2929864823818207, 0.3491414487361908, -0.4322018325328827, -1.0540107488632202, 0.6298025250434875, 1.0148096084594727, 0.09509825706481934, -0.43777939677238464, 0.9094256162643433, 0.0013510645367205143, 0.225752457976341...
func (op *BrandsDeleteListOp) Do(ctx context.Context) (*model.BrandsResponse, error) { var res *model.BrandsResponse return res, ((*esign.Op)(op)).Do(ctx, &res) }
[ -0.470735102891922, 0.2289954274892807, 0.3557053506374359, -0.17709583044052124, 0.532239556312561, -0.5214059948921204, -0.6114446520805359, 0.020782887935638428, 0.7289662957191467, 0.735135018825531, -0.4106200039386749, -0.07283178716897964, -0.08465958386659622, 0.05547565221786499, ...
func (s *Service) BrandsDeleteLogo(brandID string, logoType string) *BrandsDeleteLogoOp { return &BrandsDeleteLogoOp{ Credential: s.credential, Method: "DELETE", Path: strings.Join([]string{"brands", brandID, "logos", logoType}, "/"), QueryOpts: make(url.Values), Version: esign.APIv2, } }
[ -0.07544534653425217, -0.11405671387910843, 0.01520521566271782, -0.2599238455295563, -0.316236674785614, -0.6712961792945862, -0.3171902000904083, 0.442402184009552, 0.41744816303253174, 0.1436016708612442, -0.4197263717651367, 1.3462892770767212, -0.1451595276594162, -0.01839109137654304...
func (op *BrandsDeleteLogoOp) Do(ctx context.Context) error { return ((*esign.Op)(op)).Do(ctx, nil) }
[ 0.17980292439460754, -0.07888321578502655, 0.4047594964504242, -0.020194390788674355, 0.19384536147117615, 0.004039439372718334, -0.39996010065078735, 0.011341404169797897, 0.4515947699546814, 0.7028826475143433, 0.43571576476097107, 0.34684738516807556, 0.710662841796875, -0.2076809704303...
func (s *Service) BrandsGet(brandID string) *BrandsGetOp { return &BrandsGetOp{ Credential: s.credential, Method: "GET", Path: strings.Join([]string{"brands", brandID}, "/"), Accept: "application/json", QueryOpts: make(url.Values), Version: esign.APIv2, } }
[ -0.7992355227470398, 0.42991694808006287, 0.3779396712779999, -0.7678990364074707, 0.32099229097366333, -0.6428744792938232, -0.967383086681366, -0.15055552124977112, 0.24486258625984192, -0.42784857749938965, -0.12167154252529144, 1.4016454219818115, -0.38141068816185, -0.5528751611709595...
func (op *BrandsGetOp) Do(ctx context.Context) (*model.Brand, error) { var res *model.Brand return res, ((*esign.Op)(op)).Do(ctx, &res) }
[ -0.19076299667358398, 0.5136291980743408, 0.3316045105457306, 0.7879432439804077, 0.7733470797538757, 0.09850110858678818, -0.3159535527229309, -0.2942076027393341, -0.03822809457778931, 0.3692525327205658, 0.061410412192344666, 0.7467064261436462, 0.1876659095287323, -0.04178540036082268,...
func (op *BrandsGetOp) IncludeExternalReferences() *BrandsGetOp { if op != nil { op.QueryOpts.Set("include_external_references", "true") } return op }
[ -0.05297427251935005, 0.788049042224884, 0.6218899488449097, 0.09753058850765228, -0.044428471475839615, 0.9496135115623474, -0.4800240695476532, 0.34320715069770813, 0.4911775290966034, -0.19685876369476318, 0.33403438329696655, 0.42092859745025635, -1.3904441595077515, -0.159562006592750...
func (op *BrandsGetOp) IncludeLogos() *BrandsGetOp { if op != nil { op.QueryOpts.Set("include_logos", "true") } return op }
[ 0.46870312094688416, 1.5501574277877808, 0.399929016828537, 0.009576993994414806, -0.5963605642318726, -0.010950854048132896, 0.11559935659170151, -0.3081561326980591, 1.3142385482788086, -0.17894577980041504, -0.09033875167369843, 0.4064105451107025, -0.6556703448295593, -0.71464192867279...
func (s *Service) BrandsGetExportFile(brandID string) *BrandsGetExportFileOp { return &BrandsGetExportFileOp{ Credential: s.credential, Method: "GET", Path: strings.Join([]string{"brands", brandID, "file"}, "/"), QueryOpts: make(url.Values), Version: esign.APIv2, } }
[ -0.1625383198261261, 0.13673123717308044, 0.4517291486263275, -0.3579070568084717, 0.20218032598495483, -0.4744117558002472, -0.054368335753679276, 0.0743585154414177, -0.11865295469760895, 0.13551589846611023, 0.11678051948547363, 1.0863295793533325, -0.7941444516181946, -0.25034618377685...
func (op *BrandsGetExportFileOp) Do(ctx context.Context) error { return ((*esign.Op)(op)).Do(ctx, nil) }
[ 0.8526440858840942, 0.2768099009990692, 0.5483430027961731, 0.2488858997821808, 0.951514482498169, -0.16586965322494507, -0.05848988518118858, -0.27573686838150024, -0.257090300321579, 0.7275545001029968, 0.14664262533187866, 0.11060001701116562, 0.10768913477659225, -0.5959674119949341, ...
func (s *Service) BrandsGetLogo(brandID string, logoType string) *BrandsGetLogoOp { return &BrandsGetLogoOp{ Credential: s.credential, Method: "GET", Path: strings.Join([]string{"brands", brandID, "logos", logoType}, "/"), QueryOpts: make(url.Values), Version: esign.APIv2, } }
[ -0.547523021697998, 0.3606671392917633, 0.10768338292837143, -0.4775564968585968, 0.19216614961624146, -1.3113301992416382, -0.7766067385673523, -0.33778318762779236, 0.24910381436347961, -0.15670572221279144, -0.5246652364730835, 1.8097089529037476, -0.34124335646629333, -0.46751898527145...
func (op *BrandsGetLogoOp) Do(ctx context.Context) (*esign.Download, error) { var res *esign.Download return res, ((*esign.Op)(op)).Do(ctx, &res) }
[ 0.29987475275993347, -0.023313019424676895, 0.5143214464187622, -0.31585419178009033, 0.30816325545310974, -0.25429442524909973, -0.5661134123802185, -0.7117946147918701, 0.40033432841300964, 0.34718990325927734, 0.3421285152435303, 0.8372439742088318, 0.7371851205825806, -0.24615572392940...
func (s *Service) BrandsGetResource(brandID string, resourceContentType string) *BrandsGetResourceOp { return &BrandsGetResourceOp{ Credential: s.credential, Method: "GET", Path: strings.Join([]string{"brands", brandID, "resources", resourceContentType}, "/"), QueryOpts: make(url.Values), Version:...
[ -0.44028621912002563, -0.29929202795028687, 0.03684940189123154, -0.8073387742042542, 0.34618818759918213, -0.8275121450424194, -0.5441171526908875, -0.056164227426052094, 0.41204091906547546, -0.1419895738363266, 0.5660392642021179, 0.8885440230369568, -1.1283414363861084, -0.435879200696...
func (op *BrandsGetResourceOp) Do(ctx context.Context) error { return ((*esign.Op)(op)).Do(ctx, nil) }
[ 0.6339738368988037, -0.06156138330698013, 0.3107934892177582, -0.2742687165737152, 0.961916446685791, -0.14628054201602936, -0.1122652217745781, -0.14742490649223328, 0.1445976048707962, 0.26582273840904236, 0.3224838972091675, 0.23544549942016602, 0.01712244190275669, -0.20311479270458221...
func (op *BrandsGetResourceOp) Langcode(val string) *BrandsGetResourceOp { if op != nil { op.QueryOpts.Set("langcode", val) } return op }
[ 0.976311206817627, -0.24843204021453857, 0.08831591159105301, 0.40507772564888, -0.2690017819404602, -0.144737109541893, -0.3778555989265442, 0.31754690408706665, 0.9668383002281189, -0.17978045344352722, 1.5414408445358276, 0.00016983885143417865, 0.03382668271660805, -0.7936574816703796,...
func (op *BrandsGetResourceOp) ReturnMaster() *BrandsGetResourceOp { if op != nil { op.QueryOpts.Set("return_master", "true") } return op }
[ 0.162337988615036, -0.050201840698719025, 0.3922705352306366, -0.035773396492004395, -0.29248034954071045, -0.23039983212947845, 0.055872224271297455, 0.6129785180091858, 0.723129153251648, -0.38588809967041016, 1.0988707542419434, 0.0016636645887047052, -1.3776596784591675, -0.91558700799...
func (s *Service) BrandsList() *BrandsListOp { return &BrandsListOp{ Credential: s.credential, Method: "GET", Path: "brands", Accept: "application/json", QueryOpts: make(url.Values), Version: esign.APIv2, } }
[ -0.4481368958950043, 0.10824494808912277, 0.2600471079349518, -0.42362359166145325, 0.08620475977659225, -0.7907196879386902, -1.0387085676193237, 0.30600371956825256, 0.48135998845100403, 0.013651984743773937, -0.5206531882286072, 0.8915400505065918, 0.1164197325706482, -0.240229055285453...
func (op *BrandsListOp) Do(ctx context.Context) (*model.BrandsResponse, error) { var res *model.BrandsResponse return res, ((*esign.Op)(op)).Do(ctx, &res) }
[ -0.5087975859642029, 0.07080087810754776, 0.4053921699523926, -0.03794662281870842, 0.5499827265739441, -0.40648436546325684, -0.39383095502853394, -0.3653024733066559, 0.7591407895088196, 0.5283617973327637, -0.5222043991088867, -0.213862806558609, 0.11243778467178345, 0.1235591322183609,...
func (op *BrandsListOp) ExcludeDistributorBrand() *BrandsListOp { if op != nil { op.QueryOpts.Set("exclude_distributor_brand", "true") } return op }
[ -0.12587478756904602, 1.0416646003723145, 0.14797243475914001, 1.301673173904419, -1.1770397424697876, 1.3717793226242065, 0.6046850681304932, 0.5816546678543091, 1.229569911956787, -0.41388341784477234, -0.2391359955072403, -0.7920569181442261, -0.730453372001648, 0.40787139534950256, 0...
func (op *BrandsListOp) IncludeLogos() *BrandsListOp { if op != nil { op.QueryOpts.Set("include_logos", "true") } return op }
[ 0.39919301867485046, 1.4955377578735352, 0.40416985750198364, 0.12393191456794739, -0.7365202903747559, -0.013831950724124908, 0.060256969183683395, -0.17528310418128967, 1.4701406955718994, -0.15571165084838867, -0.44263893365859985, 0.2538803815841675, -0.7042807936668396, -0.42966461181...
func (s *Service) BrandsListResources(brandID string) *BrandsListResourcesOp { return &BrandsListResourcesOp{ Credential: s.credential, Method: "GET", Path: strings.Join([]string{"brands", brandID, "resources"}, "/"), Accept: "application/json", QueryOpts: make(url.Values), Version: esign...
[ -0.29813796281814575, -0.23035068809986115, 0.17163081467151642, -0.7974305748939514, -0.4443598985671997, -0.7877880334854126, -0.40843069553375244, 0.3298611342906952, 1.0530247688293457, -0.12172847241163254, -0.42486104369163513, 0.5319828391075134, -0.47406360507011414, 0.428877681493...
func (op *BrandsListResourcesOp) Do(ctx context.Context) (*model.BrandResourcesList, error) { var res *model.BrandResourcesList return res, ((*esign.Op)(op)).Do(ctx, &res) }
[ -0.04948141425848007, -0.01800166256725788, 0.09500394016504288, -0.0813068374991417, 0.06267598271369934, -0.39585304260253906, -0.17523881793022156, 0.30812904238700867, 0.4316238760948181, 0.6072449684143066, -0.6456714272499084, -0.1716904491186142, 0.1266491860151291, 0.36597162485122...
func (s *Service) BrandsUpdate(brandID string, brand *model.Brand) *BrandsUpdateOp { return &BrandsUpdateOp{ Credential: s.credential, Method: "PUT", Path: strings.Join([]string{"brands", brandID}, "/"), Payload: brand, Accept: "application/json", QueryOpts: make(url.Values), Version: ...
[ -0.9484102725982666, -0.2848179340362549, 0.24256069958209991, -0.6479048132896423, -0.3884812891483307, -0.250728040933609, -0.776246964931488, 0.28180888295173645, 0.40932077169418335, 0.4616601765155792, -0.8157286643981934, 0.8547479510307312, -1.1076126098632812, -0.8855770826339722, ...
func (op *BrandsUpdateOp) Do(ctx context.Context) (*model.Brand, error) { var res *model.Brand return res, ((*esign.Op)(op)).Do(ctx, &res) }
[ -0.2871535122394562, -0.0034230833407491446, 0.39206263422966003, 0.8749566078186035, 0.05032281205058098, 0.3442107141017914, -0.2569591701030731, 0.09887736290693283, 0.098872110247612, 0.7208508253097534, -0.4145790934562683, 0.5346755981445312, -0.19739054143428802, -0.0370725393295288...
func (s *Service) BrandsUpdateLogo(brandID string, logoType string, logoFileBytes []byte) *BrandsUpdateLogoOp { return &BrandsUpdateLogoOp{ Credential: s.credential, Method: "PUT", Path: strings.Join([]string{"brands", brandID, "logos", logoType}, "/"), Payload: logoFileBytes, Accept: "image...
[ -0.4472460448741913, -0.3962801992893219, 0.19579234719276428, -0.7386839389801025, -1.052206039428711, -0.31537795066833496, -0.46985185146331787, 0.4690258204936981, -0.1286812722682953, 0.5414764881134033, -1.136199712753296, 1.1383346319198608, -0.41902315616607666, -0.5265915393829346...
func (op *BrandsUpdateLogoOp) Do(ctx context.Context) error { return ((*esign.Op)(op)).Do(ctx, nil) }
[ -0.06892337650060654, -0.5536425709724426, 0.5163946151733398, 0.05037028342485428, -0.07388043403625488, 0.2310466170310974, -0.4758663773536682, -0.18218994140625, 0.3148370087146759, 0.9588890075683594, -0.009694083593785763, 0.3843538761138916, 0.4849899709224701, -0.285391241312027, ...
func (s *Service) BrandsUpdateResource(brandID string, resourceContentType string, media io.Reader, mimeType string) *BrandsUpdateResourceOp { return &BrandsUpdateResourceOp{ Credential: s.credential, Method: "PUT", Path: strings.Join([]string{"brands", brandID, "resources", resourceContentType}, "/"),...
[ -0.852540910243988, -0.9436722993850708, 0.11047501116991043, -0.6554446220397949, -0.6687061786651611, -0.20406047999858856, -0.2074352204799652, 0.40595918893814087, 0.09836285561323166, 0.8812451362609863, -0.31651753187179565, 0.579226553440094, -1.312166452407837, -0.2880701422691345,...
func (op *BrandsUpdateResourceOp) Do(ctx context.Context) (*model.BrandResources, error) { var res *model.BrandResources return res, ((*esign.Op)(op)).Do(ctx, &res) }
[ -0.04823368042707443, -0.327647864818573, 0.4195716977119446, 0.2113509625196457, -0.41706088185310364, 0.01779259368777275, 0.018772730603814125, 0.47128161787986755, 0.0625477284193039, 0.8786144256591797, -0.34209907054901123, -0.02282925881445408, -0.35939639806747437, 0.18042464554309...
func (s *Service) ConsumerDisclosuresGet(langCode string) *ConsumerDisclosuresGetOp { return &ConsumerDisclosuresGetOp{ Credential: s.credential, Method: "GET", Path: strings.Join([]string{"consumer_disclosure", langCode}, "/"), Accept: "application/json", QueryOpts: make(url.Values), Versio...
[ 0.2674863934516907, -0.1173626109957695, 0.6351402997970581, -0.4555022418498993, 0.016262471675872803, -0.9594154953956604, -0.11773955821990967, -0.4678346514701843, -0.4728175699710846, 0.1224307268857956, 0.5159412622451782, 0.5003052949905396, -0.51204514503479, -0.01937035843729973, ...
func (op *ConsumerDisclosuresGetOp) Do(ctx context.Context) (*model.ConsumerDisclosure, error) { var res *model.ConsumerDisclosure return res, ((*esign.Op)(op)).Do(ctx, &res) }
[ 0.9118624329566956, 0.4318046271800995, 0.6890548467636108, 0.47924351692199707, 0.46922335028648376, -0.48658376932144165, -0.16924341022968292, -0.44220829010009766, -0.03460420295596123, 0.5834490060806274, 0.40680429339408875, 0.5754376649856567, 0.5644230246543884, 0.07464359700679779...
func (s *Service) ConsumerDisclosuresGetDefault() *ConsumerDisclosuresGetDefaultOp { return &ConsumerDisclosuresGetDefaultOp{ Credential: s.credential, Method: "GET", Path: "consumer_disclosure", Accept: "application/json", QueryOpts: make(url.Values), Version: esign.APIv2, } }
[ 1.3963875770568848, 0.05684338137507439, 0.4757423400878906, 0.9471552968025208, 0.9577155709266663, -0.8850720524787903, 0.18787534534931183, -0.17212018370628357, 0.03315483033657074, -0.13519614934921265, 0.39271280169487, 0.2661060094833374, -1.0894640684127808, 0.1136295348405838, -...
func (op *ConsumerDisclosuresGetDefaultOp) Do(ctx context.Context) (*model.ConsumerDisclosure, error) { var res *model.ConsumerDisclosure return res, ((*esign.Op)(op)).Do(ctx, &res) }
[ 1.1664388179779053, 0.6875045895576477, 0.6845129132270813, 0.9355244040489197, 1.1145501136779785, -0.6188440322875977, -0.04952177032828331, -0.25061190128326416, -0.06764563173055649, 0.5285845994949341, 0.1254870444536209, 0.04040234908461571, 0.01865410804748535, 0.4335010349750519, ...
func (op *ConsumerDisclosuresGetDefaultOp) LangCode(val string) *ConsumerDisclosuresGetDefaultOp { if op != nil { op.QueryOpts.Set("langCode", val) } return op }
[ 1.402227520942688, 0.3596220016479492, 0.11828174442052841, 1.4206743240356445, 0.2740931510925293, -0.10387258976697922, -0.4585045874118805, 0.29044538736343384, 0.7200812101364136, -0.05816110223531723, 1.2921316623687744, -0.020014099776744843, -0.03406049311161041, -0.2675556540489197...
func (s *Service) ConsumerDisclosuresUpdate(langCode string, consumerDisclosure *model.ConsumerDisclosure) *ConsumerDisclosuresUpdateOp { return &ConsumerDisclosuresUpdateOp{ Credential: s.credential, Method: "PUT", Path: strings.Join([]string{"consumer_disclosure", langCode}, "/"), Payload: consu...
[ 0.7714332938194275, -1.0053945779800415, 0.5669592022895813, -0.3777351677417755, -0.9105353355407715, -0.4279485046863556, -0.0860057920217514, -0.09199485927820206, -0.23939810693264008, 0.8009090423583984, -0.013110889121890068, 0.10768052190542221, -0.8737714290618896, -0.2127259373664...
func (op *ConsumerDisclosuresUpdateOp) Do(ctx context.Context) (*model.ConsumerDisclosure, error) { var res *model.ConsumerDisclosure return res, ((*esign.Op)(op)).Do(ctx, &res) }
[ 0.9039620757102966, -0.1293000876903534, 0.7330994606018066, 0.5708481073379517, -0.22285382449626923, -0.27318504452705383, -0.09864477068185806, -0.269411563873291, 0.06112578138709068, 0.9386507272720337, -0.05771610513329506, 0.3847827613353729, 0.1396298110485077, 0.035897620022296906...
func (op *ConsumerDisclosuresUpdateOp) IncludeMetadata(val string) *ConsumerDisclosuresUpdateOp { if op != nil { op.QueryOpts.Set("include_metadata", val) } return op }
[ 1.1183106899261475, 0.42418310046195984, 0.5369725823402405, 0.997137725353241, -0.8091414570808411, 1.2096327543258667, 0.20704860985279083, 0.3268585503101349, 1.2395738363265991, 0.8261323571205139, 0.3043290376663208, 0.10659215599298477, -0.688065230846405, -0.5614960193634033, -0.6...
func (s *Service) CustomFieldsCreate(customField *model.CustomField) *CustomFieldsCreateOp { return &CustomFieldsCreateOp{ Credential: s.credential, Method: "POST", Path: "custom_fields", Payload: customField, QueryOpts: make(url.Values), Version: esign.APIv2, } }
[ 0.4568670094013214, 1.1684681177139282, 0.43378177285194397, -0.440522164106369, 0.38619324564933777, 0.15423063933849335, -0.12678007781505585, -0.17780441045761108, -0.11675446480512619, 0.01777069643139839, -1.1199496984481812, -0.06217437982559204, -0.8107990026473999, -0.7868892550468...
func (op *CustomFieldsCreateOp) Do(ctx context.Context) (*model.CustomFields, error) { var res *model.CustomFields return res, ((*esign.Op)(op)).Do(ctx, &res) }
[ 0.759946882724762, 1.2661933898925781, 0.37476155161857605, -0.09996215254068375, 0.3779190480709076, 0.1149098351597786, 0.7886525392532349, -0.3099788427352905, -0.3089040219783783, 0.5916345119476318, -1.296660304069519, -0.1496601551771164, -0.31040826439857483, -0.45309609174728394, ...
func (op *CustomFieldsCreateOp) ApplyToTemplates() *CustomFieldsCreateOp { if op != nil { op.QueryOpts.Set("apply_to_templates", "true") } return op }
[ 0.36313897371292114, 0.9134852886199951, 0.5573341250419617, 0.0851212665438652, -0.32856127619743347, 0.02348913624882698, 1.3443470001220703, 0.16065606474876404, 1.2863636016845703, -0.30924659967422485, -0.4499962031841278, -1.0047810077667236, -1.0117863416671753, 0.12274467200040817,...
func (s *Service) CustomFieldsDelete(customFieldID string) *CustomFieldsDeleteOp { return &CustomFieldsDeleteOp{ Credential: s.credential, Method: "DELETE", Path: strings.Join([]string{"custom_fields", customFieldID}, "/"), QueryOpts: make(url.Values), Version: esign.APIv2, } }
[ 1.0112504959106445, 0.12785859405994415, 0.27612265944480896, -0.6470153331756592, 0.22695592045783997, -0.6377019286155701, 0.3421882390975952, 0.4456521272659302, 0.38880404829978943, 0.5320146679878235, -0.696414053440094, 0.5033686757087708, -0.9088412523269653, -0.6774234771728516, ...
func (op *CustomFieldsDeleteOp) Do(ctx context.Context) error { return ((*esign.Op)(op)).Do(ctx, nil) }
[ 1.0386713743209839, 0.6749433279037476, 0.5303933620452881, 0.08607946336269379, 0.33718305826187134, -0.3043122887611389, 0.4883725643157959, 0.1351727992296219, 0.09572536498308182, 0.9941865801811218, -0.6114216446876526, 0.07440830767154694, -0.11982699483633041, -0.7045250535011292, ...
func (op *CustomFieldsDeleteOp) ApplyToTemplates() *CustomFieldsDeleteOp { if op != nil { op.QueryOpts.Set("apply_to_templates", "true") } return op }
[ 0.5897908806800842, 0.6835088729858398, 0.5829694867134094, 0.09080452471971512, -0.4276098906993866, -0.36554962396621704, 1.268040418624878, 0.5233827829360962, 1.5859191417694092, -0.13707520067691803, -0.13925154507160187, -0.7160388231277466, -0.7787790894508362, -0.014773637056350708...
func (s *Service) CustomFieldsList() *CustomFieldsListOp { return &CustomFieldsListOp{ Credential: s.credential, Method: "GET", Path: "custom_fields", Accept: "application/json", QueryOpts: make(url.Values), Version: esign.APIv2, } }
[ 0.33780476450920105, 0.5483809113502502, 0.39494094252586365, -0.6452086567878723, -0.12904419004917145, -1.163651704788208, -0.16715429723262787, 0.2586195170879364, 0.11759958416223526, 0.328414648771286, -1.4145288467407227, 0.5930871963500977, -0.26583895087242126, -0.627816915512085, ...
func (op *CustomFieldsListOp) Do(ctx context.Context) (*model.CustomFields, error) { var res *model.CustomFields return res, ((*esign.Op)(op)).Do(ctx, &res) }
[ 0.2904195189476013, 0.9145374894142151, 0.4762529730796814, 0.0007034739246591926, 0.047268059104681015, -0.3920747935771942, 0.5170609354972839, 0.1629437804222107, -0.06917881965637207, 0.9443774223327637, -1.5402556657791138, -0.25222963094711304, -0.3135160505771637, -0.469388335943222...
func (s *Service) CustomFieldsUpdate(customFieldID string, customField *model.CustomField) *CustomFieldsUpdateOp { return &CustomFieldsUpdateOp{ Credential: s.credential, Method: "PUT", Path: strings.Join([]string{"custom_fields", customFieldID}, "/"), Payload: customField, Accept: "applicat...
[ 0.24671189486980438, -0.48459091782569885, 0.42755749821662903, -1.1276071071624756, -0.8682971596717834, -0.48604777455329895, -0.06955596059560776, 0.30548834800720215, -0.0809340849518776, 0.8134269714355469, -1.2472021579742432, 0.3949391841888428, -1.3488878011703491, -1.0605236291885...
func (op *CustomFieldsUpdateOp) Do(ctx context.Context) (*model.CustomFields, error) { var res *model.CustomFields return res, ((*esign.Op)(op)).Do(ctx, &res) }
[ 0.6425530910491943, 0.39751845598220825, 0.5807692408561707, -0.02507924847304821, -0.43264496326446533, -0.21923595666885376, 0.6774502992630005, 0.20412825047969818, -0.0919598713517189, 1.1581867933273315, -1.2539209127426147, -0.09990194439888, -0.629948079586029, -0.941050112247467, ...
func (op *CustomFieldsUpdateOp) ApplyToTemplates() *CustomFieldsUpdateOp { if op != nil { op.QueryOpts.Set("apply_to_templates", "true") } return op }
[ 0.28050723671913147, 0.4314802885055542, 0.6271271705627441, 0.18878783285617828, -0.85358726978302, -0.28745388984680176, 1.2079992294311523, 0.4514945447444916, 1.5437872409820557, 0.08037988096475601, -0.3337404131889343, -0.9625362157821655, -1.0878429412841797, -0.23071758449077606, ...
func (s *Service) PasswordRulesGet() *PasswordRulesGetOp { return &PasswordRulesGetOp{ Credential: s.credential, Method: "GET", Path: "settings/password_rules", Accept: "application/json", QueryOpts: make(url.Values), Version: esign.APIv2, } }
[ -0.3571551442146301, 0.5378785133361816, 0.4128497242927551, -0.720996618270874, 0.9270722270011902, -0.19081448018550873, -0.8346353769302368, -0.02629881724715233, -0.5935724973678589, 0.6212427616119385, 0.41563743352890015, 1.2844520807266235, -1.1978085041046143, -0.626547634601593, ...
func (op *PasswordRulesGetOp) Do(ctx context.Context) (*model.AccountPasswordRules, error) { var res *model.AccountPasswordRules return res, ((*esign.Op)(op)).Do(ctx, &res) }
[ 0.44077932834625244, 0.8565019965171814, 0.4910311698913574, -0.048846181482076645, 1.0136809349060059, 0.30751025676727295, -0.5034907460212708, -0.1799592226743698, -0.2982061207294464, 1.3477280139923096, 0.16089703142642975, 0.6505362391471863, 0.1537163257598877, -0.01982535421848297,...