text
stringlengths
11
6.3k
embedding
listlengths
768
768
func NewPrivKey( btc btcgrp.Bitcoiner, logger *zap.Logger, accountKeyRepo coldrepo.AccountKeyRepositorier, wtype wallet.WalletType) *PrivKey { return &PrivKey{ btc: btc, logger: logger, accountKeyRepo: accountKeyRepo, wtype: wtype, } }
[ 0.7452215552330017, 0.04297567158937454, 0.2811562120914459, 0.38078513741493225, 0.01572324149310589, -0.8169330954551697, -0.20904575288295746, -0.4397898316383362, 0.24606512486934662, 0.5384907126426697, 0.5183083415031433, 0.6023641228675842, -1.066420316696167, 0.9423466324806213, ...
func (p *PrivKey) Import(accountType account.AccountType) error { // 1. retrieve records(private key) from account_key table accountKeyTable, err := p.accountKeyRepo.GetAllAddrStatus(accountType, address.AddrStatusHDKeyGenerated) // addr_status=0 if err != nil { return errors.Wrap(err, "fail to call repo.GetAllAcc...
[ -0.4688507318496704, -0.37083959579467773, 0.8515826463699341, 0.017923768609762192, 0.25612571835517883, -0.008859236724674702, 0.9834744930267334, 0.13196814060211182, 0.2543860375881195, 0.7981221079826355, -0.4405663013458252, 0.2684282660484314, -0.7978975772857666, 0.5332099795341492...
func (p *PrivKey) checkImportedAddress(walletAddress, p2shSegwitAddress, fullPublicKey string) { // Note, // GetAccount() calls GetAddressInfo() internally var ( targetAddr string addrType address.AddrType ) switch p.btc.CoinTypeCode() { case coin.BTC: targetAddr = p2shSegwitAddress addrType = address...
[ 0.7623828649520874, -0.4864991009235382, 1.0502969026565552, -0.27218514680862427, 0.5449835658073425, -0.519137442111969, 0.3176630139350891, 0.041415873914957047, 0.8642037510871887, 0.8560279011726379, -0.16150708496570587, 1.2682148218154907, -0.21805131435394287, 0.6455146074295044, ...
func countHandler(w http.ResponseWriter, r *http.Request) { // In case more than one user decides to use our service we make sure only one at a time // is able to read and write the file and the timestamps are sorted fileMutex.Lock() defer fileMutex.Unlock() // Get previously persisted timestamps timestamps := g...
[ 0.4263668358325958, -0.24133391678333282, 0.5630367994308472, 0.049562968313694, 0.877987265586853, 0.42659348249435425, 0.5528841614723206, 0.267273873090744, -0.5644459128379822, 0.35352006554603577, 0.5027456879615784, -0.8077277541160583, -0.24562345445156097, 0.577461302280426, 0.56...
func getTSFromFile(filename string) []int { content, err := ioutil.ReadFile(filename) handleError(err) var timestamps []int errJSON := json.Unmarshal(content, &timestamps) handleError(errJSON) return timestamps }
[ -0.2798638939857483, -0.10539034008979797, 0.7500728368759155, -0.5204388499259949, -0.43211692571640015, 0.010030444711446762, -0.1842804104089737, -0.005885255988687277, -0.8886749744415283, 0.9676938652992249, -0.8201896548271179, -0.49241673946380615, 0.09050785005092621, -0.1364577710...
func purgeTSOlderThan(timestamps []int, timeFrame int) []int { for i, v := range timestamps { if v >= timeFrame { return timestamps[i:] // all TS from now on are inside our timeframe } } return nil }
[ 0.26474979519844055, -0.47203290462493896, 0.6155750751495361, 0.10107209533452988, -0.5007749795913696, -0.21288825571537018, -0.6777708530426025, -0.4873664081096649, 0.234686478972435, 0.1365981251001358, -0.979875922203064, 0.3528575003147125, -0.757345974445343, -0.4930211305618286, ...
func writeTSToFile(filepath string, timestamps []int) { jsonBytes, errjson := json.Marshal(timestamps) handleError(errjson) err := ioutil.WriteFile(filepath, jsonBytes, 0777) handleError(err) }
[ -0.5571128129959106, -0.15503403544425964, 0.5403982400894165, -0.8118181824684143, 0.7146683931350708, 0.455595463514328, -0.2954058349132538, -0.2485605925321579, -0.09466063976287842, 0.7067080736160278, -0.8679165244102478, -0.6712321639060974, 0.781380295753479, -0.23287959396839142, ...
func initTSFile(filepath string) { if _, err := os.Stat(filepath); os.IsNotExist(err) { timestamps := []int{} writeTSToFile(filepath, timestamps) } }
[ 0.0576539970934391, 0.07918956130743027, 0.583257794380188, -0.7452489733695984, 0.6654317378997803, 0.36839208006858826, 0.09961628913879395, -0.2171761840581894, -0.5427402853965759, 0.44246765971183777, -0.7617294788360596, -0.3293452858924866, 0.8599410057067871, 1.1027103662490845, ...
func (fd *File) ProtoLegacyRawDesc() []byte { return fd.builder.RawDescriptor }
[ 0.08779848366975784, 0.0892602950334549, 0.643343448638916, -0.8825852870941162, -0.42461684346199036, 0.6869416236877441, -0.754551351070404, 0.8393441438674927, -0.5955107808113098, -1.130237340927124, -0.003697451204061508, 0.4797167181968689, 0.7260720133781433, 0.7348103523254395, -...
func (fd *File) GoPackagePath() string { return fd.builder.GoPackagePath }
[ 0.06604567915201187, 0.5672999024391174, 0.2963411509990692, 0.7286023497581482, 0.25433120131492615, 0.7877465486526489, 1.030155062675476, 0.37811723351478577, -0.4477768540382385, 1.1886299848556519, -0.15173545479774475, -0.5731310248374939, 0.029089055955410004, 0.9735966920852661, ...
func (md *Message) IsMessageSet() bool { return md.L1.IsMessageSet }
[ -0.36952802538871765, 0.33341288566589355, 0.5263837575912476, 0.1305636465549469, -0.10374362021684647, -0.6522964835166931, -0.028490565717220306, -1.1808805465698242, 0.4761989116668701, 0.4969198405742645, 0.833130955696106, 0.7205973863601685, -0.9920120239257812, 1.194562315940857, ...
func (fd *Field) EnforceUTF8() bool { if fd.L1.HasEnforceUTF8 { return fd.L1.EnforceUTF8 } return fd.L0.ParentFile.L1.Syntax == pref.Proto3 }
[ -0.21830692887306213, 0.3708355128765106, 0.5102429986000061, 0.2131718546152115, -0.09069496393203735, 0.42121008038520813, -0.035809893161058426, 0.5681994557380676, -0.3188965916633606, 0.26830533146858215, 0.13268202543258667, -0.5307211875915527, -0.906853437423706, 0.4175117015838623...
func (js *jsonName) Init(s string) { js.has = true js.name = s }
[ -0.2833758294582367, -0.498717337846756, 0.45317283272743225, -1.7234892845153809, -1.4532546997070312, -0.29249465465545654, -0.6268697381019592, 0.38629406690597534, -0.40474608540534973, 0.43670105934143066, -1.7145558595657349, 0.6422333121299744, 0.9720596075057983, 0.5190512537956238...
func ReadBytes(reader io.Reader) ([]byte, error) { byLen, err := ReadVarint(reader) if err != nil { return nil, err } bys := make([]byte, byLen) err = BinRead(reader, &bys) return bys, err }
[ -0.49462294578552246, 0.2098587602376938, 0.37442541122436523, 0.037430644035339355, -0.6709102988243103, -0.7468685507774353, 0.09371525049209595, -0.2246614694595337, 0.013757589273154736, 0.26258179545402527, -0.13983719050884247, 0.27233219146728516, -0.9019516110420227, 0.323305219411...
func (d *Dao) SearchGroup(c context.Context, cond *search.GroupSearchCommonCond) (resp *search.GroupSearchCommonResp, err error) { start := time.Now() var r *elastic.Request defer func() { log.Info("SearchGroup params(%s) group search ts %s err_or(%v)", r.Params(), time.Since(start).String(), err) }() r = d.es....
[ -0.5926081538200378, 0.21831446886062622, 0.8218014240264893, 0.2782211899757385, -0.6309447288513184, -0.329910010099411, 0.8167577981948853, -0.8920773267745972, -0.638302206993103, 0.44466620683670044, 0.5554478168487549, 0.41504985094070435, -0.9171710014343262, 0.5202964544296265, 0...
func (d *Dao) SearchChallenge(c context.Context, cond *search.ChallSearchCommonCond) (resp *search.ChallSearchCommonResp, err error) { start := time.Now() var r *elastic.Request defer func() { log.Info("SearchChallenge params(%s) challenge search ts %s err_or(%v)", r.Params(), time.Since(start).String(), err) }()...
[ 0.14593422412872314, -0.14585062861442566, 0.6938017010688782, 0.1294543743133545, -0.05071786791086197, -0.3276670277118683, 0.06412135809659958, -0.055773451924324036, -0.3239821493625641, 0.8517798781394958, 0.0911904126405716, 0.4135328233242035, -0.2477785050868988, 0.1594780087471008...
func (d *Dao) BatchUNameByUID(c context.Context, uids []int64) (UNames map[int64]string, err error) { //todo: local cache uname uri := _unameURI uv := url.Values{} UNames = make(map[int64]string) if len(uids) == 0 { return } uv.Set("uids", xstr.JoinInts(uids)) unameSchRes := new(manager.UNameSearchResult) if...
[ -1.2598873376846313, 0.3315656781196594, 0.6188154220581055, -0.1930411458015442, -0.11044947057962418, -0.37481117248535156, -0.28767332434654236, 0.35328882932662964, 0.18004396557807922, 0.39436739683151245, -0.41707003116607666, 0.02937549538910389, -0.2825237214565277, 0.7198127508163...
func (d *Dao) SearchAuditLogGroup(c context.Context, cond *search.AuditLogGroupSearchCond) (auditLogSchRes *search.AuditLogSearchResult, err error) { uri := _srhAuditLogURI uv := cond.Query() auditLogSchRes = new(search.AuditLogSearchResult) if err = d.httpRead.Get(c, uri, "", uv, auditLogSchRes); err != nil { lo...
[ -0.7292675971984863, 0.8199425339698792, 0.2228560596704483, -0.31702396273612976, -1.0151877403259277, -0.5210506319999695, -0.026464734226465225, -1.0898020267486572, -0.3930336833000183, 0.20253579318523407, 0.580482542514801, 0.8627355098724365, -0.589491605758667, 0.77925044298172, ...
func ExtractRoleBinding(rb *rbacv1.RoleBinding) *model.RoleBinding { return &model.RoleBinding{ Metadata: extractMetadata(&rb.ObjectMeta), RoleRef: extractRoleRef(&rb.RoleRef), Subjects: extractSubjects(rb.Subjects), } }
[ 0.05135020241141319, -0.47272974252700806, 0.36546072363853455, -0.1484624594449997, 0.0952560231089592, 0.03670201823115349, 0.5852252840995789, -0.5877267122268677, 1.1677920818328857, 0.7256819605827332, -0.22443917393684387, 0.13851042091846466, -0.3900362551212311, 0.29426953196525574...
func (c *Calcium) Copy(ctx context.Context, opts *types.CopyOptions) (chan *types.CopyMessage, error) { logger := log.WithFunc("calcium.Copy").WithField("opts", opts) if err := opts.Validate(); err != nil { logger.Error(ctx, err) return nil, err } ch := make(chan *types.CopyMessage) _ = c.pool.Invoke(func() {...
[ -0.433255672454834, -0.0245090089738369, 0.8743586540222168, 0.28270047903060913, -0.14711971580982208, 0.9767032861709595, 0.48974108695983887, -1.2055597305297852, -0.0949251651763916, 0.9130551218986511, 1.072546124458313, 0.23817820847034454, -0.6777374148368835, -0.09727973490953445, ...
func NewProjectController(opt *Options) ProjectControl { return &project{ option: opt, } }
[ 0.19795919954776764, 0.39705100655555725, -0.015579002909362316, 0.6574234366416931, -1.0213960409164429, 0.3195132613182068, 0.3217819333076477, -0.6232913136482239, 0.46271002292633057, 0.22968341410160065, -0.6723290681838989, -0.6396971940994263, -0.46250930428504944, 0.237662598490715...
func (control *project) GetProject(ctx context.Context, projectCode string) (*bcsproject.Project, error) { // get information from project-manager req := &bcsproject.GetProjectRequest{ProjectIDOrCode: projectCode} // setting auth info header := metadata.New(map[string]string{"Authorization": fmt.Sprintf("Bearer %s"...
[ -0.31090590357780457, 0.7347328662872314, 0.5834438800811768, -0.2691424787044525, 0.42338326573371887, -0.4024980664253235, -0.4075489044189453, -0.9893144369125366, 0.2666644752025604, -0.36471039056777954, -0.3222917318344116, 0.8229553699493408, -1.2555629014968872, 0.0796847939491272,...
func IsPubKeyHashAddrID(id byte) bool { _, ok := pubKeyHashAddrIDs[id] return ok }
[ 0.2646564245223999, 0.33927121758461, 0.2283691018819809, -0.48531264066696167, -0.4286791682243347, -0.0021216378081589937, -0.7471733093261719, 0.37038925290107727, 1.1565098762512207, 0.8047064542770386, -0.7080743312835693, 0.768071711063385, -1.0506349802017212, 0.9616798162460327, ...
func IsScriptHashAddrID(id byte) bool { _, ok := scriptHashAddrIDs[id] return ok }
[ -0.25723111629486084, -0.4408653974533081, 0.25428345799446106, -0.335005521774292, 0.08518100529909134, -0.8001282811164856, -0.267488032579422, -0.634490430355072, 2.1252522468566895, 0.8013689517974854, -0.580937385559082, 1.3644511699676514, -0.21418394148349762, 1.1779091358184814, ...
func HDPrivateKeyToPublicKeyID(id []byte) ([]byte, error) { if len(id) != 4 { return nil, ErrUnknownHDKeyID } var key [4]byte copy(key[:], id) pubBytes, ok := hdPrivToPubKeyIDs[key] if !ok { return nil, ErrUnknownHDKeyID } return pubBytes, nil }
[ -0.7140981554985046, 0.16077102720737457, 0.15716467797756195, -0.24433571100234985, -0.5171148180961609, -0.001243436592631042, -0.8765653967857361, -0.44523489475250244, 0.08750198781490326, 0.5758203864097595, -0.19892553985118866, 0.7715418934822083, -0.6646344065666199, 1.188637614250...
func IsBech32SegwitPrefix(prefix string) bool { prefix = strings.ToLower(prefix) _, ok := bech32SegwitPrefixes[prefix] return ok }
[ -0.25317317247390747, -0.2449730932712555, 0.4611551761627197, -0.722476601600647, 0.12601187825202942, 0.4676192104816437, -0.6792128086090088, -0.31544047594070435, 0.4871404469013214, 0.4863719642162323, -0.8945251703262329, 0.9795436263084412, -0.2954699397087097, 0.7273316979408264, ...
func UpdateGenesisBlock(blk *wire.MsgBlock) { ChainParams.GenesisBlock = blk // update ChainID chainID, err := ChainParams.GenesisBlock.Header.GetChainID() if err != nil { panic(err) // should not happen } ChainParams.ChainID = &chainID genesisChainID = chainID genesisHeader.ChainID = chainID ChainParams.Gen...
[ -0.4035018980503082, -0.5272411704063416, 0.6880277395248413, 0.20007812976837158, 0.03971169888973236, 0.3802891969680786, -0.4192941188812256, 0.006476225797086954, -1.5550315380096436, 0.5492935180664062, -0.4399930536746979, 1.3409863710403442, -0.9448437690734863, 1.540189266204834, ...
func (o *DeleteAccountRoutingsIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 204: result := NewDeleteAccountRoutingsIDNoContent() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err ...
[ -0.3585633635520935, -0.8604097962379456, 1.1020210981369019, 0.31593409180641174, -0.03927646577358246, -1.263597011566162, 0.45170673727989197, -0.13798750936985016, 0.9804526567459106, 0.5081800222396851, 0.44399991631507874, -0.13596682250499725, -0.5895283818244934, -0.221579179167747...
func NewDeleteAccountRoutingsIDNoContent() *DeleteAccountRoutingsIDNoContent { return &DeleteAccountRoutingsIDNoContent{} }
[ 0.04665512964129448, -0.11978382617235184, 0.3214230239391327, -0.3823845684528351, -0.8640856742858887, -1.0803782939910889, 0.32440292835235596, -1.1027519702911377, 1.1737749576568604, -0.6487387418746948, 0.2888835668563843, 0.29974454641342163, 0.12312466651201248, -0.515280544757843,...
func NewDeleteAccountRoutingsIDBadRequest() *DeleteAccountRoutingsIDBadRequest { return &DeleteAccountRoutingsIDBadRequest{} }
[ 0.14880558848381042, 0.2664541006088257, 0.8029906749725342, 0.636839747428894, -0.26262134313583374, -0.5294073820114136, 0.4634340703487396, 0.08421386778354645, 1.3579753637313843, -0.4938344359397888, 0.6294182538986206, 0.2732810378074646, -0.05046820640563965, 0.04728373885154724, ...
func NewDeleteAccountRoutingsIDUnauthorized() *DeleteAccountRoutingsIDUnauthorized { return &DeleteAccountRoutingsIDUnauthorized{} }
[ -0.2917749285697937, -0.03206520527601242, 0.5590795874595642, 0.5858773589134216, -0.5406004786491394, -0.49843382835388184, 0.9300069212913513, 0.7312946319580078, 1.530144453048706, -0.6610872745513916, -0.1920897215604782, 0.6687623858451843, 0.6042993664741516, -0.11659561097621918, ...
func NewDeleteAccountRoutingsIDForbidden() *DeleteAccountRoutingsIDForbidden { return &DeleteAccountRoutingsIDForbidden{} }
[ 0.6826170682907104, 0.11230012029409409, 0.7323316335678101, 0.6404922008514404, -0.6168133616447449, -0.39364373683929443, 0.733771562576294, -0.21858450770378113, 1.3192050457000732, -0.12502522766590118, 0.6322817802429199, 0.6432942748069763, 0.11816185712814331, -0.5667475461959839, ...
func NewDeleteAccountRoutingsIDNotFound() *DeleteAccountRoutingsIDNotFound { return &DeleteAccountRoutingsIDNotFound{} }
[ -0.005583322606980801, -0.7749447226524353, 0.4693993031978607, -0.1288672387599945, 0.15484751760959625, -0.6732339859008789, 0.6236497163772583, 0.11009174585342407, 1.223489761352539, -0.08632968366146088, 0.15453368425369263, 0.5254513621330261, 0.3162669241428375, -0.3281036913394928,...
func NewDeleteAccountRoutingsIDConflict() *DeleteAccountRoutingsIDConflict { return &DeleteAccountRoutingsIDConflict{} }
[ 0.4139549434185028, -0.1060783714056015, 0.5986306071281433, 0.18239523470401764, 0.04968731850385666, -0.8804646730422974, 0.3572273850440979, -0.25896716117858887, 1.389073371887207, -0.2389969527721405, 0.3698725998401642, -0.18919889628887177, 0.008525933139026165, -0.16713421046733856...
func NewDeleteAccountRoutingsIDTooManyRequests() *DeleteAccountRoutingsIDTooManyRequests { return &DeleteAccountRoutingsIDTooManyRequests{} }
[ -0.142216756939888, -0.21739797294139862, 0.6404804587364197, 1.135056495666504, -0.16638243198394775, -0.644437313079834, -0.6790577173233032, -0.016795367002487183, 1.060582160949707, -0.27577438950538635, -0.484670490026474, -0.5099257826805115, -0.21944710612297058, 0.1529863178730011,...
func NewDeleteAccountRoutingsIDServiceUnavailable() *DeleteAccountRoutingsIDServiceUnavailable { return &DeleteAccountRoutingsIDServiceUnavailable{} }
[ -0.6981621384620667, -0.5144403576850891, 0.6804462671279907, -0.07161788642406464, -0.35410547256469727, -0.8347365260124207, 0.04962211474776268, 0.8804121017456055, 1.3361839056015015, -0.03466884046792984, 0.14460024237632751, 0.5804197192192078, 0.697503924369812, -0.2969457805156708,...
func (a Asset) GetProp(propTag string) interface{} { return a[propTag] }
[ 0.7626984715461731, -0.8767747282981873, 0.32523635029792786, 0.21884244680404663, 0.11317138373851776, -0.8107975721359253, 0.4084829092025757, -0.9053981304168701, 0.5927563309669495, -0.059631966054439545, 0.9179984927177429, -0.01208650041371584, 0.3120933771133423, -0.6426661610603333...
func AWSCfg(ctx context.Context, accessKeyID, secretKey string) aws.Config { opts := []func(*config.LoadOptions) error{ config.WithRegion("us-west-1"), } // In local environment we use the default credentials chain that // will automatically pull creds from saml2aws, if !Local { opts = append(opts, config.Wit...
[ 0.714312732219696, 0.06260929256677628, 0.47425881028175354, -0.30966028571128845, -0.493028849363327, 0.042822983115911484, -1.235038161277771, 0.3581448495388031, 0.12387442588806152, 0.7203354835510254, -0.05364599823951721, 0.8472878932952881, 0.7188477516174316, 0.6683821082115173, ...
func WiscTestInsert(bt int, num int, ran bool, leveldb bool, hybrid bool, valueset bool) (float64, float64){ //prepare the temporal db err := os.MkdirAll(fmt.Sprintf("%s%d%t",dir,bt,ran), 777) if err != nil { log.Fatal(err) } // Open the Badger database located in the /tmp/badger directory...
[ -0.06406792253255844, 0.6534420847892761, 0.9866231679916382, -0.2345859557390213, 0.33315110206604004, -0.41526246070861816, 0.6192759871482849, 0.00576237915083766, -0.5055067539215088, 0.11311811953783035, -0.5278534889221191, -0.17942188680171967, -1.1748749017715454, 0.338146209716796...
func (server *Server) Accept(lis net.Listener) { for { conn, err := lis.Accept() if err != nil { log.Println("rpc server: accept error:", err) return } go server.ServerCon(conn) } }
[ -1.0992926359176636, -0.8435875773429871, 0.7614956498146057, -0.12704244256019592, 0.047781821340322495, 1.1732432842254639, -0.18160392343997955, 0.30479303002357483, -0.8389484286308289, 0.5476298332214355, -0.277349054813385, -0.21347157657146454, -0.987170934677124, 1.7095636129379272...
func Accept(lis net.Listener) { DefaultServer.Accept(lis) }
[ -1.0081592798233032, 0.0347229540348053, 0.31320270895957947, 0.005808589048683643, 0.00021803095296490937, 1.6045202016830444, 0.04422954469919205, 0.3769201636314392, -0.350582093000412, 0.427324116230011, -0.8235624432563782, -0.4581198990345001, -0.8356187343597412, 1.979851484298706, ...
func NewAuthWorker(workers *worker.Workers, id int, label string) *AuthWorker { return &AuthWorker{ command: make(chan int, 10), id: id, label: label, log: log.WithFields(log.Fields{"Label": label, "ID": id}), workers: workers, loggedOn: false, } }
[ -0.43479350209236145, -0.3831444978713989, 0.43398505449295044, -0.44132494926452637, -0.4383540451526642, -0.0016620515380054712, -0.7396919131278992, -0.30519336462020874, 0.09014908224344254, -0.04879652336239815, -1.0746753215789795, 0.9253512620925903, -0.3737962543964386, 0.302634358...
func (w *AuthWorker) Run(wg *sync.WaitGroup, term *chan int) { defer wg.Done() w.log.Debugf("Worker Started") nw := w.findNetWorker() connectionChannel := nw.Subscribe(w.id, network.SubscriptionTypeConection, w.label).Channel responseChannel := nw.Subscribe(w.id, protocolapp.OnResponseEvent, w.label).Channel err...
[ -0.5324413776397705, -1.0092236995697021, 1.007952094078064, -0.3476411700248718, 0.08770779520273209, 0.0013857963494956493, 0.06708887219429016, -1.1590523719787598, 0.707854688167572, -0.09733296930789948, -0.2186603993177414, 0.3109777271747589, -0.6264109015464783, 0.15907283127307892...
func (w *AuthWorker) Command(c int) { w.command <- c }
[ -0.45442652702331543, 0.34240037202835083, 0.4439436197280884, -0.09716586768627167, 0.73136967420578, 1.7907061576843262, 0.30964043736457825, -0.3181799352169037, 0.49145209789276123, -0.6748471856117249, -0.7982379198074341, 1.0922521352767944, -0.6518581509590149, 0.8308823704719543, ...
func (w *AuthWorker) findNetWorker() *network.Networker { for i := range *w.workers { switch (*w.workers)[i].(type) { case *network.Networker: return (*w.workers)[i].(*network.Networker) } } return nil }
[ -0.4002593755722046, -0.11563464999198914, 0.6120098829269409, 0.10161682963371277, 0.526731550693512, -0.04875146597623825, 0.18241867423057556, -1.3270447254180908, -0.08388563245534897, -0.32497116923332214, 0.3747081756591797, -0.32012930512428284, -1.6252962350845337, 1.78796684741973...
func (w *AuthWorker) Label() string { return w.label }
[ 0.019344830885529518, -0.14438453316688538, 0.27333933115005493, 0.0711391344666481, 0.23103497922420502, 1.7655225992202759, -0.21382644772529602, -0.37153545022010803, 1.218963623046875, 0.4051823616027832, 0.48595982789993286, 0.3941953480243683, -1.1033570766448975, -0.1076668649911880...
func (w *AuthWorker) ID() int { return w.id }
[ 0.11021659523248672, -0.15194837749004364, 0.4622471332550049, 0.5453890562057495, 0.23661895096302032, 1.340564489364624, 0.5068855285644531, 0.2461388111114502, 0.7507473230361938, -0.6506738066673279, -0.7646097540855408, 0.3020780682563782, -1.0730897188186646, 0.8631049990653992, 0....
func (w *AuthWorker) Subscriptions() []*worker.Subscription { return make([]*worker.Subscription, 0) }
[ -0.30200260877609253, 0.13045203685760498, 0.44825974106788635, 0.746560275554657, 0.07631157338619232, 0.08508307486772537, -0.4548053443431854, -0.6665536165237427, 0.7123706936836243, -0.7658248543739319, -0.6282992959022522, 0.867279052734375, -0.1728288233280182, 0.40920963883399963, ...
func extractServiceName(tag string) string { serviceName := strings.Replace(tag, watchedRegistry, "", 1) serviceName = strings.Replace(serviceName, ":", "-", 1) serviceName = strings.Replace(serviceName, "/", "", -1) return serviceName }
[ -0.3925064504146576, -0.6753473877906799, 0.38019075989723206, 0.23502764105796814, -0.5667285323143005, -0.28051263093948364, 0.6195662021636963, -0.0042006149888038635, -0.034883636981248856, 1.0909267663955688, -0.4200315475463867, -0.07825516909360886, 0.05630047246813774, 0.3392442464...
func CheckMerkleProof(proof []*chainhash.Hash, hash, expectedRoot *chainhash.Hash, hashIdx int) bool { treeHeight := uint(len(proof)) for _, h := range proof { var newHash chainhash.Hash if hashIdx&1 == 1 { newHash = chainhash.DoubleHashH(append(h[:], hash[:]...)) } else { newHash = chainhash.DoubleHashH...
[ 0.0338333323597908, -0.062447693198919296, 0.578315794467926, 0.7710839509963989, -0.4908562898635864, -0.5120797753334045, -0.5135063529014587, 0.28132864832878113, 0.4118329584598541, 0.9484365582466125, -0.27644896507263184, 0.8016342520713806, -1.2771637439727783, 0.5851901173591614, ...
func (r ErrorResponse) IsObjectNotFound() bool { return r.Response.StatusCode == 404 }
[ -1.243536114692688, -1.7259306907653809, 0.338929682970047, -0.44988584518432617, 0.30146297812461853, -0.09054853022098541, -0.13983646035194397, 0.022990863770246506, 1.116197109222412, 0.3871188461780548, -0.830878496170044, -0.26600608229637146, 0.11111550778150558, -0.8762248754501343...
func main() { // plain fmt.Println("Just print " + "something") // quote fmt.Println(quote.Hello()) // rand number -- cheat sheet for formatting https://yourbasic.org/golang/fmt-printf-reference-cheat-sheet/#printf rand.Seed(time.Now().Unix()) // seed the generator with current time fmt.Printf("The random numb...
[ 0.16468556225299835, 0.2095356434583664, 0.8243932127952576, -0.15423300862312317, 0.35694050788879395, -0.14351126551628113, 0.3425751328468323, -0.003695047227665782, -0.27887895703315735, -0.15658865869045258, 0.10931171476840973, 0.5723251700401306, -0.29065629839897156, 0.330407559871...
func NewBookBuyOK() *BookBuyOK { return &BookBuyOK{} }
[ 0.00013070553541183472, -0.6439663171768188, 0.3638997972011566, 1.9055325984954834, 0.05253416299819946, -0.7045941352844238, 0.205439031124115, 0.34994444251060486, -1.7171682119369507, 0.014094293117523193, -0.9745201468467712, -0.4748069941997528, 0.4866408109664917, 0.0269964244216680...
func (o *BookBuyOK) WithPayload(payload *models.InlineResponse2003) *BookBuyOK { o.Payload = payload return o }
[ -0.2510779798030853, -0.5380102396011353, 0.18438862264156342, 1.0655016899108887, 0.16949275135993958, -0.16798865795135498, 0.4625394642353058, -0.21655991673469543, -0.4964137375354767, 0.11417006701231003, -0.2348695546388626, -1.0817536115646362, 0.4291934669017792, -0.831880748271942...
func (o *BookBuyOK) SetPayload(payload *models.InlineResponse2003) { o.Payload = payload }
[ -0.46440520882606506, -0.3138112723827362, 0.22739571332931519, 1.0185941457748413, 0.27866116166114807, 0.055859312415122986, 0.38486284017562866, -0.19359190762043, -0.7209685444831848, 0.44268321990966797, -0.5651372075080872, -0.6667428612709045, -0.1458236426115036, -0.307412475347518...
func (o *BookBuyOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) { rw.WriteHeader(200) if o.Payload != nil { payload := o.Payload if err := producer.Produce(rw, payload); err != nil { panic(err) // let the recovery middleware deal with this } } }
[ -0.7840999364852905, -0.4683590829372406, 0.3113933205604553, 1.1157567501068115, 1.186592698097229, -0.503014087677002, 0.41883009672164917, -0.14675311744213104, -0.11112438887357712, 0.47858723998069763, -0.0005494779325090349, -0.9272359013557434, -0.3507106602191925, -0.33126983046531...
func NewBookBuyDefault(code int) *BookBuyDefault { if code <= 0 { code = 500 } return &BookBuyDefault{ _statusCode: code, } }
[ -0.507878839969635, -0.18748632073402405, 0.23046180605888367, 1.5614620447158813, 0.356947124004364, 0.8127780556678772, 0.22358611226081848, 0.8489334583282471, -0.5855647921562195, 0.6712098121643066, -1.1964976787567139, -0.05371744558215141, -1.1617114543914795, 0.8389966487884521, ...
func (o *BookBuyDefault) WithStatusCode(code int) *BookBuyDefault { o._statusCode = code return o }
[ -0.31075307726860046, -0.6551796793937683, -0.01625361479818821, 1.5750083923339844, 0.5650871396064758, 0.13062115013599396, -0.03826840594410896, 1.0027520656585693, 0.035661883652210236, 0.7750858068466187, -0.8380104303359985, -0.43042200803756714, -0.05465959385037422, 0.3839187324047...
func (o *BookBuyDefault) SetStatusCode(code int) { o._statusCode = code }
[ -0.5472742915153503, -0.27521687746047974, 0.09910193830728531, 1.5549343824386597, 0.34787967801094055, 0.5081032514572144, 0.2790796458721161, 1.2891467809677124, -0.5176680088043213, 0.4061138331890106, -0.8009973764419556, -0.21363133192062378, -0.5187590718269348, 0.59723299741745, ...
func (o *BookBuyDefault) WithPayload(payload *models.Error) *BookBuyDefault { o.Payload = payload return o }
[ -0.08843117952346802, 0.1731475591659546, -0.032301049679517746, 1.1058826446533203, 0.8162727355957031, 0.2754913866519928, -0.18809053301811218, -0.0680202916264534, -0.3830276429653168, 0.11421027034521103, -0.32062575221061707, -0.6631962656974792, -0.49308499693870544, 0.2468173652887...
func (o *BookBuyDefault) SetPayload(payload *models.Error) { o.Payload = payload }
[ -0.38920703530311584, 0.34013399481773376, -0.011808936484158039, 1.1475166082382202, 1.1111992597579956, 0.5120677947998047, -0.271675169467926, 0.12169641256332397, -0.7030207514762878, 0.3202807605266571, -0.47381243109703064, -0.2767515182495117, -0.814105212688446, 0.3744197487831116,...
func (o *BookBuyDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer) { rw.WriteHeader(o._statusCode) if o.Payload != nil { payload := o.Payload if err := producer.Produce(rw, payload); err != nil { panic(err) // let the recovery middleware deal with this } } }
[ -0.6718397736549377, -0.03618078678846359, 0.2819509208202362, 1.4086191654205322, 1.6295578479766846, -0.16740857064723969, 0.26674655079841614, 0.23158371448516846, 0.07421030849218369, 0.44204384088516235, -0.17628119885921478, -0.8807848691940308, -0.8096338510513306, -0.36518952250480...
func disconnect(conn net.Conn, name string) { for index, curCon := range clients { if curCon.RemoteAddr() == conn.RemoteAddr() { disMsg := fmt.Sprintf("【%s】has left the room", name) fmt.Println(disMsg) clients = append(clients[:index], clients[index+1:]...) notify(conn, disMsg) } } }
[ 0.3913312256336212, -0.3029208183288574, 0.45372945070266724, -0.5749842524528503, -0.3696480393409729, 0.034384287893772125, -0.3261418044567108, -0.004131418187171221, -0.40658071637153625, 1.3716185092926025, -1.0439058542251587, 0.274670273065567, -0.7869383692741394, 0.554618060588836...
func NewStack() *Stack { return &Stack{Items: list.New()} }
[ 0.11873158067464828, 0.027971211820840836, 0.10384532809257507, 0.8923530578613281, -0.39789167046546936, -0.707236647605896, 0.10462227463722229, -0.2779470682144165, 0.12262662500143051, -0.13922818005084991, -1.2050703763961792, 0.30602967739105225, 0.14558301866054535, -0.3210982382297...
func (q *Stack) Push(val interface{}) { q.Items.Append(val) }
[ -0.5277870297431946, 1.1464228630065918, 0.1217084601521492, 0.4941709041595459, -0.3393265902996063, 0.5925019383430481, -0.789836585521698, -1.1144477128982544, -0.15906091034412384, 0.4069366455078125, -0.7155116200447083, 0.2479807734489441, 0.20270538330078125, 1.373171091079712, -0...
func (q *Stack) Pop() interface{} { return q.Items.Pop().Value }
[ -0.6158548593521118, 0.818584680557251, 0.35313963890075684, 0.31255602836608887, -0.8564919829368591, 0.011971058323979378, -0.3807167708873749, -1.0104767084121704, -0.5871989130973816, 0.6886753439903259, -0.7556288242340088, -0.7180683612823486, -0.03444024175405502, -0.006374010816216...
func (q *Stack) IsEmpty() bool { if q.Size() > 0 { return false } return true }
[ -0.9773944616317749, 0.7208824157714844, 0.3963410556316376, 0.4258701801300049, 0.9247109293937683, 0.07488444447517395, -0.7756195068359375, -0.599782407283783, -0.29236704111099243, 0.4408818483352661, -1.023776888847351, 0.32061102986335754, -0.6047800779342651, 0.35859307646751404, ...
func (q *Stack) Size() int { return q.Items.Size() }
[ -0.49065083265304565, 1.1341074705123901, 0.2271033674478531, -0.29359692335128784, 0.006723541766405106, -0.15557697415351868, 0.3875610828399658, -0.5419410467147827, -0.31920477747917175, -0.08973120898008347, -1.1831920146942139, -0.056573450565338135, -0.4964470863342285, 0.7094041705...
func (d *Directory) Mangle(callback MangleFunc) (*Mangler, error) { m := &Mangler{ outz: new(Directory), patch: binpatch.New(), indir: d.DirLoc, insize: d.Size, } for _, f := range d.File { mf := &MangleFile{File: *f, m: m} if err := callback(mf); err != nil { return nil, err } if mf.deleted {...
[ -0.49965018033981323, 0.5781564116477966, 0.7482566833496094, -0.18266968429088593, -0.2867025136947632, -0.5972078442573547, 0.6148076057434082, 0.5188608169555664, 0.6908888220787048, -0.6848313212394714, 0.28817179799079895, -0.636900007724762, -0.1872631460428238, 1.0948363542556763, ...
func (m *Mangler) NewFile(name string, contents []byte) error { deflate := len(contents) != 0 _, err := m.outz.NewFile(name, nil, contents, &m.newcontents, time.Now(), deflate, true) return err }
[ 0.4292953610420227, -0.18293221294879913, 0.28247520327568054, 0.8790949583053589, -0.5781623125076294, -0.44727659225463867, 0.02516353502869606, -0.08595547080039978, -0.7793663144111633, -0.8270062208175659, 0.0387178435921669, -0.9330072999000549, -0.37929999828338623, 1.10203194618225...
func (m *Mangler) MakePatch(forceZip64 bool) (*binpatch.PatchSet, error) { w := &m.newcontents if err := m.outz.WriteDirectory(w, w, forceZip64); err != nil { return nil, err } m.patch.Add(m.indir, m.insize-m.indir, m.newcontents.Bytes()) return m.patch, nil }
[ -0.47859978675842285, 0.04997638612985611, 0.41471946239471436, -0.220793217420578, -0.9108482599258423, 0.07819752395153046, 0.8418833613395691, 0.23244884610176086, 0.17104651033878326, -0.9733411073684692, 0.27800729870796204, -0.28558865189552307, -1.0249048471450806, -0.13099567592144...
func (f *MangleFile) Delete() { f.deleted = true }
[ 1.5416587591171265, -0.07803342491388321, 0.21544989943504333, 0.166641503572464, 1.0392299890518188, 0.710135817527771, 0.06777243316173553, 1.6867605447769165, -0.6573843359947205, -1.129599928855896, -0.4231600761413574, -0.4346550703048706, -0.6404567360877991, 0.8146516680717468, -0...
func Init(options Options) { var ( logLevel logrus.Level err error noExitFunc = func(code int) { return } ) o = options if o.LogRotateSize == 0 { o.LogRotateSize = defaultLogRotateSize } if o.stderr == nil { o.stderr = os.Stderr } if o.LogLevel == "" { o.LogLevel = defaultLogLevel } swi...
[ 0.2778334319591522, -0.3100431263446808, 0.9903439879417419, -0.6871107816696167, -0.6332725882530212, 0.1891220510005951, -0.2273511290550232, 0.04017344489693642, -0.11659685522317886, -0.3349742889404297, 0.07386699318885803, 0.9167964458465576, -0.33183562755584717, 0.8285861611366272,...
func (v *MultiLogger) Self() Logger { if v.self != nil { return v.self } return v }
[ -0.25519508123397827, -1.1254448890686035, 0.45155251026153564, 0.3536567986011505, -0.5877704620361328, -0.3736949563026428, 0.72037672996521, 0.36706942319869995, 0.7690797448158264, -0.2877997159957886, -0.25878146290779114, 0.6407792568206787, -0.8818268179893494, 1.5159542560577393, ...
func (v *MultiLogger) Logf(level logrus.Level, format string, args ...interface{}) { if v.StdLogger != nil { v.StdLogger.Logf(level, format, args...) } if v.FileLogger != nil { v.FileLogger.Logf(level, format, args...) } }
[ 0.25535961985588074, -0.42681121826171875, 0.6152725219726562, 0.4264116883277893, 0.6342567205429077, -0.2799277901649475, -0.44109058380126953, 0.9065221548080444, -0.6574084758758545, -0.5196225643157959, -0.4390239417552948, 0.5494139790534973, -0.07012420147657394, 2.335385799407959, ...
func (v *MultiLogger) Tracef(format string, args ...interface{}) { v.Self().Logf(logrus.TraceLevel, format, args...) }
[ 0.23501098155975342, -0.24670439958572388, 0.463931143283844, 0.023455241695046425, 0.6788030862808228, -0.11130847781896591, 0.23007842898368835, 0.20986679196357727, -0.07975073903799057, -0.44635263085365295, -1.026659369468689, 0.36669641733169556, 0.06237160041928291, 1.03190135955810...
func (v *MultiLogger) Debugf(format string, args ...interface{}) { v.Self().Logf(logrus.DebugLevel, format, args...) }
[ -0.28363972902297974, 0.14087873697280884, 0.5646621584892273, 0.08792883157730103, 0.21289639174938202, -0.3817457854747772, -0.694598913192749, 0.45250582695007324, -0.7543365359306335, -0.835891604423523, -0.7003942728042603, 0.4916194975376129, -0.010061117820441723, 1.5347542762756348...
func (v *MultiLogger) Infof(format string, args ...interface{}) { v.Self().Logf(logrus.InfoLevel, format, args...) }
[ 0.1262180060148239, -0.8110786080360413, 0.5612645745277405, 0.2678060531616211, 0.7434096336364746, 0.06836653500795364, -0.11965224146842957, 0.38887205719947815, -0.6112786531448364, -0.5163419842720032, -0.33451467752456665, 0.943358302116394, 0.3349364101886749, 1.207141637802124, -...
func (v *MultiLogger) Warnf(format string, args ...interface{}) { v.Self().Logf(logrus.WarnLevel, format, args...) }
[ -0.09510698169469833, -0.3394758403301239, 0.4563118517398834, 0.13857252895832062, 0.25499850511550903, -0.4168763756752014, -0.12177988141775131, 0.3464334011077881, -0.5995775461196899, -0.24344739317893982, -0.3707105815410614, 1.2591384649276733, 0.37287360429763794, 1.025548577308654...
func (v *MultiLogger) Warningf(format string, args ...interface{}) { v.Warnf(format, args...) }
[ 0.3313789367675781, -0.17894665896892548, 0.5677472949028015, 0.8197615742683411, -0.061268966645002365, -0.11066307127475739, -0.19166262447834015, 0.17646166682243347, -0.44862648844718933, 0.28984445333480835, -0.17249472439289093, 0.33768391609191895, 0.28739193081855774, 1.19306981563...
func (v *MultiLogger) Fatalf(format string, args ...interface{}) { v.Self().Logf(logrus.FatalLevel, format, args...) callExitFunc(1) }
[ 0.2321290373802185, -0.4409067928791046, 0.5967680811882019, 0.8620537519454956, 0.16951608657836914, 0.3009672462940216, 0.0022196953650563955, 0.4632149636745453, 0.019878992810845375, -0.1170603483915329, -0.24448977410793304, 0.5474086403846741, 0.02089821919798851, 1.148281455039978, ...
func (v *MultiLogger) Panicf(format string, args ...interface{}) { // Using logrus.PanicLevel, will run panic and quit directly v.Self().Logf(logrus.PanicLevel, format, args...) }
[ 0.04656253382563591, -0.7982447743415833, 0.42646345496177673, 0.536986768245697, -0.009821576066315174, 0.38555482029914856, 0.25743207335472107, 0.13498243689537048, -0.2495213747024536, -0.48727336525917053, -0.30908331274986267, 0.30025514960289, 0.034330762922763824, 1.055902004241943...
func (v *MultiLogger) Log(level logrus.Level, args ...interface{}) { if v.StdLogger != nil { v.StdLogger.Log(level, args...) } if v.FileLogger != nil { v.FileLogger.Log(level, args...) } }
[ -0.24834033846855164, 0.3878677785396576, 0.5285733342170715, 0.562555730342865, 0.2923617660999298, -0.23307065665721893, -0.22971989214420319, 0.8092690110206604, -0.5513778328895569, -0.2194315493106842, -0.5600124597549438, 0.3084406852722168, -0.1297684609889984, 2.108325719833374, ...
func (v *MultiLogger) Trace(args ...interface{}) { v.Self().Log(logrus.TraceLevel, args...) }
[ 0.07423300296068192, -0.10857053846120834, 0.557948887348175, 0.4271455407142639, 0.5997037887573242, -0.23566491901874542, -0.15605378150939941, -0.44113075733184814, 0.25215578079223633, 0.06705193966627121, -0.9907640218734741, 0.38317543268203735, -0.5920408964157104, 0.900206804275512...
func (v *MultiLogger) Debug(args ...interface{}) { v.Self().Log(logrus.DebugLevel, args...) }
[ -0.16696195304393768, -0.15356968343257904, 0.591772735118866, 0.39670825004577637, 0.38173630833625793, 0.395685613155365, -0.38275855779647827, 0.6537145376205444, -0.05798932537436485, -0.28127172589302063, -0.4783059060573578, 0.6455625295639038, -0.10660963505506516, 1.381740808486938...
func (v *MultiLogger) Info(args ...interface{}) { v.Self().Log(logrus.InfoLevel, args...) }
[ -0.15102578699588776, -0.503997266292572, 0.604296863079071, 0.6457066535949707, 0.52391117811203, -0.08898389339447021, -0.2791787385940552, -0.15128092467784882, -0.9645299911499023, 0.1646059900522232, -0.9128206968307495, 0.6939683556556702, 0.2445226013660431, 1.4316461086273193, -0...
func (v *MultiLogger) Warn(args ...interface{}) { v.Self().Log(logrus.WarnLevel, args...) }
[ -0.5533548593521118, -0.06079965457320213, 0.5607722997665405, 0.10703425109386444, 0.062024131417274475, -0.4141514301300049, -0.5563297867774963, -0.022350851446390152, -0.39994722604751587, -0.2712930142879486, -0.884811282157898, 1.3058465719223022, 0.4407839775085449, 0.85693961381912...
func (v *MultiLogger) Warning(args ...interface{}) { v.Warn(args...) }
[ -0.06255901604890823, -0.032579898834228516, 0.6308063864707947, 0.7552016973495483, 0.031060056760907173, -0.2523704767227173, -0.857612133026123, -0.23299139738082886, 0.16430263221263885, 0.787553071975708, -0.5425944924354553, 0.5039874911308289, 0.20107319951057434, 1.085237979888916,...
func (v *MultiLogger) Fatal(args ...interface{}) { v.Self().Log(logrus.FatalLevel, args...) callExitFunc(1) }
[ -0.08708898723125458, -0.3685563802719116, 0.5651185512542725, 1.1023699045181274, 0.17021934688091278, 0.47304797172546387, -0.19159452617168427, 0.335287481546402, -0.2028881460428238, 0.05663047730922699, -0.40952444076538086, 0.8384784460067749, -0.0339646115899086, 0.9470916986465454,...
func (v *MultiLogger) Panic(args ...interface{}) { // Using logrus.PanicLevel, will run panic and quit directly v.Self().Log(logrus.PanicLevel, args...) }
[ -0.33783644437789917, -0.6379009485244751, 0.48488932847976685, 0.6958863139152527, -0.23199735581874847, 0.8509124517440796, 0.16859202086925507, -0.03748982399702072, 0.08107243478298187, 0.035801514983177185, -0.19105012714862823, 0.5615649223327637, -0.08151578158140182, 0.872359097003...
func (v *MultiLogger) Logln(level logrus.Level, args ...interface{}) { if v.StdLogger != nil { v.StdLogger.Logln(level, args...) } if v.FileLogger != nil { v.FileLogger.Logln(level, args...) } }
[ -0.25038349628448486, -0.217934712767601, 0.6508563160896301, 0.6640294790267944, -0.02008584327995777, -0.3552030622959137, -0.7265841364860535, 1.060865044593811, -0.45518502593040466, -0.3692479133605957, -0.9427290558815002, 0.3486391305923462, 0.10753477364778519, 2.0772035121917725, ...
func (v *MultiLogger) Traceln(args ...interface{}) { v.Self().Logln(logrus.TraceLevel, args...) }
[ -0.07704019546508789, -0.15645518898963928, 0.505674421787262, 0.5961981415748596, 0.1148543581366539, -0.18221668899059296, -0.04356643930077553, 0.42560818791389465, 0.6478680968284607, -0.42787668108940125, -1.918559193611145, 0.29133886098861694, 0.1451244205236435, 0.6762723326683044,...
func (v *MultiLogger) Debugln(args ...interface{}) { v.Self().Logln(logrus.DebugLevel, args...) }
[ -0.2606830298900604, -0.30540022253990173, 0.44078439474105835, 0.5963572263717651, -0.14795617759227753, -0.3299129009246826, -0.8040041327476501, 0.5095549821853638, 0.22011485695838928, -0.8342849612236023, -1.6576964855194092, 0.44035932421684265, 0.4841873049736023, 1.353219747543335,...
func (v *MultiLogger) Infoln(args ...interface{}) { v.Self().Logln(logrus.InfoLevel, args...) }
[ -0.25287818908691406, -0.45270684361457825, 0.6181829571723938, 1.0140634775161743, 0.13583117723464966, 0.12393254786729813, -0.2797473967075348, 0.42440128326416016, 0.02320277690887451, -0.4607076048851013, -1.096777081489563, 0.7101901173591614, 0.32342594861984253, 1.0014175176620483,...
func (v *MultiLogger) Warnln(args ...interface{}) { v.Self().Logln(logrus.WarnLevel, args...) }
[ -0.6209443807601929, 0.00796821154654026, 0.552875280380249, 0.7508151531219482, -0.26594942808151245, -0.40360957384109497, -0.49790310859680176, 0.36096733808517456, -0.011086652055382729, -0.4772760272026062, -1.2321666479110718, 1.1996814012527466, 0.5378652215003967, 0.558941125869751...
func (v *MultiLogger) Warningln(args ...interface{}) { v.Warnln(args...) }
[ -0.23922477662563324, 0.12842608988285065, 0.7135733366012573, 1.2263728380203247, -0.4302200675010681, -0.16229385137557983, -0.6253533959388733, 0.0011037061922252178, 0.10888440907001495, -0.1858440637588501, -0.9836423397064209, 0.09074480086565018, 0.3507843017578125, 0.82978516817092...
func (v *MultiLogger) Fatalln(args ...interface{}) { v.Self().Logln(logrus.FatalLevel, args...) callExitFunc(1) }
[ -0.305105984210968, -0.08903554081916809, 0.6010408401489258, 1.5167553424835205, -0.25891706347465515, 0.08116432279348373, -0.21834586560726166, 0.6348685026168823, 0.46438971161842346, -0.49150726199150085, -0.9660696387290955, 0.5143144726753235, 0.34075939655303955, 0.8778752088546753...
func (v *MultiLogger) Panicln(args ...interface{}) { // Using logrus.PanicLevel, will run panic and quit directly v.Self().Logln(logrus.PanicLevel, args...) }
[ -0.368843674659729, -0.6901543140411377, 0.5007596611976624, 0.8819292187690735, -0.6840026378631592, 0.43425530195236206, -0.15215063095092773, 0.3008655905723572, 0.4169088900089264, -0.589018702507019, -1.046295404434204, 0.18541759252548218, 0.24780742824077606, 0.844706118106842, 0....
func Logf(level logrus.Level, format string, args ...interface{}) { if mLogger.StdLogger != nil { mLogger.StdLogger.Logf(level, format, args...) } if mLogger.FileLogger != nil { mLogger.FileLogger.Logf(level, format, args...) } }
[ 0.4268679916858673, -0.32297220826148987, 0.6176406741142273, 0.3003794252872467, 0.4726349115371704, -0.04174153134226799, -0.3930269777774811, 0.7824857831001282, -0.7606340646743774, -0.8941003680229187, -0.3651682138442993, 0.96714848279953, 0.23026758432388306, 2.2197623252868652, 0...
func Tracef(format string, args ...interface{}) { Logf(logrus.TraceLevel, format, args...) }
[ 0.6595023274421692, -0.02473369613289833, 0.4306364357471466, 0.025388119742274284, 0.8667749166488647, 0.1545308232307434, 0.3124973773956299, -0.040545832365751266, -0.5138853788375854, -0.737859845161438, -0.6708674430847168, 0.6493167877197266, 0.44597968459129333, 0.33678513765335083,...