text
stringlengths
11
6.3k
embedding
listlengths
768
768
func (s *Transaction) SetTransactionHash(v string) *Transaction { s.TransactionHash = &v return s }
[ 1.223813533782959, 1.1993002891540527, -0.2334836721420288, 0.17806921899318695, 0.16410021483898163, 0.054598480463027954, 0.21754902601242065, 0.2791321873664856, -0.45312607288360596, 0.7508031725883484, -0.36134833097457886, -0.7112922668457031, -0.37688329815864563, -0.117886543273925...
func (s *Transaction) SetTransactionId(v string) *Transaction { s.TransactionId = &v return s }
[ 0.9029863476753235, 1.0434149503707886, 0.016953056678175926, 0.576876163482666, 0.09141083806753159, 0.848226010799408, 0.6503488421440125, 0.7786325216293335, 0.4225914776325226, 1.1662606000900269, -0.435255765914917, -0.7610320448875427, 0.1789984107017517, 0.5512192845344543, -0.030...
func (s *Transaction) SetTransactionIndex(v int64) *Transaction { s.TransactionIndex = &v return s }
[ -0.09880660474300385, 1.0645102262496948, 0.030567506328225136, -0.18261712789535522, -0.1435105949640274, -0.018063273280858994, 0.41543978452682495, 0.329903244972229, -0.02885655127465725, 0.5883384943008423, -1.2454016208648682, -0.5115154981613159, -0.060006529092788696, 0.06566517800...
func (s *Transaction) SetTransactionTimestamp(v time.Time) *Transaction { s.TransactionTimestamp = &v return s }
[ 0.4295779764652252, 1.0094051361083984, -0.38563692569732666, 0.35029780864715576, 0.41920173168182373, -0.2250782698392868, 0.4257122278213501, -0.21473915874958038, 0.222099170088768, 0.203730970621109, -1.119827151298523, -1.3733001947402954, -0.28607645630836487, 0.00685510691255331, ...
func (s TransactionEvent) String() string { return awsutil.Prettify(s) }
[ 1.351506233215332, -0.34674960374832153, 0.19756974279880524, -1.0129249095916748, -0.835074245929718, 0.39315396547317505, -0.003914537373930216, -0.6856610774993896, 0.07534774392843246, 0.4544810652732849, 0.028973735868930817, 0.5587071776390076, 0.8657206296920776, -0.3836379647254944...
func (s TransactionEvent) GoString() string { return s.String() }
[ 0.4209851622581482, 0.35529839992523193, 0.3454425632953644, -0.6981978416442871, -0.08258845657110214, 0.31889641284942627, 0.14779701828956604, -0.5179949402809143, -0.3872823715209961, 0.7825480699539185, -0.24840593338012695, -0.08469988405704498, -0.06147659569978714, -0.5818031430244...
func (s *TransactionEvent) SetContractAddress(v string) *TransactionEvent { s.ContractAddress = &v return s }
[ 0.7000555396080017, 0.363406240940094, 0.3075658082962036, 0.3499690592288971, 0.8248274326324463, 0.35454925894737244, 0.90010005235672, 1.2491520643234253, 0.5896232724189758, 0.01985185407102108, -0.8423113822937012, -0.05656787380576134, -0.38123223185539246, 0.270346462726593, 0.185...
func (s *TransactionEvent) SetEventType(v string) *TransactionEvent { s.EventType = &v return s }
[ 1.0050045251846313, 1.357841968536377, -0.26594656705856323, 0.340568870306015, 0.8517348170280457, -0.23286911845207214, 0.4597058892250061, 0.7140955328941345, -0.15338556468486786, 0.715503454208374, -0.3370320200920105, -0.7503089904785156, -0.333534836769104, 0.7389811277389526, 0.4...
func (s *TransactionEvent) SetFrom(v string) *TransactionEvent { s.From = &v return s }
[ 1.2842718362808228, 1.2687393426895142, -0.2664177715778351, 0.7781369686126709, -0.14669956266880035, 0.713678777217865, 0.4787302017211914, 0.6669132709503174, -0.3147284984588623, -0.5203527808189392, -0.21685229241847992, 0.17072801291942596, 0.5746980905532837, -0.4065336585044861, ...
func (s *TransactionEvent) SetNetwork(v string) *TransactionEvent { s.Network = &v return s }
[ -0.06839870661497116, 1.2409923076629639, -0.15868394076824188, 1.2668218612670898, 0.9219478964805603, 0.15365061163902283, -0.01732383854687214, 0.6740115284919739, -0.28472432494163513, -0.5953090190887451, -1.0764325857162476, -1.1952391862869263, -0.19288143515586853, 0.05950589478015...
func (s *TransactionEvent) SetTo(v string) *TransactionEvent { s.To = &v return s }
[ 0.7158863544464111, 1.3337101936340332, -0.19407466053962708, -0.4508363902568817, 0.462136834859848, 0.08155253529548645, 0.468648225069046, 0.754011332988739, -0.9550296664237976, -0.42169052362442017, -0.9131011962890625, 0.34367215633392334, 0.38939183950424194, -0.6412760615348816, ...
func (s *TransactionEvent) SetTokenId(v string) *TransactionEvent { s.TokenId = &v return s }
[ 0.7380013465881348, 0.7297369241714478, 0.097389355301857, 0.8577090501785278, 0.3079967200756073, 0.9330224394798279, 0.09991498291492462, 0.5127617120742798, 0.2796512246131897, 0.2779330611228943, -0.8799455165863037, 0.20197871327400208, 0.4007352590560913, 0.7735103368759155, 0.5523...
func (s *TransactionEvent) SetTransactionHash(v string) *TransactionEvent { s.TransactionHash = &v return s }
[ 1.240235686302185, 1.2007862329483032, -0.21938492357730865, 0.21691057085990906, 0.27226629853248596, -0.024490708485245705, 0.37344273924827576, 0.24642425775527954, -0.41557005047798157, 0.7425383925437927, -0.42816218733787537, -0.5133748650550842, -0.3314104378223419, -0.0550232976675...
func (s *TransactionEvent) SetTransactionId(v string) *TransactionEvent { s.TransactionId = &v return s }
[ 1.0117100477218628, 0.8122054934501648, 0.006237644702196121, 0.5654404759407043, 0.08691038936376572, 0.7636878490447998, 0.7751094698905945, 0.8205437064170837, 0.5022915005683899, 1.0984548330307007, -0.47470882534980774, -0.40417277812957764, 0.18317371606826782, 0.7287002801895142, ...
func (s *TransactionEvent) SetValue(v string) *TransactionEvent { s.Value = &v return s }
[ 1.2407587766647339, 1.5689560174942017, -0.11269194632768631, 0.7378221154212952, 0.5362982749938965, 0.2338217794895172, 0.20885980129241943, 0.6110121011734009, -0.04335259273648262, 0.419284850358963, -0.06188029795885086, -0.4303560256958008, 0.01321027334779501, -0.04768112674355507, ...
func (s *TransactionEvent) SetVoutIndex(v int64) *TransactionEvent { s.VoutIndex = &v return s }
[ -0.2236529141664505, 0.46825292706489563, -0.08269796520471573, 0.1865331083536148, 0.35453471541404724, 0.07820117473602295, 0.19225646555423737, 0.4124247133731842, -0.6827486157417297, -0.12266694009304047, -0.9025211334228516, -0.43241581320762634, 0.0064053405076265335, -0.49430763721...
func (s TransactionOutputItem) String() string { return awsutil.Prettify(s) }
[ 0.6857760548591614, -0.05164230242371559, 0.08493407815694809, -0.501785933971405, -1.346798062324524, 0.024179765954613686, 0.494471937417984, -1.0327470302581787, -0.5674874782562256, 0.3095587193965912, 0.36356356739997864, -0.23427613079547882, 0.6296643018722534, -1.0851877927780151, ...
func (s TransactionOutputItem) GoString() string { return s.String() }
[ 0.03769396245479584, 0.2820185720920563, 0.20337224006652832, -0.19736461341381073, -0.6546201705932617, -0.022525876760482788, 0.6255284547805786, -0.8913551568984985, -0.7415462732315063, 0.578514814376831, -0.09243382513523102, -0.7052933573722839, -0.26436376571655273, -1.3769989013671...
func (s *TransactionOutputItem) SetNetwork(v string) *TransactionOutputItem { s.Network = &v return s }
[ -0.4262462854385376, 1.134609341621399, -0.24651527404785156, 1.5274810791015625, 0.4070175290107727, -0.22826126217842102, -0.1600850373506546, 0.4519582688808441, -0.7342164516448975, -0.635508120059967, -1.1764354705810547, -1.6914373636245728, -0.41282039880752563, -0.46544212102890015...
func (s *TransactionOutputItem) SetTransactionHash(v string) *TransactionOutputItem { s.TransactionHash = &v return s }
[ 1.1124403476715088, 0.9840672612190247, -0.319019615650177, 0.20682446658611298, -0.032579001039266586, -0.2743571698665619, 0.2956159710884094, 0.020134057849645615, -0.6724366545677185, 0.7236672639846802, -0.2376699000597, -0.7413716912269592, -0.4463442265987396, -0.36322736740112305, ...
func (s *TransactionOutputItem) SetTransactionTimestamp(v time.Time) *TransactionOutputItem { s.TransactionTimestamp = &v return s }
[ 0.3604799211025238, 0.7497234344482422, -0.40517011284828186, 0.33792558312416077, 0.06574396044015884, -0.3918932378292084, 0.5117999315261841, -0.37277132272720337, -0.14406156539916992, 0.20993688702583313, -0.7998677492141724, -1.3904215097427368, -0.30893972516059875, -0.1470589488744...
func (s ValidationException) String() string { return awsutil.Prettify(s) }
[ 0.49348753690719604, -0.6543629169464111, 0.08177431672811508, 0.18329815566539764, -0.8528913855552673, 0.709175705909729, -0.09423835575580597, -0.40863314270973206, 0.17987993359565735, -0.00926851574331522, 0.31030532717704773, 0.4274677634239197, 0.4507715702056885, -0.428892970085144...
func (s ValidationException) GoString() string { return s.String() }
[ -0.0002208758523920551, 0.23637323081493378, 0.16625648736953735, 0.25003260374069214, 0.12515835464000702, 0.6262389421463013, -0.10153397917747498, -0.3039855659008026, -0.1124880462884903, 0.45804744958877563, 0.3150891363620758, -0.08566787838935852, -0.4384917616844177, -0.73431068658...
func (s *ValidationException) Code() string { return "ValidationException" }
[ 0.08579988777637482, -0.8488460183143616, 0.12202894687652588, 1.12330961227417, -0.3196103274822235, 0.9048693776130676, -0.5909007787704468, 0.8922812938690186, 0.6359086632728577, -0.07539438456296921, 0.42875826358795166, -0.10594271868467331, 0.7409083843231201, 0.19721953570842743, ...
func (s *ValidationException) Message() string { if s.Message_ != nil { return *s.Message_ } return "" }
[ -0.40614449977874756, 0.5912017822265625, 0.21922087669372559, 0.937436580657959, 0.15798109769821167, -0.08090770989656448, -0.5426604151725769, -0.3930865228176117, 0.3038983643054962, -0.045283615589141846, 0.7946142554283142, -0.5773903727531433, -0.19064676761627197, 0.781276166439056...
func (s *ValidationException) StatusCode() int { return s.RespMetadata.StatusCode }
[ 0.8124332427978516, -0.5909376740455627, 0.24720439314842224, 0.681911289691925, -0.29589200019836426, 0.3425123393535614, 0.0615675188601017, 0.882399320602417, 0.13866804540157318, -0.16399943828582764, 0.8036174178123474, -0.28081774711608887, -0.10703924298286438, -0.982870876789093, ...
func (s *ValidationException) RequestID() string { return s.RespMetadata.RequestID }
[ 0.5054331421852112, -0.8400592803955078, 0.13093644380569458, 0.6650484800338745, -0.31818079948425293, 0.8729801177978516, -0.38991525769233704, 0.0550893135368824, 1.1092026233673096, -0.3672359585762024, 0.9928321838378906, 0.3241250813007355, 0.09748027473688126, -0.02546541392803192, ...
func (s ValidationExceptionField) String() string { return awsutil.Prettify(s) }
[ 0.6932281851768494, -0.367417573928833, 0.01401694118976593, -0.12320686131715775, -0.5604268312454224, 0.8262684941291809, 0.11636601388454437, -0.19697299599647522, -0.2172679752111435, 0.08002390712499619, 0.028699079528450966, 0.07182008028030396, -0.10721994191408157, -0.6831213235855...
func (s ValidationExceptionField) GoString() string { return s.String() }
[ 0.24021507799625397, 0.45739370584487915, 0.14231251180171967, 0.06806199252605438, 0.3536020517349243, 0.8241773247718811, 0.09644386172294617, -0.11738651245832443, -0.522553026676178, 0.4454970359802246, 0.049748048186302185, -0.26820921897888184, -0.7906769514083862, -0.752796828746795...
func (s *ValidationExceptionField) SetMessage(v string) *ValidationExceptionField { s.Message = &v return s }
[ 0.003114466555416584, 1.5361740589141846, -0.05653521791100502, 1.2766693830490112, 0.7081190347671509, 0.5167424082756042, -0.08799134194850922, 0.7598333358764648, -0.1067318245768547, -0.5770053267478943, 0.21087872982025146, -0.7102918028831482, -0.8005082011222839, 0.38946235179901123...
func (s *ValidationExceptionField) SetName(v string) *ValidationExceptionField { s.Name = &v return s }
[ 0.23910103738307953, 1.1611928939819336, -0.05581493675708771, 0.9598193764686584, -0.1290324181318283, 0.2831045389175415, 0.0003608157567214221, 0.925437331199646, -0.32731330394744873, 0.3705548048019409, -1.017227053642273, -1.3385292291641235, -0.5800060629844666, -0.19070228934288025...
func ListTransactionsSortBy_Values() []string { return []string{ ListTransactionsSortByTransactionTimestamp, } }
[ 0.3481009602546692, -0.07337824255228043, 0.48343443870544434, -0.10684656351804733, -0.014748291112482548, -0.5595450401306152, -0.49156466126441956, -1.0401536226272583, 0.09306572377681732, 0.36684805154800415, -0.47057878971099854, -0.4276764392852783, 0.3869487941265106, 0.27581208944...
func QueryNetwork_Values() []string { return []string{ QueryNetworkEthereumMainnet, QueryNetworkBitcoinMainnet, } }
[ -0.08678434789180756, 0.2130567729473114, 0.25066912174224854, -0.031633272767066956, 0.4782526195049286, 0.7077319622039795, -1.1030791997909546, -1.1093034744262695, 0.12057819217443466, -0.42060476541519165, -0.31839120388031006, -0.6511929035186768, -0.3693353831768036, 0.5103002190589...
func QueryTransactionEventType_Values() []string { return []string{ QueryTransactionEventTypeErc20Transfer, QueryTransactionEventTypeErc20Mint, QueryTransactionEventTypeErc20Burn, QueryTransactionEventTypeErc20Deposit, QueryTransactionEventTypeErc20Withdrawal, QueryTransactionEventTypeErc721Transfer, Que...
[ 0.5576698780059814, -0.09111597388982773, 0.8035486340522766, -1.0998783111572266, 0.3756785988807678, 0.2158721536397934, -0.18631798028945923, -0.7542773485183716, 0.015595034696161747, 0.25586527585983276, -0.5302404165267944, -0.5007233023643494, -0.1846105456352234, 0.2426629662513733...
func QueryTransactionStatus_Values() []string { return []string{ QueryTransactionStatusFinal, QueryTransactionStatusFailed, } }
[ 0.1369439661502838, -0.017529455944895744, 0.1004403606057167, -1.0066113471984863, -0.001505044405348599, 0.5123223662376404, -1.5377451181411743, 0.005931442603468895, -0.3521644175052643, 0.36043843626976013, -0.7026968002319336, -0.1844707429409027, 0.8166734576225281, -0.5919620990753...
func ResourceType_Values() []string { return []string{ ResourceTypeCollection, } }
[ -0.34825167059898376, 0.37426912784576416, 0.25674426555633545, -0.47513407468795776, 0.5745638608932495, 0.2785454988479614, -1.1672443151474, -0.37880533933639526, -0.3999581038951874, 0.19875016808509827, -0.262596070766449, -0.9566822052001953, 0.30610939860343933, 1.3907760381698608, ...
func SortOrder_Values() []string { return []string{ SortOrderAscending, SortOrderDescending, } }
[ 0.11582475900650024, -0.2448074221611023, 0.4672887325286865, 0.5894701480865479, -0.11381088197231293, 0.08192796260118484, -1.667075276374817, -0.04428660497069359, -0.570517361164093, -0.14735302329063416, -0.5018744468688965, 0.03334343805909157, 0.8787024617195129, 1.6059786081314087,...
func ValidationExceptionReason_Values() []string { return []string{ ValidationExceptionReasonUnknownOperation, ValidationExceptionReasonCannotParse, ValidationExceptionReasonFieldValidationFailed, ValidationExceptionReasonOther, } }
[ 0.3516480326652527, -0.7317467927932739, 0.3615976572036743, 0.29322946071624756, -0.21301382780075073, 0.2824641764163971, -1.4224853515625, -0.11960143595933914, 1.0325462818145752, -0.33312198519706726, -0.007946668192744255, -0.6187106370925903, -0.1775803118944168, 0.5278609991073608,...
func ConfigureWithPublicSSH(role *vm.Role) error { if role == nil { return fmt.Errorf(errParamNotSpecified, "role") } return ConfigureWithExternalPort(role, "SSH", 22, 22, vm.InputEndpointProtocolTCP) }
[ 0.6167921423912048, 0.6408447027206421, 0.581034243106842, -0.12047582864761353, -0.32688504457473755, 0.6155315041542053, -0.3367268741130829, -0.8824537396430969, -0.5073686242103577, 0.13840654492378235, -0.6595089435577393, 0.29561132192611694, 0.5740271806716919, 1.0990744829177856, ...
func ConfigureWithPublicRDP(role *vm.Role) error { if role == nil { return fmt.Errorf(errParamNotSpecified, "role") } return ConfigureWithExternalPort(role, "RDP", 3389, 3389, vm.InputEndpointProtocolTCP) }
[ -0.03024894930422306, 0.582822322845459, 0.6641478538513184, -0.19533106684684753, -0.099543996155262, 0.8704785704612732, -0.05458715558052063, -0.9012367129325867, -0.04521837830543518, 1.1170868873596191, -0.2340226024389267, -0.13046635687351227, -0.6108921766281128, 0.6617244482040405...
func ConfigureWithPublicPowerShell(role *vm.Role) error { if role == nil { return fmt.Errorf(errParamNotSpecified, "role") } return ConfigureWithExternalPort(role, "PowerShell", 5986, 5986, vm.InputEndpointProtocolTCP) }
[ 0.694613516330719, -0.0743444561958313, 0.4939418435096741, 0.2763271927833557, -0.19121941924095154, 0.7326549291610718, -0.142173171043396, -0.8197882771492004, -0.8350664973258972, 0.1958165168762207, -0.12373661994934082, -0.05877391993999481, 0.026051755994558334, 1.3333245515823364, ...
func ConfigureWithExternalPort(role *vm.Role, name string, localport, externalport int, protocol vm.InputEndpointProtocol) error { if role == nil { return fmt.Errorf(errParamNotSpecified, "role") } role.ConfigurationSets = updateOrAddConfig(role.ConfigurationSets, vm.ConfigurationSetTypeNetwork, func(config *vm...
[ -0.3015066981315613, -0.11130593717098236, 0.8031614422798157, -0.41980382800102234, -0.20462152361869812, 0.5095431208610535, 0.07297700643539429, -0.23211871087551117, -0.11773866415023804, 0.7813852429389954, -0.6067834496498108, -0.22957900166511536, -0.22983071208000183, 0.24289003014...
func ConfigureWithSecurityGroup(role *vm.Role, networkSecurityGroup string) error { if role == nil { return fmt.Errorf(errParamNotSpecified, "role") } role.ConfigurationSets = updateOrAddConfig(role.ConfigurationSets, vm.ConfigurationSetTypeNetwork, func(config *vm.ConfigurationSet) { config.NetworkSecurityG...
[ 0.2414034605026245, 0.33357375860214233, 0.41771697998046875, 0.3552129566669464, 0.39984607696533203, -0.06474009156227112, -0.0039072539657354355, -1.2494916915893555, 0.2865404784679413, 0.6416082382202148, -0.407222181558609, -1.0694358348846436, 0.04360151290893555, 1.2853171825408936...
func ConfigureWithSubnet(role *vm.Role, subnet string) error { if role == nil { return fmt.Errorf(errParamNotSpecified, "role") } role.ConfigurationSets = updateOrAddConfig(role.ConfigurationSets, vm.ConfigurationSetTypeNetwork, func(config *vm.ConfigurationSet) { config.SubnetNames = append(config.SubnetNam...
[ 0.20584261417388916, 0.40220877528190613, 0.7620671391487122, 0.37564817070961, 0.5518590807914734, 0.18222852051258087, -0.626545250415802, -0.7272177934646606, 0.24064099788665771, 0.4387775957584381, -0.18702374398708344, -0.6332050561904907, 0.8674154281616211, 0.8780954480171204, 0....
func (self *UserManager) FindById(id interface{}) *models.User { db := self.db user := new(models.User) stmt, err := db.Prepare("SELECT * FROM users WHERE id = ?") utils.CheckErr(err, nil) err = stmt.QueryRow(id).Scan(&user.Id, &user.FullName, &user.Address, &user.Phone, &user.Email, &user.Password, &user.Hash, &...
[ 0.513735830783844, -0.017855562269687653, 0.5551856756210327, 0.08855420351028442, -0.31891515851020813, -0.03942893445491791, 0.1301865428686142, -1.3370893001556396, 0.1632845252752304, 0.007143305614590645, -0.5145964026451111, -0.3599720001220703, -0.863812267780304, 0.9659410715103149...
func (self *UserManager) FindActiveByEmail(email string) *models.User { db := self.db user := new(models.User) stmt, err := db.Prepare("SELECT * FROM users WHERE email = ? AND is_active = 1") utils.CheckErr(err, nil) err = stmt.QueryRow(email).Scan(&user.Id, &user.FullName, &user.Address, &user.Phone, &user.Email,...
[ 0.6017888188362122, -0.5167247653007507, 0.6377385258674622, -0.09960392117500305, 0.06140804663300514, -0.6862889528274536, 0.07507877051830292, -0.6791836619377136, -0.5249074101448059, 0.36333897709846497, 0.01859091967344284, 0.16708195209503174, -0.8996229767799377, -0.562839448451995...
func (self *UserManager) FindInActiveByHash(hash string) *models.User { db := self.db user := new(models.User) stmt, err := db.Prepare("SELECT * FROM users WHERE hash = ? AND is_active = 0") utils.CheckErr(err, nil) err = stmt.QueryRow(hash).Scan(&user.Id, &user.FullName, &user.Address, &user.Phone, &user.Email, &...
[ 0.9288606643676758, -0.8755387663841248, 0.6932021379470825, 0.10951957106590271, -0.5369152426719666, -0.08082272857427597, -0.6395568251609802, -0.5090634226799011, -0.5131181478500366, -0.13445554673671722, -0.021721791476011276, -0.11038744449615479, -1.3652894496917725, 0.144529253244...
func (self *UserManager) CryptPassword(rawPassword string) string { return self.GenerateHash(rawPassword) }
[ -0.666008472442627, 0.2716643810272217, 0.3091943860054016, 0.9955435991287231, -0.559524655342102, 0.8508012294769287, -0.3216756582260132, -0.3390932083129883, 0.4899771511554718, -0.13843363523483276, -0.8250327110290527, 0.15345579385757446, -0.5281179547309875, 0.11138768494129181, ...
func serveWs(hub *Hub, w http.ResponseWriter, r *http.Request) { conn, err := upgrader.Upgrade(w, r, nil) if err != nil { logger.Error(err) return } client := &Client{hub: hub, conn: conn, send: make(chan []byte, 256)} client.hub.register <- client go client.writePump() client.readPump() }
[ -0.28344041109085083, 0.3144373893737793, 0.6402291655540466, 0.32790273427963257, 0.2785257399082184, -0.6649549603462219, 0.8949521780014038, -0.539537787437439, 0.1662561148405075, 0.24953341484069824, -0.5073637962341309, 0.6542683243751526, -0.6356725096702576, 0.9394559264183044, 0...
func TestReconcilerChangeRollback(t *testing.T) { networkChanges, deviceChanges, devices := newStores(t) defer networkChanges.Close() defer deviceChanges.Close() reconciler := &Reconciler{ networkChanges: networkChanges, deviceChanges: deviceChanges, devices: devices, } // Create a network change ...
[ -0.32657670974731445, -0.09464065730571747, 0.6832301020622253, -0.42156967520713806, 0.5765683054924011, 0.2878480851650238, 0.731411337852478, 0.8092132210731506, -0.018007386475801468, -0.7845484614372253, -0.5329694151878357, -0.611320436000824, -0.11983267962932587, 0.4935440123081207...
func Errorf(format string, a ...interface{}) error { return fmt.Errorf(format, a...) }
[ 0.30852556228637695, -0.3842429220676422, 0.35325098037719727, 0.22928160429000854, -0.17580226063728333, 0.07357465475797653, -0.1684751808643341, -0.011117015965282917, -0.3308938443660736, -0.9478096961975098, 0.4482114017009735, 0.37501710653305054, 1.1334283351898193, 0.41733443737030...
func (vc *vcopier) initTablesForCopy(ctx context.Context) error { defer vc.vr.dbClient.Rollback() plan, err := buildReplicatorPlan(vc.vr.source, vc.vr.colInfoMap, nil, vc.vr.stats) if err != nil { return err } if err := vc.vr.dbClient.Begin(); err != nil { return err } // Insert the table list only if at le...
[ -0.7294811010360718, 0.4142858684062958, 0.6807785630226135, -0.1992320716381073, -0.6055907607078552, 0.07742275297641754, 0.667702853679657, 0.3918028473854065, -0.1468915194272995, 0.9873244762420654, -0.505098283290863, 0.06826746463775635, -0.12961477041244507, 0.08603592216968536, ...
func (vc *vcopier) copyNext(ctx context.Context, settings binlogplayer.VRSettings) error { qr, err := vc.vr.dbClient.Execute(fmt.Sprintf("select table_name, lastpk from _vt.copy_state where vrepl_id=%d", vc.vr.id)) if err != nil { return err } var tableToCopy string copyState := make(map[string]*sqltypes.Result)...
[ -1.0086607933044434, 0.4364524781703949, 0.7084972858428955, 0.6872022747993469, -1.7650928497314453, -0.17097677290439606, -0.028749311342835426, -0.6550282835960388, 0.13545359671115875, 0.984581470489502, 0.028624748811125755, -0.07879622280597687, -0.2024378925561905, 0.245803400874137...
func (vc *vcopier) catchup(ctx context.Context, copyState map[string]*sqltypes.Result) error { ctx, cancel := context.WithCancel(ctx) defer cancel() defer vc.vr.stats.PhaseTimings.Record("catchup", time.Now()) settings, err := binlogplayer.ReadVRSettings(vc.vr.dbClient, vc.vr.id) if err != nil { return err } ...
[ 0.03832239657640457, 0.35421398282051086, 0.7402074933052063, 0.054210662841796875, -0.9487347602844238, -0.26116588711738586, 0.7104076147079468, -0.30835777521133423, 0.0400981605052948, 1.371496558189392, 0.21362744271755219, 0.6915939450263977, 0.07281582057476044, -0.641821026802063, ...
func (vc *vcopier) copyTable(ctx context.Context, tableName string, copyState map[string]*sqltypes.Result) error { defer vc.vr.dbClient.Rollback() defer vc.vr.stats.PhaseTimings.Record("copy", time.Now()) defer vc.vr.stats.CopyLoopCount.Add(1) log.Infof("Copying table %s, lastpk: %v", tableName, copyState[tableNam...
[ -0.22269617021083832, -0.2709328234195709, 0.7810613512992859, 0.490234375, -1.2760428190231323, 0.1869446486234665, 0.4540419280529022, -0.315845251083374, 0.3823937177658081, 1.3443223237991333, -0.014685623347759247, 0.057678867131471634, -0.11410301923751831, 0.026140952482819557, -0...
func TestTerraformAirbyteDemo(t *testing.T) { t.Parallel() workingTerraformDir := test_structure.CopyTerraformFolderToTemp(t, "../", "terraform") // Construct the terraform options with default retryable errors to handle the most common // retryable errors in terraform testing. // The folder where we have our pa...
[ 0.6486133337020874, 0.14925754070281982, 0.8610424995422363, -0.2829045057296753, 0.876347005367279, 0.0037552891299128532, 0.9713640213012695, -0.10909765213727951, 0.017557259649038315, -0.3996269404888153, -0.15526211261749268, -0.1668386459350586, -0.4490259885787964, 0.120369479060173...
func buildImage(t *testing.T, projectID string, workingPackerDir string) { // Variables to pass to our Packer build using -var options PKR_VAR_project := os.Getenv("PKR_VAR_project") PKR_VAR_zone := os.Getenv("PKR_VAR_zone") PKR_VAR_airbyte_build_script := os.Getenv("PKR_VAR_airbyte_build_script") airbyte_build_sc...
[ -0.19820761680603027, -0.1744743287563324, 0.6079699993133545, 0.3536998927593231, 0.43344834446907043, 0.5155805945396423, 0.07613576203584671, 0.473690390586853, -0.18058814108371735, 0.2968651056289673, 0.14535777270793915, -0.35377559065818787, -0.8284525275230408, 0.2378372848033905, ...
func deleteImage(t *testing.T, projectID string, imageName string) { // Load the Image ID saved by the earlier build_image stage image := gcp.FetchImage(t, projectID, imageName) image.DeleteImage(t) }
[ 0.24871490895748138, 0.022568700835108757, 0.21542201936244965, 0.20871186256408691, 0.4470213055610657, 0.8172112703323364, -0.2681131958961487, 0.9185771942138672, -0.33987361192703247, 0.32892584800720215, 0.7786117792129517, 0.557624340057373, -0.4478817284107208, 0.7909837961196899, ...
func testSSHToPublicHost(t *testing.T, terraformOptions *terraform.Options) { //get the GCP instance project := terraformOptions.Vars["project"].(string) instanceName := terraformOptions.Vars["name"].(string) instance := gcp.FetchInstance(t, project, instanceName) // generate a ssh key pair keyPair := ssh.Genera...
[ 0.6712387204170227, 0.6271382570266724, 0.6822872757911682, 0.08611419796943665, 0.42808055877685547, 0.8772165775299072, -0.1943930983543396, -0.08503715693950653, -0.8329626321792603, -0.05959874391555786, -0.09072548896074295, 0.49646472930908203, 0.05611993744969368, -0.074745751917362...
func AddInitialDecision(id string) error { decision := models.UserDecision{ ID: id, Status: "PENDING", } body := bytes.Buffer{} json.NewEncoder(&body).Encode(&decision) req, err := http.NewRequest("POST", config.DECISION_SERVICE+"/decision/", &body) if err != nil { return err } req.Header.Set("Hac...
[ -0.6185594201087952, -0.5652748942375183, 0.8339630365371704, -0.1347840428352356, 0.6199377775192261, 1.119645357131958, -0.7178187966346741, 0.5241981148719788, -0.030210839584469795, 0.09927994757890701, -0.35506460070610046, 0.805752694606781, -0.3257964551448822, 1.0724629163742065, ...
func (w *World) Add(h Hitable) { w.elements = append(w.elements, h) }
[ -0.9234746694564819, -0.15894833207130432, 0.36749452352523804, 0.8098148703575134, 0.510750949382782, 1.829540491104126, 0.0851593092083931, 0.0022924107033759356, -0.18046222627162933, 0.3440616726875305, -0.06558016687631607, 0.07772606611251831, -0.6637166142463684, 1.132319688796997, ...
func throwsPanic(f func()) (b bool) { defer func() { if x := recover(); x != nil { b = true } }() f() return }
[ 1.183452844619751, 0.8129708766937256, 0.7340080738067627, 0.32503727078437805, -0.5723594427108765, 1.2716296911239624, -0.14458945393562317, -0.3885243833065033, 0.17225584387779236, -0.5007345080375671, -0.5525668263435364, -0.7857413291931152, 0.3671843111515045, -0.30280157923698425, ...
func (e *elem) getDomain(path string) ([]string, error) { pathVec := e.analysisPath(path) var domain []string targetNode, err := e.getElem(pathVec) if err != nil { return domain, err } for _, child := range targetNode.children { if child.isNode() { domain = append(domain, child.name) } } return domain,...
[ -1.276922583580017, -0.03146284818649292, 1.0413520336151123, 0.8799229264259338, 0.32752174139022827, 0.008243126794695854, 0.0989740788936615, -0.03183954209089279, 0.46059930324554443, -0.2281450778245926, -0.37484094500541687, 1.6464722156524658, 0.3904675841331482, 0.6726768612861633,...
func (e *elem) getDomainKey(path string) ([]string, error) { pathVec := e.analysisPath(path) var domainKey []string targetNode, err := e.getElem(pathVec) if err != nil { return domainKey, err } for _, child := range targetNode.children { if child.isLeaf() { domainKey = append(domainKey, child.name) } } ...
[ -0.9295445680618286, -0.04019726812839508, 0.9587981700897217, 0.7579823136329651, 0.29811257123947144, -0.012885767966508865, 0.38713160157203674, -0.2609412372112274, 0.06813164800405502, 0.690217912197113, -0.45252519845962524, 1.5560749769210815, 0.37930917739868164, 1.0839613676071167...
func (e *elem) getDomainLine(path string) ([]string, error) { pathVec := e.analysisPath(path) var domainLine []string targetNode, err := e.getElem(pathVec) if err != nil { return domainLine, err } domainLine = append(domainLine, targetNode.line...) return domainLine, nil }
[ -0.8970195055007935, -0.1432545781135559, 0.8841736912727356, 0.9239210486412048, 0.5311340689659119, 0.3994007110595703, -0.4322650730609894, -0.24135494232177734, 0.2741728127002716, -0.43298330903053284, -0.34973183274269104, 1.3835625648498535, 0.47405707836151123, 0.5749686360359192, ...
func (e *elem) getValue(path string) (string, error) { pathVec := e.analysisPath(path) targetNode, err := e.getElem(pathVec) if err != nil { return "", err } return targetNode.value, nil }
[ -0.3664778172969818, 0.4355523884296417, 0.904313862323761, 0.6713685393333435, 0.5286895632743835, 0.15032607316970825, 0.6382566690444946, -0.3833056688308716, 0.5511873960494995, 0.3357495665550232, 0.9322166442871094, 0.4603908061981201, 0.5689415335655212, -0.3390307128429413, 0.385...
func New() *Conf { return &Conf{[]byte{}, new(sync.RWMutex), newElem(Node, "root")} }
[ 0.4998323917388916, -0.36957061290740967, 0.08889689296483994, 0.653419017791748, -1.0437983274459839, -0.6818385720252991, 0.02301235869526863, 0.15692424774169922, -0.5460679531097412, -0.1296825408935547, -1.4111661911010742, 0.5131930112838745, 0.058115262538194656, 1.111672043800354, ...
func NewConf(fileName string) (*Conf, error) { c := New() if err := c.InitFromFile(fileName); err != nil { return nil, err } return c, nil }
[ 0.7381997108459473, -0.8977063894271851, 0.09229549020528793, 0.5143346190452576, -0.48224884271621704, 0.08721637725830078, 0.872947096824646, 0.4482382535934448, -0.8523105978965759, -0.14969198405742645, -0.7057878375053406, -0.04681836813688278, 0.029330095276236534, 0.4251839220523834...
func (c *Conf) InitFromFile(fileName string) error { content, err := ioutil.ReadFile(fileName) if err != nil { return fmt.Errorf("read file %s error:%v", fileName, err) } return c.InitFromBytes(content) }
[ 0.3342306315898895, -0.7114253640174866, 0.48833611607551575, -0.1679813712835312, -0.7342284321784973, 0.5225212574005127, -0.0014497850788757205, 0.3946970999240875, -1.3879210948944092, 0.13648590445518494, -0.7911784648895264, -0.40408074855804443, -0.38491350412368774, 0.4916600883007...
func (c *Conf) InitFromString(content string) error { return c.InitFromBytes(([]byte)(content)) }
[ 0.623153805732727, -1.1613270044326782, 0.06391867250204086, -0.21026961505413055, -0.8049191832542419, -0.04539124295115471, -0.3566618859767914, -0.1339530497789383, -0.5451639294624329, 0.03971537575125694, -1.3146322965621948, -0.1254691183567047, -0.6462144255638123, -0.13077020645141...
func (c *Conf) InitFromBytes(content []byte) error { c.mutex.Lock() defer c.mutex.Unlock() c.content = content xmlDecoder := xml.NewDecoder(bytes.NewReader(c.content)) var nodeStack []*elem nodeStack = append(nodeStack, c.root) for { currNode := nodeStack[len(nodeStack)-1] token, _ := xmlDecoder.Token() if...
[ 0.19471290707588196, -0.5877404808998108, 0.7391460537910461, -0.2750510573387146, -0.5450268983840942, -0.010471723973751068, 0.17868420481681824, 0.5745366215705872, -0.41945526003837585, 0.2514713704586029, -0.1594768911600113, -0.3199496865272522, -0.10367715358734131, 0.46220999956130...
func (c *Conf) GetStringWithDef(path string, defVal string) string { c.mutex.RLock() defer c.mutex.RUnlock() value, err := c.root.getValue(path) if err != nil { return defVal } return value }
[ 0.3822501301765442, -0.1887289434671402, 0.5830761194229126, 0.331210196018219, -0.29141247272491455, -0.7828763723373413, -0.6193364262580872, -0.8658707737922668, -0.6015478372573853, -0.09701976925134659, 0.6220759153366089, 0.36474549770355225, -0.38345128297805786, 0.3651603162288666,...
func (c *Conf) GetString(path string) string { return c.GetStringWithDef(path, "") }
[ 0.17526325583457947, 0.15981900691986084, 0.27791860699653625, 0.2167414277791977, 0.06732769310474396, -0.5259137153625488, 0.25194984674453735, -0.9318552017211914, -0.3324064314365387, 0.2868422567844391, -0.05478958785533905, 0.22113320231437683, -0.14194494485855103, -0.03820654377341...
func (c *Conf) GetIntWithDef(path string, defVal int) int { c.mutex.RLock() defer c.mutex.RUnlock() value, err := c.root.getValue(path) if err != nil { return defVal } iValue, err := strconv.Atoi(value) if err != nil { return defVal } return iValue }
[ 0.12338276952505112, 0.21311454474925995, 0.7213431596755981, -0.005330282729119062, -0.00016179625527001917, -0.9387751221656799, -0.23678168654441833, -0.5903908014297485, -0.9766566753387451, 0.425159215927124, -0.47368335723876953, 0.4378161132335663, -0.4496835470199585, 0.59443372488...
func (c *Conf) GetInt(path string) int { return c.GetIntWithDef(path, 0) }
[ -0.08329653739929199, 0.2830357551574707, 0.41117700934410095, 0.012101834639906883, 0.29870840907096863, -0.8024842739105225, 0.529780387878418, -0.8271252512931824, -1.3044469356536865, 0.05276927724480629, -0.6125505566596985, -0.27764615416526794, -0.3688586950302124, 0.304812848567962...
func (c *Conf) GetDomain(path string) []string { c.mutex.RLock() defer c.mutex.RUnlock() domain, err := c.root.getDomain(path) if err != nil { return []string{} } return domain }
[ -1.0799813270568848, 0.1785600483417511, 0.7747653126716614, 1.285724401473999, 0.20078471302986145, -0.48385390639305115, -0.29381608963012695, -0.35328370332717896, -0.219560906291008, -0.15978266298770905, -0.4586066007614136, 1.3859691619873047, -0.6897956132888794, 1.40138578414917, ...
func (c *Conf) GetDomainKey(path string) []string { c.mutex.RLock() defer c.mutex.RUnlock() domainKey, err := c.root.getDomainKey(path) if err != nil { return []string{} } return domainKey }
[ -0.9007212519645691, 0.2267281711101532, 0.5984752774238586, 1.12288498878479, 0.2538018524646759, -0.27621445059776306, 0.09036082029342651, -0.5776111483573914, -0.5180180072784424, 0.7167223691940308, -0.7830318808555603, 1.353712558746338, -0.41625648736953735, 1.8256677389144897, 0....
func (c *Conf) GetDomainLine(path string) []string { c.mutex.RLock() defer c.mutex.RUnlock() domainLine, err := c.root.getDomainLine(path) if err != nil { return []string{} } return domainLine }
[ -0.826594352722168, -0.1341136395931244, 0.5961357355117798, 1.1853270530700684, 0.010927218943834305, -0.06862078607082367, -0.7395323514938354, -0.5023597478866577, -0.43561840057373047, -0.33791080117225647, -0.7853862643241882, 1.0904628038406372, -0.24353532493114471, 1.49129188060760...
func (c *Conf) GetMap(path string) map[string]string { c.mutex.RLock() defer c.mutex.RUnlock() kvMap, _ := c.root.getMap(path) return kvMap }
[ -0.34342747926712036, -0.0097854845225811, 0.5438201427459717, 0.9273523688316345, -0.6473900079727173, 0.19455498456954956, 0.12685152888298035, -0.5693056583404541, 0.32570141553878784, 0.2509668171405792, 0.1648460179567337, -0.14332418143749237, -0.0778084322810173, 0.5263723134994507,...
func (c *Conf) ToString() string { return c.root.toString(0) }
[ 0.43086081743240356, -0.224469393491745, 0.23876331746578217, -0.4455738365650177, 0.36668187379837036, 0.3113081455230713, 0.7017837166786194, -0.08890703320503235, -0.6481296420097351, 0.5793935656547546, -0.4519502520561218, -0.1297505497932434, -0.29150041937828064, -0.1804826855659485...
func (c *Conf) GetInt32WithDef(path string, defVal int32) int32 { c.mutex.RLock() defer c.mutex.RUnlock() value, err := c.root.getValue(path) if err != nil { return defVal } iValue, err := strconv.ParseInt(value, 10, 32) if err != nil { return defVal } return int32(iValue) }
[ 0.4384479522705078, 0.39917728304862976, 0.6515100598335266, -0.09065481275320053, 0.10664991289377213, -0.18532045185565948, -0.5843557119369507, -0.6593568325042725, -0.9716062545776367, -0.02090435102581978, -0.2636794149875641, 0.6799646019935608, -0.5434239506721497, 0.440034449100494...
func (c *Conf) GetBoolWithDef(path string, defVal bool) bool { c.mutex.RLock() defer c.mutex.RUnlock() value, err := c.root.getValue(path) if err != nil { return defVal } bValue, err := strconv.ParseBool(value) if err != nil { return defVal } return bValue }
[ 0.3392082452774048, -0.3175641596317291, 0.6586670875549316, 0.47863152623176575, 0.05713224038481712, -0.19691835343837738, -0.8531383872032166, -0.1356285810470581, -1.3621809482574463, 0.0952637568116188, -0.1936161369085312, 0.7624418139457703, -0.03941541165113449, 0.39621439576148987...
func (c *Conf) GetFloatWithDef(path string, defVal float64) float64 { c.mutex.RLock() defer c.mutex.RUnlock() value, err := c.root.getValue(path) if err != nil { return defVal } fValue, err := strconv.ParseFloat(value, 64) if err != nil { return defVal } return fValue }
[ 0.7254001498222351, 0.2805129289627075, 0.6313068270683289, 0.5038929581642151, 0.2007536143064499, -0.8042577505111694, -0.6266899704933167, -0.10892029106616974, -0.7713781595230103, -0.6790598034858704, -0.0569305345416069, 0.6566317081451416, 0.056638024747371674, 1.1505323648452759, ...
func TxCreateProviderExec(clientCtx client.Context, from fmt.Stringer, filepath string, extraArgs ...string) (sdktest.BufferWriter, error) { args := []string{ fmt.Sprintf("--from=%s", from.String()), filepath, } args = append(extraArgs, args...) return clitestutil.ExecTestCLICmd(clientCtx, CreateCMD(), args) ...
[ 0.5158035159111023, 0.016536518931388855, 0.6328369379043579, 0.02869877591729164, 0.08704125881195068, 0.8227722644805908, 0.017588043585419655, -0.16108985245227814, -0.548397958278656, 0.4950995147228241, 0.18524153530597687, 0.3817872405052185, -0.4695505201816559, -0.5322578549385071,...
func TxUpdateProviderExec(clientCtx client.Context, from fmt.Stringer, filepath string, extraArgs ...string) (sdktest.BufferWriter, error) { args := []string{ fmt.Sprintf("--from=%s", from.String()), filepath, } args = append(extraArgs, args...) return clitestutil.ExecTestCLICmd(clientCtx, UpdateCMD(), args) ...
[ 0.18480929732322693, -0.5058350563049316, 0.9075042009353638, -0.06147192791104317, -0.7887548804283142, 0.7418924570083618, 0.04407597333192825, 0.40893715620040894, -0.19534067809581757, 1.10727858543396, 0.318073570728302, 0.5308337211608887, -0.8390887975692749, -0.8972066044807434, ...
func QueryProvidersExec(clientCtx client.Context, args ...string) (sdktest.BufferWriter, error) { return clitestutil.ExecTestCLICmd(clientCtx, ListCMD(), args) }
[ 0.20463135838508606, 0.35322991013526917, 0.4659104645252228, 0.044413477182388306, 0.5323449969291687, 0.38292986154556274, -0.1355322301387787, -0.6208549737930298, 0.6249909400939941, 0.04112442210316658, -0.07029783725738525, 0.6830517649650574, -0.8696392178535461, -0.8484978079795837...
func QueryProviderExec(clientCtx client.Context, owner string, extraArgs ...string) (sdktest.BufferWriter, error) { args := []string{ owner, } args = append(extraArgs, args...) return clitestutil.ExecTestCLICmd(clientCtx, GetCMD(), args) }
[ 0.00502651184797287, 0.46767234802246094, 0.6601906418800354, 0.35209423303604126, 0.09239157289266586, 0.45090845227241516, 0.17704445123672485, -0.5259315967559814, 0.3773447275161743, -0.06584712117910385, 0.20433653891086578, 0.7291669845581055, -0.7281822562217712, -0.8425019383430481...
func TestSts(t *testing.T) { tests := []struct { value interface{} result string sep string }{ {[]int{1, 2, 3}, "1,2,3", ","}, {[]int{1, 2, 3}, "1:2:3", ":"}, {[]int{1, 2, 3}, "1 2 3", " "}, {[]string{"1", "2", "3"}, "1,2,3", ","}, {[]string{"a,b,c", "d,e,f", "g,h,i"}, "a,b,c@d,e,f@g,h,i", "@"}, ...
[ -0.013211799785494804, 0.2511877119541168, 0.7499781847000122, -0.9361782670021057, -0.31556493043899536, 0.13649798929691315, 0.304258793592453, -1.2399389743804932, -0.02997439354658127, -0.4621399939060211, -0.5277646780014038, -0.4227975010871887, -0.030596964061260223, -0.367349416017...
func TestFts(t *testing.T) { data := struct { KeyA uint8 KeyB int64 KeyC []string }{ KeyA: 10, KeyB: -20, KeyC: []string{"One", "Two", "Three"}, } expected := fmt.Sprintf("%d", data.KeyA) if v := fts(data, "KEY_A", ""); v != expected { t.Errorf("expected %s but %s", expected, v) } expected = fmt....
[ 0.08198737353086472, 0.12144926935434341, 0.4539763033390045, -1.3382717370986938, 0.35775160789489746, -0.5152884721755981, -0.3815372586250305, -1.0722534656524658, -0.12016434967517853, -0.7569206953048706, -0.6051399111747742, -0.15508684515953064, -0.37604597210884094, 0.2321431487798...
func TestLoadReadParseStoreOpen(t *testing.T) { err := readParseStore("./fixtures/nonexist.env", false, false, false) if err == nil { t.Error("should be an error for open a nonexistent file") } }
[ 0.5485069155693054, -0.68533855676651, 0.7131164073944092, -0.8260238170623779, 0.35261067748069763, 1.3206837177276611, 0.2681868076324463, 1.2212148904800415, -0.27027031779289246, -0.7416269183158875, 0.2648907005786896, -0.15943807363510132, -0.5052746534347534, -1.0411062240600586, ...
func TestReadParseStoreExported(t *testing.T) { tests := map[string]string{ "KEY_0": "value 0", "KEY_1": "value 1", "KEY_2": "value_2", "KEY_3": "value_0:value_1:value_2:value_3", } // Load env-file. os.Clearenv() err := readParseStore("./fixtures/exported.env", false, false, false) if err != nil { t.E...
[ 0.7911501526832581, -0.22595418989658356, 0.7247679829597473, -0.3388921618461609, 0.16111664474010468, 0.6167909502983093, 0.0032799418549984694, -0.05722244828939438, -0.007419907487928867, -0.12632250785827637, -0.42129477858543396, 0.21583937108516693, 0.09165110439062119, -0.836700141...
func TestReadParseStoreComments(t *testing.T) { tests := map[string]string{ "KEY_0": "value 0", "KEY_1": "value 1", "KEY_2": "value_2", "KEY_3": "value_3", "KEY_4": "value_4:value_4:value_4", "KEY_5": `some text with # sharp sign and "escaped quotation" mark`, } // Load env-file. os.Clearenv() err := ...
[ 0.4445120692253113, -0.848028302192688, 0.8004127740859985, -0.3782760202884674, 0.6525636315345764, 0.17128689587116241, 0.5232926607131958, -0.5798242688179016, -0.6438948512077332, -0.03786228224635124, -0.5577868819236755, 0.04603459686040878, -0.03422669321298599, -0.650663435459137, ...
func TestReadParseStoreWorngEqualKey(t *testing.T) { err := readParseStore("./fixtures/wrongequalkey.env", false, false, false) if err == nil { t.Error("should be an error") } }
[ 0.07687218487262726, -0.27232295274734497, 0.4470561444759369, -0.22021551430225372, 1.3327325582504272, 0.6066190600395203, -0.2063806802034378, -0.35680824518203735, -0.3916674256324768, 0.2556024491786957, -0.3636538088321686, 0.5524182319641113, -0.39538151025772095, -0.209913089871406...
func TestReadParseStoreWorngEqualValue(t *testing.T) { err := readParseStore("./fixtures/wrongequalvalue.env", false, true, false) if err == nil { t.Error("should be an error") } }
[ 0.4244871437549591, -0.17373846471309662, 0.511315643787384, -0.08723276853561401, 1.077122688293457, 0.9837663173675537, -0.0005959533737041056, -0.17646333575248718, -0.379712849855423, -0.381361186504364, -0.3152957558631897, 0.5441263318061829, -0.14201979339122772, -0.4940947294235229...
func TestReadParseStoreIgnoreWorngEntry(t *testing.T) { forced := true tests := map[string]string{ "KEY_0": "value_0", "KEY_1": "value_1", "KEY_4": "value_4", "KEY_5": "value", "KEY_6": "777", "KEY_7": "${KEY_1}", } // Load env-file. os.Clearenv() err := readParseStore("./fixtures/wrongentries.env", ...
[ 0.6311658620834351, -0.0017140706768259406, 0.7097302079200745, -0.5634758472442627, 0.7941805124282837, 0.4560558497905731, -0.07760985940694809, -0.3383835554122925, -0.7828125953674316, 0.1726720631122589, -0.4420987665653229, 0.7196633815765381, 0.4765886664390564, 0.45241448283195496,...
func TestReadParseStoreVariables(t *testing.T) { expand := true tests := map[string]string{ "KEY_0": "value_0", "KEY_1": "value_1", "KEY_2": "value_001", "KEY_3": "value_001->correct value", "KEY_4": "value_0value_001", } // Load env-file. os.Clearenv() err := readParseStore("./fixtures/variables.env",...
[ 0.44978830218315125, -0.2216542661190033, 0.6609895825386047, -0.5096880793571472, 0.04019133746623993, 0.45204415917396545, 0.12345954030752182, 0.01203872263431549, -0.30984294414520264, -0.37811747193336487, -0.36184245347976685, 0.10797400027513504, -0.09604927152395248, -0.64685136079...
func TestReadParseStoreNotUpdate(t *testing.T) { var ( update = false err error ) // Set empty string os.Clearenv() if err = os.Setenv("KEY_0", ""); err != nil { t.Error(err) } // Read simple env-file with KEY_0. err = readParseStore("./fixtures/simple.env", false, update, false) if err != nil { t...
[ 0.36321887373924255, -0.4056902825832367, 0.5732810497283936, -0.26624953746795654, 0.15192252397537231, 1.3695377111434937, -0.27685049176216125, 0.16044385731220245, 0.015355841256678104, -0.889926552772522, -0.14240020513534546, -0.22312314808368683, -0.9011279940605164, -0.407953917980...
func TestReadParseStoreUpdate(t *testing.T) { update := true // Set empty string os.Clearenv() if err := os.Setenv("KEY_0", ""); err != nil { t.Error(err) } // Read simple env-file with KEY_0. err := readParseStore("./fixtures/simple.env", false, update, false) if err != nil { t.Error(err.Error()) } //...
[ 0.4577808380126953, -0.5869048833847046, 0.6667863130569458, -0.22156797349452972, 0.1478653848171234, 1.2617311477661133, -0.28535014390945435, 0.11687823385000229, -0.09859779477119446, -0.5804244875907898, -0.34565651416778564, -0.17967264354228973, -0.7275983095169067, -0.7655205130577...
func FileParser(file string) (osm.Parser, io.Closer, error) { fh, err := os.Open(file) if err != nil { return nil, nil, err } return Parser(fh), fh, nil }
[ -0.17069192230701447, -1.143908143043518, 0.572586715221405, 0.03891083970665932, -0.6066380739212036, 0.7451578378677368, 0.06675102561712265, 0.21594694256782532, -0.44014737010002136, -0.15379013121128082, 0.011880499310791492, -0.8918669819831848, -0.058148231357336044, 0.7365179657936...
func ByteParser(data []byte) osm.Parser { return Parser(bytes.NewReader(data)) }
[ 0.5805450677871704, -0.7408694624900818, 0.2659686803817749, -0.6864330768585205, -0.9178881645202637, 0.34539541602134705, -1.3592560291290283, 0.1887909471988678, 1.1940220594406128, -0.763289749622345, -0.26510679721832275, -0.2847706079483032, -0.799704372882843, 0.04617547616362572, ...