text
stringlengths
11
6.3k
embedding
listlengths
768
768
func RequestIDHandler(next http.Handler) http.Handler { return http.HandlerFunc(func(rw http.ResponseWriter, req *http.Request) { ctx := newContextWithRequestID(req.Context(), req) if next != nil { next.ServeHTTP(rw, req.WithContext(ctx)) } }) }
[ -0.6407865881919861, -0.6502453088760376, 0.41991519927978516, 0.46128106117248535, -0.8872151970863342, 0.7498759031295776, -0.22253744304180145, -0.43757298588752747, 1.2106637954711914, -0.1455131471157074, 0.020096726715564728, 0.17659059166908264, -0.9075755476951599, 0.28488397598266...
func (g GetenvValue) SafeURL() string { if g.value[len(g.value)-1] == '/' { return g.value[:len(g.value)-1] } return g.value }
[ -0.1779295653104782, 0.837704598903656, 0.36806178092956543, 0.6043334603309631, 0.16427822411060333, 1.022193193435669, 0.09113767743110657, -0.7152426838874817, -0.24672208726406097, 0.4367988705635071, 0.9240911602973938, 0.6812214255332947, -0.2915928065776825, -0.680351197719574, 0....
func VerifyKernelFuncs(requiredKernelFuncs ...string) (map[string]struct{}, error) { return funcCache.verifyKernelFuncs(requiredKernelFuncs) }
[ -0.6651843190193176, -0.040982697159051895, 0.2630533277988434, 0.8134241700172424, -0.4550339877605438, -0.857495903968811, -0.11424153298139572, -0.3447203040122986, 0.2508668005466461, -0.27933067083358765, -1.41146719455719, 0.5689159631729126, -0.44054892659187317, 0.6325642466545105,...
func GetEnv(key string) (string, error) { if len(key) == 0 { return "", errors.New("Env variable name must be provided to getEnv") } val, ok := os.LookupEnv(key) if !ok { return "", fmt.Errorf("Could not find environment variable: %s", key) } return val, nil }
[ -0.5150198340415955, 0.08257482945919037, 0.417657732963562, 0.5550085306167603, -0.5361534953117371, 0.16730475425720215, 0.2114718109369278, -0.11745473742485046, -0.538756787776947, 1.1519407033920288, 0.3350767493247986, 0.6424281597137451, -0.02821306511759758, 0.26367950439453125, ...
func CreateFeedBadRequest(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.FeedController, tags *string, title *string, url_ string) (http.ResponseWriter, error) { // Setup service var ( logBuf bytes.Buffer resp interface{} respSetter goatest.ResponseSetterFunc = func(r interface{}) ...
[ -0.101054348051548, -0.5865981578826904, 0.8796260356903076, -0.14688031375408173, 0.2597757577896118, -0.4113283157348633, -0.9176156520843506, -0.5308403968811035, -0.338988333940506, -0.7466116547584534, 0.32700273394584656, 1.1900417804718018, -0.6656203866004944, 0.5014072060585022, ...
func CreateFeedCreated(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.FeedController, tags *string, title *string, url_ string) (http.ResponseWriter, *app.Feed) { // Setup service var ( logBuf bytes.Buffer resp interface{} respSetter goatest.ResponseSetterFunc = func(r interface{})...
[ 0.7097247242927551, -0.15218780934810638, 0.6995111703872681, -0.09917633980512619, 0.4862474501132965, -0.3284764587879181, -0.43372565507888794, -0.4687436819076538, -0.36520302295684814, -0.8529242277145386, -0.0271561611443758, 0.7966221570968628, -0.4434143900871277, 0.589744567871093...
func CreateFeedCreatedLink(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.FeedController, tags *string, title *string, url_ string) (http.ResponseWriter, *app.FeedLink) { // Setup service var ( logBuf bytes.Buffer resp interface{} respSetter goatest.ResponseSetterFunc = func(r inte...
[ 0.39522409439086914, -0.1665240228176117, 0.5652940273284912, -0.18656416237354279, 0.6202042102813721, -0.5237308740615845, -0.40909701585769653, -0.5608980655670166, -0.39793893694877625, -1.2806850671768188, 0.012836550362408161, 0.961178719997406, -0.43686309456825256, 0.56425887346267...
func CreateFeedCreatedTiny(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.FeedController, tags *string, title *string, url_ string) (http.ResponseWriter, *app.FeedTiny) { // Setup service var ( logBuf bytes.Buffer resp interface{} respSetter goatest.ResponseSetterFunc = func(r inte...
[ 0.3229442238807678, -0.40184661746025085, 0.7180193662643433, -0.3194015324115753, 0.5866428017616272, -0.6593903303146362, -0.47452932596206665, -0.9960605502128601, -0.272483766078949, -0.7129104137420654, -0.3833196461200714, 0.9564622044563293, -0.5887110829353333, 0.029137415811419487...
func DeleteFeedBadRequest(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.FeedController, id string) (http.ResponseWriter, error) { // Setup service var ( logBuf bytes.Buffer resp interface{} respSetter goatest.ResponseSetterFunc = func(r interface{}) { resp = r } ) if service == ...
[ 0.14417889714241028, -0.8626540899276733, 0.6883684396743774, -0.3025815188884735, 0.39518171548843384, -0.5490860342979431, -0.17817959189414978, -0.7686409950256348, 0.3890646994113922, -0.5599284172058105, 0.8504944443702698, 1.4094725847244263, -1.1597034931182861, 0.394075870513916, ...
func DeleteFeedNoContent(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.FeedController, id string) http.ResponseWriter { // Setup service var ( logBuf bytes.Buffer respSetter goatest.ResponseSetterFunc = func(r interface{}) {} ) if service == nil { service = goatest.Service(&logBuf...
[ 0.37835535407066345, -0.4696400761604309, 0.5463994741439819, -0.6928873062133789, 0.2380518615245819, -0.5402154922485352, 0.2203618735074997, -1.0379588603973389, 0.327813059091568, -0.5515114068984985, 0.3061089813709259, 1.2139029502868652, -1.100361943244934, 0.16871502995491028, -0...
func DeleteFeedNotFound(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.FeedController, id string) http.ResponseWriter { // Setup service var ( logBuf bytes.Buffer respSetter goatest.ResponseSetterFunc = func(r interface{}) {} ) if service == nil { service = goatest.Service(&logBuf,...
[ 0.4020679295063019, -0.7501291036605835, 0.6396809220314026, -0.4957977533340454, 0.629906177520752, -0.41277167201042175, 0.2743210196495056, -0.7351980805397034, 0.43351659178733826, -0.3525770902633667, 0.3097172677516937, 1.4015473127365112, -1.1475281715393066, 0.4073878526687622, -...
func GetFeedBadRequest(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.FeedController, id string) (http.ResponseWriter, error) { // Setup service var ( logBuf bytes.Buffer resp interface{} respSetter goatest.ResponseSetterFunc = func(r interface{}) { resp = r } ) if service == nil...
[ 0.1606145054101944, -0.6789494156837463, 0.8936823010444641, -0.33412623405456543, 0.689073920249939, -0.6640162467956543, -0.18750371038913727, -1.0058960914611816, 0.332118958234787, -0.8037968873977661, 0.8708611130714417, 1.7355893850326538, -0.9832552671432495, 0.30300071835517883, ...
func GetFeedNotFound(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.FeedController, id string) http.ResponseWriter { // Setup service var ( logBuf bytes.Buffer respSetter goatest.ResponseSetterFunc = func(r interface{}) {} ) if service == nil { service = goatest.Service(&logBuf, re...
[ 0.4378730058670044, -0.5042868256568909, 0.7915957570075989, -0.43063363432884216, 0.9702414870262146, -0.39572444558143616, 0.28727927803993225, -1.0694767236709595, 0.3005339801311493, -0.511161208152771, 0.5033584237098694, 1.7045413255691528, -0.8892930746078491, 0.19386106729507446, ...
func GetFeedOK(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.FeedController, id string) (http.ResponseWriter, *app.Feed) { // Setup service var ( logBuf bytes.Buffer resp interface{} respSetter goatest.ResponseSetterFunc = func(r interface{}) { resp = r } ) if service == nil { ...
[ 0.6030125021934509, 0.15356701612472534, 0.8207781910896301, 0.06837797164916992, 0.7127857208251953, -0.7929308414459229, 0.24887797236442566, -0.8025864958763123, 0.23822669684886932, -0.7143415808677673, 0.34017956256866455, 1.5445995330810547, -0.6478349566459656, 0.41213279962539673, ...
func GetFeedOKLink(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.FeedController, id string) (http.ResponseWriter, *app.FeedLink) { // Setup service var ( logBuf bytes.Buffer resp interface{} respSetter goatest.ResponseSetterFunc = func(r interface{}) { resp = r } ) if service ==...
[ 0.621851921081543, 0.17869345843791962, 0.6292402148246765, 0.004133609123528004, 0.6952959299087524, -0.88286954164505, 0.06044354662299156, -1.0513275861740112, 0.10411898046731949, -0.7551330924034119, 0.44111180305480957, 1.6358411312103271, -0.7724838256835938, 0.587576150894165, -0...
func GetFeedOKTiny(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.FeedController, id string) (http.ResponseWriter, *app.FeedTiny) { // Setup service var ( logBuf bytes.Buffer resp interface{} respSetter goatest.ResponseSetterFunc = func(r interface{}) { resp = r } ) if service ==...
[ 0.4453657567501068, -0.196559339761734, 0.9183066487312317, -0.4037263095378876, 0.7332546710968018, -1.205967664718628, -0.24974830448627472, -1.3784029483795166, 0.12180676311254501, -0.4727543294429779, 0.2327575385570526, 1.3491795063018799, -0.8187440633773804, 0.19103510677814484, ...
func ListFeedBadRequest(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.FeedController, limit int, page int) (http.ResponseWriter, error) { // Setup service var ( logBuf bytes.Buffer resp interface{} respSetter goatest.ResponseSetterFunc = func(r interface{}) { resp = r } ) if ser...
[ -0.22898396849632263, -0.5842565894126892, 0.8344791531562805, -0.7016370296478271, 0.5115684270858765, -0.960067629814148, -0.6189629435539246, -0.16647019982337952, 0.3830217719078064, -0.5544734597206116, 0.7177591919898987, 1.5564889907836914, -0.7604514360427856, 0.5069897174835205, ...
func ListFeedNotFound(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.FeedController, limit int, page int) http.ResponseWriter { // Setup service var ( logBuf bytes.Buffer respSetter goatest.ResponseSetterFunc = func(r interface{}) {} ) if service == nil { service = goatest.Service(...
[ 0.15556247532367706, -0.537667453289032, 0.7201165556907654, -0.8728203773498535, 0.9462886452674866, -0.8617514967918396, 0.09813147783279419, -0.5474103689193726, 0.5759813785552979, -0.22024720907211304, 0.2952233552932739, 1.4525437355041504, -0.701096773147583, 0.373960018157959, -0...
func ListFeedOK(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.FeedController, limit int, page int) (http.ResponseWriter, app.FeedCollection) { // Setup service var ( logBuf bytes.Buffer resp interface{} respSetter goatest.ResponseSetterFunc = func(r interface{}) { resp = r } ) i...
[ -0.08935847878456116, 0.10155504941940308, 0.7717549204826355, -0.293081134557724, 0.46418818831443787, -1.1162495613098145, -0.07323551923036575, -0.303341805934906, 0.2579369843006134, -0.3019997179508209, 0.0942525863647461, 1.047886848449707, -0.21983736753463745, 0.817594587802887, ...
func ListFeedOKTiny(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.FeedController, limit int, page int) (http.ResponseWriter, app.FeedTinyCollection) { // Setup service var ( logBuf bytes.Buffer resp interface{} respSetter goatest.ResponseSetterFunc = func(r interface{}) { resp = r...
[ -0.07682434469461441, -0.11805957555770874, 0.8672354221343994, -0.6638597846031189, 0.6669390201568604, -1.4354640245437622, -0.46601957082748413, -0.7178525924682617, 0.09238458424806595, -0.08209437131881714, 0.08221632242202759, 1.1735183000564575, -0.4403485953807831, 0.46170896291732...
func StartFeedAccepted(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.FeedController, id string) http.ResponseWriter { // Setup service var ( logBuf bytes.Buffer respSetter goatest.ResponseSetterFunc = func(r interface{}) {} ) if service == nil { service = goatest.Service(&logBuf, ...
[ 0.5048452615737915, -0.2235414832830429, 0.7194094657897949, -0.49463826417922974, -0.054235514253377914, -0.1515512615442276, 0.3288404047489166, -0.40199941396713257, 0.2671090066432953, -0.10039173811674118, 0.158609539270401, 1.83973228931427, -0.6047163009643555, 0.4474153518676758, ...
func StartFeedBadRequest(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.FeedController, id string) (http.ResponseWriter, error) { // Setup service var ( logBuf bytes.Buffer resp interface{} respSetter goatest.ResponseSetterFunc = func(r interface{}) { resp = r } ) if service == n...
[ 0.16389086842536926, -0.9755523800849915, 0.7852227091789246, -0.24852921068668365, 0.2818322479724884, -0.42980334162712097, 0.008810358121991158, -0.8155006766319275, 0.165151447057724, -0.39198705554008484, 0.45914968848228455, 1.614864468574524, -1.0282018184661865, 0.40809503197669983...
func StartFeedNotFound(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.FeedController, id string) http.ResponseWriter { // Setup service var ( logBuf bytes.Buffer respSetter goatest.ResponseSetterFunc = func(r interface{}) {} ) if service == nil { service = goatest.Service(&logBuf, ...
[ 0.3644540011882782, -0.8069390654563904, 0.6794464588165283, -0.3599874973297119, 0.683282196521759, -0.34307652711868286, 0.48724666237831116, -0.6616023182868958, 0.13868394494056702, -0.1916772872209549, 0.2041599452495575, 1.5936650037765503, -0.9448058605194092, 0.2555620074272156, ...
func StopFeedAccepted(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.FeedController, id string) http.ResponseWriter { // Setup service var ( logBuf bytes.Buffer respSetter goatest.ResponseSetterFunc = func(r interface{}) {} ) if service == nil { service = goatest.Service(&logBuf, r...
[ -0.42539182305336, -0.4527910351753235, 0.7408525347709656, -1.0357542037963867, -0.014142035506665707, -0.1310470998287201, 0.4469318687915802, -0.4327617287635803, -0.1413920372724533, 0.012181979604065418, 0.23045583069324493, 1.3300813436508179, -0.7266620993614197, 0.07814349234104156...
func StopFeedBadRequest(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.FeedController, id string) (http.ResponseWriter, error) { // Setup service var ( logBuf bytes.Buffer resp interface{} respSetter goatest.ResponseSetterFunc = func(r interface{}) { resp = r } ) if service == ni...
[ -0.7257665991783142, -1.0676480531692505, 0.7392514944076538, -0.7747766375541687, 0.38121548295021057, -0.21285471320152283, -0.10332050174474716, -0.919075608253479, -0.3516996204853058, -0.21821439266204834, 0.4660027325153351, 1.0733097791671753, -1.1528871059417725, 0.0894588306546211...
func StopFeedNotFound(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.FeedController, id string) http.ResponseWriter { // Setup service var ( logBuf bytes.Buffer respSetter goatest.ResponseSetterFunc = func(r interface{}) {} ) if service == nil { service = goatest.Service(&logBuf, r...
[ -0.5220392346382141, -0.9773530960083008, 0.659241795539856, -0.8634013533592224, 0.7569919228553772, -0.26890355348587036, 0.36501896381378174, -0.7702250480651855, -0.22345106303691864, -0.040420107543468475, 0.1494234949350357, 1.0927021503448486, -1.0969394445419312, -0.018520973622798...
func UpdateFeedBadRequest(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.FeedController, id string, tags *string, title *string) (http.ResponseWriter, error) { // Setup service var ( logBuf bytes.Buffer resp interface{} respSetter goatest.ResponseSetterFunc = func(r interface{}) { ...
[ -0.8418543338775635, -0.9448230862617493, 0.8143582344055176, -0.5333182215690613, 0.11843733489513397, -0.4894341230392456, -0.9198150038719177, -0.6268905997276306, -0.18659767508506775, -0.2813992202281952, -0.09911610186100006, 1.3064991235733032, -1.1007390022277832, 0.316910713911056...
func UpdateFeedNotFound(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.FeedController, id string, tags *string, title *string) http.ResponseWriter { // Setup service var ( logBuf bytes.Buffer respSetter goatest.ResponseSetterFunc = func(r interface{}) {} ) if service == nil { servi...
[ -0.5189148187637329, -0.8565596342086792, 0.7058002352714539, -0.6940433382987976, 0.5105892419815063, -0.32145777344703674, -0.3207124173641205, -0.6506137251853943, -0.029661251232028008, -0.05087362974882126, -0.3265659809112549, 1.2610809803009033, -1.1893402338027954, 0.17910319566726...
func UpdateFeedOK(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.FeedController, id string, tags *string, title *string) (http.ResponseWriter, *app.Feed) { // Setup service var ( logBuf bytes.Buffer resp interface{} respSetter goatest.ResponseSetterFunc = func(r interface{}) { resp...
[ -0.6917378902435303, -0.34420883655548096, 0.7474232912063599, -0.26258814334869385, -0.08175075054168701, -0.7514066100120544, -0.39940401911735535, -0.5810889601707458, -0.2816660702228546, -0.13315518200397491, -0.5590675473213196, 0.8484410047531128, -0.6942991018295288, 0.479642957448...
func UpdateFeedOKLink(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.FeedController, id string, tags *string, title *string) (http.ResponseWriter, *app.FeedLink) { // Setup service var ( logBuf bytes.Buffer resp interface{} respSetter goatest.ResponseSetterFunc = func(r interface{}...
[ -0.6882275342941284, -0.34102246165275574, 0.562555193901062, -0.2809855341911316, 0.003795860568061471, -0.9164395332336426, -0.5824567675590515, -0.8508504629135132, -0.3751230239868164, -0.1570173054933548, -0.328586608171463, 1.0326565504074097, -0.7032020092010498, 0.4538796544075012,...
func UpdateFeedOKTiny(t goatest.TInterface, ctx context.Context, service *goa.Service, ctrl app.FeedController, id string, tags *string, title *string) (http.ResponseWriter, *app.FeedTiny) { // Setup service var ( logBuf bytes.Buffer resp interface{} respSetter goatest.ResponseSetterFunc = func(r interface{}...
[ -0.6084973216056824, -0.5540087223052979, 0.781792402267456, -0.6108898520469666, 0.10874137282371521, -1.0932825803756714, -0.8304698467254639, -0.9804039001464844, -0.2922159433364868, 0.044800855219364166, -0.5431277751922607, 0.8584868311882019, -0.8628835678100586, 0.04930832237005234...
func NewBackendService(mft *manifest.BackendService, env, app string, rc RuntimeConfig) (*BackendService, error) { parser := template.New() addons, err := addon.New(aws.StringValue(mft.Name)) if err != nil { return nil, fmt.Errorf("new addons: %w", err) } envManifest, err := mft.ApplyEnv(env) // Apply environmen...
[ 0.609785258769989, -0.5629724860191345, 0.10960868746042252, -0.4700515568256378, -0.5649092197418213, -0.2692290246486664, -1.118516445159912, -0.1812105029821396, -0.5042069554328918, 0.5991306900978088, 0.3664374351501465, 0.647660493850708, -0.8505131006240845, 0.6786244511604309, 0....
func (s *BackendService) Template() (string, error) { outputs, err := s.addonsOutputs() if err != nil { return "", err } sidecars, err := s.manifest.Sidecar.SidecarsOpts() if err != nil { return "", fmt.Errorf("convert the sidecar configuration for service %s: %w", s.name, err) } content, err := s.parser.Par...
[ -0.3013504147529602, 0.19620363414287567, 0.3211488127708435, -0.8139291405677795, -0.4561363160610199, -0.5796425342559814, -0.7532842755317688, -0.18961550295352936, -1.1688356399536133, 0.7294827699661255, 0.1978360414505005, -0.46769124269485474, -0.8359280824661255, -0.379061013460159...
func (s *BackendService) Parameters() ([]*cloudformation.Parameter, error) { return append(s.svc.Parameters(), []*cloudformation.Parameter{ { ParameterKey: aws.String(BackendServiceContainerPortParamKey), ParameterValue: aws.String(strconv.FormatUint(uint64(aws.Uint16Value(s.manifest.BackendServiceConfig.Ima...
[ -0.49088671803474426, -0.049736712127923965, 0.331218421459198, -1.0208475589752197, 1.4578455686569214, -0.018680740147829056, -0.46730586886405945, -0.5021251440048218, -0.14455269277095795, 0.11302989721298218, 0.4049581289291382, 0.8831139802932739, -0.43628761172294617, 0.833959519863...
func (s *BackendService) SerializedParameters() (string, error) { return s.svc.templateConfiguration(s) }
[ -0.39920181035995483, 0.038370490074157715, 0.2228744924068451, -0.4873253107070923, -0.42269596457481384, -0.8044306039810181, 0.09373893588781357, 0.05170593038201332, -0.01591026410460472, 0.4451134502887726, -0.4724453389644623, 0.42101481556892395, -0.9763824343681335, 0.3750280439853...
func TestFilterIterator_Interface(t *testing.T) { var _ ResultIterator = &FilterIterator{} }
[ -0.2608635127544403, -0.1116945743560791, 0.20950965583324432, -0.053967248648405075, -1.415253758430481, -0.5450114011764526, 1.2550526857376099, -0.6651937365531921, -0.09612777084112167, 0.11019422113895416, -0.39705953001976013, -0.04437640681862831, -0.42372623085975647, 0.76836222410...
func (kv *KVPaxos) kill() { kv.dead = true kv.l.Close() kv.px.Kill() }
[ -0.4280208945274353, -0.573969841003418, 0.2582342028617859, 0.9708145260810852, -0.3272095024585724, 1.690397024154663, -1.2796319723129272, 0.5572518706321716, -0.4790586829185486, 0.5213423371315002, -0.03569053113460541, -0.47400420904159546, 0.5724201798439026, -0.3425077199935913, ...
func StartServer(servers []string, me int) *KVPaxos { // this call is all that's needed to persuade // Go's RPC library to marshall/unmarshall // struct Op. gob.Register(Op{}) kv := new(KVPaxos) kv.me = me // Start Salman Addition kv.data = make(map[string]string) kv.pastClientRequestResponses = mak...
[ -0.207438126206398, -0.2915588617324829, 1.0156809091567993, 0.6633752584457397, -0.03037033975124359, 0.32371336221694946, -0.8948855996131897, 0.20748506486415863, 0.10399334877729416, -0.4670150578022003, 0.09496293216943741, 0.7402328848838806, -0.5079084038734436, 0.011434187181293964...
func NewClientOutboundOp(system string, opts ...Option) *Schema { cfg := &config{} for _, opt := range opts { opt(cfg) } return New(&clientOutboundOp{cfg: cfg, system: system}) }
[ 0.05515788123011589, -0.3826999068260193, 0.29280102252960205, 0.044025685638189316, -1.323946475982666, 0.07421547919511795, -0.5770909786224365, -0.3656057119369507, -0.6903014183044434, 0.6586788296699524, -0.4905315935611725, -0.29271382093429565, -0.5133593082427979, -0.58950310945510...
func NewServerInboundOp(system string, opts ...Option) *Schema { cfg := &config{} for _, opt := range opts { opt(cfg) } return New(&serverInboundOp{cfg: cfg, system: system}) }
[ -0.3267086148262024, -0.5531190037727356, 0.5737673044204712, 0.7421199083328247, -0.9201788902282715, -0.13151052594184875, -0.689648449420929, -0.11946969479322433, -0.07342550158500671, 0.5232706665992737, -0.9766156673431396, 0.581403911113739, -1.3952820301055908, -0.20163261890411377...
func NewHTTPClientOp(opts ...Option) *Schema { return NewClientOutboundOp("http", opts...) }
[ -0.23154494166374207, -0.16177630424499512, 0.5060799717903137, 0.23557189106941223, -0.8868163824081421, 0.06251050531864166, -0.556522011756897, -0.22042717039585114, -0.5812393426895142, 0.5701025724411011, -0.385655015707016, 0.333327978849411, -0.2003869116306305, -1.3455934524536133,...
func NewHTTPServerOp(opts ...Option) *Schema { return NewServerInboundOp("http", opts...) }
[ -1.1706311702728271, -0.1393568366765976, 0.5707113146781921, 0.7511864900588989, -0.8542380928993225, 0.1794407069683075, -0.7789319753646851, 0.35133516788482666, -0.5413442850112915, 0.5694959759712219, -0.9296259880065918, 0.32079678773880005, -0.6729552745819092, 0.09763849526643753, ...
func NewGRPCClientOp(opts ...Option) *Schema { return NewClientOutboundOp("grpc", opts...) }
[ 0.22749371826648712, 0.04704878106713295, 0.45962879061698914, 0.18932102620601654, -0.751985490322113, 0.023838071152567863, -0.2289411574602127, -0.5245671272277832, -0.5199592709541321, 0.812360405921936, -0.3217097818851471, 0.13782639801502228, -0.8797000050544739, -1.7859439849853516...
func NewGRPCServerOp(opts ...Option) *Schema { return NewServerInboundOp("grpc", opts...) }
[ -0.7721592783927917, -0.012534081935882568, 0.6054865121841431, 0.7231586575508118, -0.5062069296836853, -0.07055678218603134, -0.24241302907466888, 0.1308174580335617, -0.2887674868106842, 0.7340623140335083, -0.8771526217460632, 0.1429515928030014, -1.3517205715179443, -0.541845619678497...
func DBCheck(next http.HandlerFunc) http.HandlerFunc { return func(w http.ResponseWriter, r *http.Request) { if db.ConnectionCheck() == 0 { http.Error(w, "DB Connection lost.", http.StatusInternalServerError) return } next.ServeHTTP(w, r) } }
[ -0.01650429517030716, 0.7569058537483215, 0.5414868593215942, 0.7179245352745056, 0.4872243106365204, 0.7497875094413757, 0.0823558047413826, -0.0959443598985672, -0.06823892146348953, -0.04204044118523598, 0.7364683747291565, 0.14329293370246887, 0.07992749661207199, 0.45789945125579834, ...
func NewRID() *RID { rid := &RID{} var gdRID C.godot_rid C.godot_rid_new(&gdRID) rid.rid = &gdRID return rid }
[ 0.028814153745770454, -0.5879504084587097, 0.3147532343864441, -0.6589791178703308, -0.4971863925457001, 0.0841667577624321, -0.5978808999061584, -0.33031344413757324, 0.39196568727493286, -0.25655579566955566, 0.05387221649289131, 0.8531160950660706, -0.6882701516151428, 0.367324650287628...
func NewRIDWithResource(object Class) *RID { rid := &RID{} var gdRID C.godot_rid C.godot_rid_new_with_resource(&gdRID, unsafe.Pointer(object.getOwner())) rid.rid = &gdRID return rid }
[ -0.04915526509284973, -1.1852561235427856, 0.34018170833587646, -0.1437193602323532, -0.6399695873260498, -0.016443617641925812, 0.12686237692832947, -1.0939130783081055, 0.48881015181541443, 0.20525412261486053, -0.4473353922367096, 0.10767398774623871, 0.04690752550959587, 0.511422991752...
func (r *RID) GetID() int64 { return int64(C.godot_rid_get_id(r.rid)) }
[ 0.31249889731407166, -0.08598434925079346, 0.18157629668712616, 0.202071413397789, 0.9858734011650085, 0.018931202590465546, 0.6424183249473572, -0.2895675003528595, 0.8693822026252747, 0.04888485372066498, -0.030401652678847313, 0.1004895344376564, -1.1258745193481445, 0.2088809758424759,...
func (r *RID) OperatorEqual(rid *RID) bool { return bool(C.godot_rid_operator_equal(r.rid, rid.rid)) }
[ -0.7789989113807678, -0.09570717066526413, 0.567685604095459, -0.4388045370578766, 0.19545093178749084, 0.19253289699554443, 0.3623315691947937, -0.3650107681751251, 0.3104940354824066, 1.70167875289917, -0.7624807953834534, -0.7353178262710571, -0.9825108647346497, -0.16085495054721832, ...
func (r *RID) OperatorGreater(rid *RID) bool { if !r.OperatorEqual(rid) && !r.OperatorLess(rid) { return true } return false }
[ -1.4645494222640991, 0.5508788824081421, 0.608881413936615, -0.7124083042144775, -0.7625368237495422, 0.4455549418926239, -0.7720171213150024, -0.32812902331352234, 0.12708739936351776, 0.11243199557065964, -0.5541325211524963, -1.135664701461792, -0.8063928484916687, 0.9832245111465454, ...
func (r *RID) OperatorLess(rid *RID) bool { return bool(C.godot_rid_operator_less(r.rid, rid.rid)) }
[ -0.24735353887081146, -0.13200031220912933, 0.5685628056526184, -1.320756196975708, -0.6931018233299255, 0.37453651428222656, 0.6203896999359131, -1.3247812986373901, 0.5271833539009094, 0.12016703933477402, -0.3453473746776581, -0.7269603610038757, -1.2806161642074585, -0.1627831906080246...
func GroupsWithConfig(cfg *config.Config) []cli.Flag { flags := []cli.Flag{ // debug ports are the odd ports &cli.StringFlag{ Name: "debug-addr", Value: flags.OverrideDefaultString(cfg.Reva.Groups.DebugAddr, "0.0.0.0:9161"), Usage: "Address to bind debug server", EnvVars: []stri...
[ -0.28748762607574463, -0.4951416850090027, 0.5977132320404053, -0.7338184118270874, 0.6038969159126282, -0.009884866885840893, 0.2057676911354065, -0.7367014288902283, -0.6513410210609436, 0.2203134447336197, 0.2205180823802948, 0.5721966624259949, -0.09615088999271393, 0.26479509472846985...
func NewServeBuildTypesInProjectParams() *ServeBuildTypesInProjectParams { var () return &ServeBuildTypesInProjectParams{ timeout: cr.DefaultTimeout, } }
[ -0.7493707537651062, 0.37263545393943787, 0.28882670402526855, 1.0225499868392944, 0.5381726026535034, 0.6609880924224854, 0.9265618920326233, 0.5077987909317017, -2.0314066410064697, 0.17555855214595795, -1.0570205450057983, 0.28997185826301575, -1.542060375213623, 0.3678225874900818, -...
func NewServeBuildTypesInProjectParamsWithTimeout(timeout time.Duration) *ServeBuildTypesInProjectParams { var () return &ServeBuildTypesInProjectParams{ timeout: timeout, } }
[ -0.06219200789928436, 0.2999630868434906, 0.4299042224884033, 0.5314950346946716, 0.35130712389945984, 1.1229300498962402, 0.08758945763111115, 0.49998438358306885, -1.6026248931884766, 0.9015929102897644, -0.4745718240737915, 0.7523346543312073, -1.1585149765014648, 0.615485668182373, -...
func NewServeBuildTypesInProjectParamsWithContext(ctx context.Context) *ServeBuildTypesInProjectParams { var () return &ServeBuildTypesInProjectParams{ Context: ctx, } }
[ -0.363644003868103, 0.5831314325332642, 0.4416993260383606, 0.22670070827007294, 0.5074882507324219, 1.0083634853363037, 0.3127637207508087, -0.25875669717788696, -1.4053140878677368, 0.460894376039505, -0.8786547183990479, 0.49096015095710754, -1.1230289936065674, 0.20415279269218445, -...
func NewServeBuildTypesInProjectParamsWithHTTPClient(client *http.Client) *ServeBuildTypesInProjectParams { var () return &ServeBuildTypesInProjectParams{ HTTPClient: client, } }
[ -0.24289914965629578, 0.2452610284090042, 0.3462153375148773, 0.49612733721733093, 0.6936790347099304, 1.0715874433517456, 1.0396740436553955, 0.680077850818634, -1.965303659439087, 0.21338360011577606, -0.886851966381073, 0.20256517827510834, -0.867026150226593, -0.017529617995023727, -...
func (o *ServeBuildTypesInProjectParams) WithTimeout(timeout time.Duration) *ServeBuildTypesInProjectParams { o.SetTimeout(timeout) return o }
[ -0.2893483340740204, 0.808849573135376, 0.35698196291923523, 0.3551337420940399, -0.04825160279870033, 0.9416240453720093, 0.49885421991348267, 0.39263656735420227, -0.9823001027107239, 0.7030494809150696, -0.18216624855995178, 0.9064437747001648, -0.5637692809104919, 0.7663200497627258, ...
func (o *ServeBuildTypesInProjectParams) SetTimeout(timeout time.Duration) { o.timeout = timeout }
[ -0.46776658296585083, 0.7675999402999878, 0.3878101408481598, 0.4409633278846741, 0.21749158203601837, 1.4044032096862793, 0.8122869729995728, 0.900378942489624, -1.8718619346618652, 0.9740324020385742, -0.4800305962562561, 0.8880608081817627, -1.2120980024337769, 0.8089743256568909, -0....
func (o *ServeBuildTypesInProjectParams) WithContext(ctx context.Context) *ServeBuildTypesInProjectParams { o.SetContext(ctx) return o }
[ -0.9356651306152344, 0.8310391306877136, 0.3703153431415558, 0.26974964141845703, -0.1457124799489975, 0.8558399677276611, 0.37794673442840576, -0.5131205916404724, -0.6822780966758728, 0.24457329511642456, -0.5224307775497437, 0.8577637076377869, -1.1006897687911987, 0.33059096336364746, ...
func (o *ServeBuildTypesInProjectParams) SetContext(ctx context.Context) { o.Context = ctx }
[ -0.9763315916061401, 0.978375256061554, 0.2740441858768463, 0.5585090517997742, 0.3468078374862671, 1.107122540473938, 0.7410368323326111, 0.0407184399664402, -1.086134672164917, 0.5350650548934937, -0.8948450684547424, 0.8076654076576233, -1.555113673210144, 0.37103718519210815, -1.0319...
func (o *ServeBuildTypesInProjectParams) WithHTTPClient(client *http.Client) *ServeBuildTypesInProjectParams { o.SetHTTPClient(client) return o }
[ -0.45410051941871643, 0.02725313790142536, 0.22988663613796234, 0.139871746301651, -0.11855628341436386, 1.0101072788238525, 1.0170279741287231, -0.12401536852121353, -1.4106239080429077, -0.06845910847187042, -0.3908197581768036, 0.5066235661506653, -0.30174553394317627, 0.057859539985656...
func (o *ServeBuildTypesInProjectParams) SetHTTPClient(client *http.Client) { o.HTTPClient = client }
[ -0.06703023612499237, 0.2772790491580963, 0.23623797297477722, -0.14450643956661224, -0.07262270897626877, 0.7414718270301819, 1.2672522068023682, -0.017295073717832565, -2.1520955562591553, 0.10849040746688843, -0.6922627091407776, 0.7284257411956787, -1.012137532234192, 0.025222215801477...
func (o *ServeBuildTypesInProjectParams) WithFields(fields *string) *ServeBuildTypesInProjectParams { o.SetFields(fields) return o }
[ -0.8508906960487366, 1.0887682437896729, 0.14635790884494781, -0.14513272047042847, 0.26274803280830383, 1.1647666692733765, 0.9059937000274658, -0.16949623823165894, -1.587638020515442, -0.07905154675245285, -0.7668980956077576, -0.11945302784442902, -1.0937728881835938, 0.033940054476261...
func (o *ServeBuildTypesInProjectParams) SetFields(fields *string) { o.Fields = fields }
[ -1.0732448101043701, 1.0211851596832275, 0.24525722861289978, -0.07190797477960587, 0.393125057220459, 1.3062416315078735, 1.0400793552398682, 0.4452808201313019, -1.9314401149749756, 0.21842528879642487, -1.4062410593032837, 0.06355270743370056, -1.4892855882644653, 0.2716350257396698, ...
func (o *ServeBuildTypesInProjectParams) WithProjectLocator(projectLocator string) *ServeBuildTypesInProjectParams { o.SetProjectLocator(projectLocator) return o }
[ -0.9811471104621887, 0.18197223544120789, 0.27097517251968384, 0.3171692490577698, -1.3295738697052002, 0.2639254629611969, 1.4202696084976196, -0.3921821117401123, -0.45621854066848755, 0.04235083609819412, -0.6904683709144592, -0.23029698431491852, -0.18901042640209198, 0.211332768201828...
func (o *ServeBuildTypesInProjectParams) SetProjectLocator(projectLocator string) { o.ProjectLocator = projectLocator }
[ -1.2044810056686401, 0.0792955756187439, 0.3063792288303375, 0.16014951467514038, -1.3469659090042114, 0.42619848251342773, 1.6558852195739746, -0.024953536689281464, -0.8239057660102844, 0.2865266501903534, -0.7701517939567566, -0.11176084727048874, -0.8554002046585083, 0.2887191772460937...
func (o *ServeBuildTypesInProjectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { if err := r.SetTimeout(o.timeout); err != nil { return err } var res []error if o.Fields != nil { // query param fields var qrFields string if o.Fields != nil { qrFields = *o.Fields } qFie...
[ -1.3431943655014038, 0.16496652364730835, 0.7994808554649353, -0.48132815957069397, 0.8797467350959778, 0.3781053423881531, 1.4452979564666748, 0.35125595331192017, -1.2473124265670776, 0.4616239368915558, -0.04290181025862694, 0.442599356174469, -0.8280397653579712, 0.2350526750087738, ...
func (c *client) GetClosedOrders(query *ClosedOrdersQuery) (*CloseOrders, error) { err := query.Check() if err != nil { return nil, err } qp, err := common.QueryParamToMap(*query) if err != nil { return nil, err } resp, err := c.baseClient.Get("/orders/closed", qp) if err != nil { return nil, err } var...
[ -1.2068555355072021, 0.7106277942657471, 0.5181376338005066, 0.592712938785553, 0.1028122752904892, -0.02903030253946781, -0.593891441822052, -1.2540494203567505, 0.022729195654392242, 0.0929301381111145, 0.2823987305164337, 0.6059680581092834, -1.2293355464935303, 0.8722661137580872, 0....
func GetNamedLogger(namespace string) NamedLogger { if logger, ok := namedLoggers[namespace]; ok { return logger } result := &logger{ namespace: &namespace, format: defaultLogger.format, timeFormat: defaultLogger.timeFormat, output: defaultLogger.output, } namedLoggers[namespace] = result re...
[ 0.05623406916856766, -0.3623085021972656, 0.5126287937164307, -0.9375492930412292, -0.7667791843414307, -0.3458073139190674, -1.877879023551941, -1.1819138526916504, 1.2597497701644897, -0.41516727209091187, -0.96419757604599, 0.5560815334320068, -0.786983847618103, 1.4110904932022095, 0...
func SetLevel(level Level) { loggingLevel = level }
[ -0.04462103918194771, 0.10164856165647507, 0.37579506635665894, 0.1363542675971985, -0.17397965490818024, 0.9431872367858887, -0.08105556666851044, 0.4538293480873108, -0.2837826907634735, -0.39905524253845215, -1.1411066055297852, 0.48865073919296265, -0.44372671842575073, 1.1611905097961...
func SetTimeFormat(format string) { *defaultLogger.timeFormat = format }
[ -0.0863092765212059, -0.22937220335006714, 0.35943153500556946, -0.1424746811389923, -0.3562701642513275, -0.3055579364299774, -0.6768680214881897, -0.5243948101997375, 0.4842282235622406, -0.1093216985464096, -0.9551352858543396, -0.27380913496017456, -0.8866863250732422, 1.97937572002410...
func SetHandler(w io.Writer) { output.output = w }
[ 0.5307788848876953, -0.5625807046890259, 0.15967115759849548, -0.1737465113401413, -0.42996400594711304, 0.38974639773368835, 1.1810839176177979, 0.9954607486724854, -1.014965295791626, -1.178067684173584, 0.22411590814590454, -0.7754848599433899, 0.7826316356658936, 0.8125807642936707, ...
func Log(lvl Level, msg ...interface{}) { log(defaultLogger, lvl, msg...) }
[ -0.24351713061332703, 0.6038593053817749, 0.3991449773311615, 1.3780574798583984, 0.23848703503608704, -0.11029443889856339, -0.2724090814590454, 0.4627927243709564, -0.6371238827705383, -0.6375359296798706, -1.4954893589019775, -0.0800897553563118, -0.38197198510169983, 1.3057329654693604...
func Logf(lvl Level, format string, a ...interface{}) { log(defaultLogger, lvl, fmt.Sprintf(format, a...)) }
[ -0.009802650660276413, -0.3948114216327667, 0.3543383777141571, 0.48400941491127014, 0.2954273819923401, -0.1297982633113861, -0.6993919610977173, 0.367022842168808, -0.7779324650764465, -0.7269224524497986, -0.717700183391571, 0.12942983210086823, 0.038944490253925323, 1.3272150754928589,...
func Debug(msg ...interface{}) { log(defaultLogger, DEBUG, msg...) }
[ 0.2836128771305084, 0.6746096014976501, 0.36674296855926514, 1.31722891330719, 0.9956005215644836, 0.2128838747739792, -0.3653069734573364, 0.22610925137996674, -0.31005364656448364, -0.5443091988563538, -0.4416143298149109, -0.27794235944747925, -0.17886541783809662, 1.524547815322876, ...
func Debugf(format string, a ...interface{}) { log(defaultLogger, DEBUG, fmt.Sprintf(format, a...)) }
[ 0.0038177967071533203, 0.5681081414222717, 0.5271252393722534, 0.5833421945571899, 0.47720062732696533, -0.5646641850471497, -0.8198096752166748, 0.2535768449306488, -0.8026598691940308, -0.9240701198577881, -0.10113949328660965, -0.4134107232093811, 0.3385639190673828, 1.5073126554489136,...
func Info(msg ...interface{}) { log(defaultLogger, INFO, msg...) }
[ 0.29455989599227905, 0.11127481609582901, 0.5035904049873352, 1.603611946105957, 0.7839513421058655, -0.04697474092245102, -0.2078978568315506, -0.08689191937446594, -1.1251236200332642, 0.02326943166553974, -0.7989382147789001, -0.13973699510097504, 0.11529085785150528, 2.0225489139556885...
func Infof(format string, a ...interface{}) { log(defaultLogger, INFO, fmt.Sprintf(format, a...)) }
[ 0.43159905076026917, -0.3884206712245941, 0.5357977151870728, 0.6489123702049255, 0.7140368819236755, -0.122221939265728, -0.4598226547241211, 0.2818569839000702, -0.5166531801223755, -0.564488410949707, 0.16460907459259033, 0.22130174934864044, 0.6389800906181335, 1.1504896879196167, 0....
func Warn(msg ...interface{}) { log(defaultLogger, WARNING, msg...) }
[ 0.303496778011322, 0.736283004283905, 0.44194886088371277, 1.5011591911315918, 0.6455096006393433, -0.1770021766424179, -0.7069168090820312, -0.2788257896900177, -0.4859062135219574, -0.5362721085548401, -0.4802175760269165, 0.23098376393318176, 0.4997250437736511, 1.290473461151123, -0....
func Warnf(format string, a ...interface{}) { log(defaultLogger, WARNING, fmt.Sprintf(format, a...)) }
[ 0.4634554386138916, 0.1305055469274521, 0.40087613463401794, 0.7979451417922974, 0.2995527684688568, -0.35675883293151855, -0.49477440118789673, 0.13768227398395538, -0.6781613230705261, -0.3083885610103607, 0.1559804230928421, 0.454832524061203, 0.7679595351219177, 0.8963284492492676, -...
func Fatal(msg ...interface{}) { log(defaultLogger, FATAL, msg...) }
[ 0.4101720452308655, 0.014202442020177841, 0.3690246641635895, 1.773963451385498, 0.8991909623146057, 0.621229887008667, -0.907564640045166, 0.19907352328300476, -0.3204699456691742, -0.3933292329311371, -0.1842663586139679, -0.013678855262696743, 0.06751404702663422, 1.3514515161514282, ...
func Fatalf(format string, a ...interface{}) { log(defaultLogger, FATAL, fmt.Sprintf(format, a...)) }
[ 0.5789991021156311, -0.278919517993927, 0.4205196499824524, 0.882167637348175, 0.3331722915172577, 0.10609400272369385, -0.5501605868339539, 0.20764167606830597, 0.06644590198993683, -0.5051483511924744, 0.3492431342601776, -0.0924067497253418, 0.5875398516654968, 1.098212718963623, 0.02...
func (s DescribeCasesInput) String() string { return awsutil.Prettify(s) }
[ 0.6768835783004761, 0.31710124015808105, 0.14830410480499268, -0.22670580446720123, -0.6252809762954712, 0.9438682794570923, 0.6577398777008057, -1.3857489824295044, 0.15517762303352356, -0.2638264298439026, 0.5902380347251892, 1.1806455850601196, 0.14557808637619019, 0.05742998421192169, ...
func (s *DescribeCasesInput) Validate() error { invalidParams := aws.ErrInvalidParams{Context: "DescribeCasesInput"} if s.MaxResults != nil && *s.MaxResults < 10 { invalidParams.Add(aws.NewErrParamMinValue("MaxResults", 10)) } if invalidParams.Len() > 0 { return invalidParams } return nil }
[ -0.19445182383060455, 1.4878897666931152, 0.5045543909072876, -0.06344618648290634, 0.6259154081344604, -0.0974455326795578, 0.08396760374307632, -0.6393560767173767, 0.07098741829395294, -0.3488585352897644, 0.9841675162315369, 0.1134367510676384, -0.6350456476211548, 1.2349525690078735, ...
func (s DescribeCasesOutput) String() string { return awsutil.Prettify(s) }
[ 1.1604702472686768, -0.29595667123794556, 0.18389669060707092, -0.20670823752880096, -0.9174666404724121, 0.15740953385829926, 0.797023594379425, -1.0912799835205078, -0.21189554035663605, -0.2570057511329651, 0.7467323541641235, 0.7437424063682556, 0.5487731099128723, -0.21446382999420166...
func (r DescribeCasesRequest) Send(ctx context.Context) (*DescribeCasesResponse, error) { r.Request.SetContext(ctx) err := r.Request.Send() if err != nil { return nil, err } resp := &DescribeCasesResponse{ DescribeCasesOutput: r.Request.Data.(*DescribeCasesOutput), response: &aws.Response{Request...
[ -0.8051333427429199, 0.6953775882720947, 0.313418984413147, 0.16737733781337738, -0.09605759382247925, 0.028157589957118034, -0.32556554675102234, -1.1907209157943726, 0.5873472690582275, -0.25868889689445496, 0.24263058602809906, 0.8013530969619751, -0.6477352976799011, 0.4009905457496643...
func (r *DescribeCasesResponse) SDKResponseMetdata() *aws.Response { return r.response }
[ 0.3880436420440674, 0.1720322221517563, 0.4364396929740906, -0.2359190732240677, -0.3591586649417877, 0.2540644407272339, -0.6573716998100281, -0.7878145575523376, 1.4570242166519165, -0.18434827029705048, 0.19420523941516876, 0.05629107728600502, -0.2684427797794342, -0.7235255241394043, ...
func (m *Message) MarshalJSON() ([]byte, error) { messageLocation := time.FixedZone("", m.TZ) utc := time.Unix(m.Time, 0) messageTime := utc.In(messageLocation).Format(time.RFC3339) return json.Marshal(&struct { ID string `json:"id"` Name string `json:"name"` Email string `json:"email"` Text string `js...
[ -0.3903924822807312, 0.001019024639390409, 0.5640409588813782, -0.35115325450897217, -0.1825532168149948, -0.15232791006565094, -0.4931055009365082, -0.18661503493785858, -0.38545912504196167, 0.058162640780210495, -1.0346612930297852, 0.8419809341430664, -0.6394685506820679, 0.87065559625...
func (m *Message) UnmarshalJSON(data []byte) error { type MessageAlias Message aux := &struct { Time string `json:"time"` *MessageAlias }{ MessageAlias: (*MessageAlias)(m), } if err := json.Unmarshal(data, &aux); err != nil { return err } messageTime, _ := time.Parse(time.RFC3339, aux.Time) _, timeOffse...
[ -0.45209836959838867, 0.7377887964248657, 0.6114468574523926, -1.3388396501541138, -0.37849533557891846, 0.14760291576385498, -0.05507618188858032, 0.10470031201839447, -0.1570596545934677, 0.4586837887763977, -0.45332852005958557, 0.13131274282932281, -0.17999571561813354, 1.1168817281723...
func Tag2Semver(tag string) *Semver { semver := &Semver{} re, _ := regexp.Compile("(\\d+).(\\d+).(\\d+)") subs := re.FindStringSubmatch(tag) semver.Major, _ = strconv.Atoi(subs[1]) semver.Minor, _ = strconv.Atoi(subs[2]) semver.Patch, _ = strconv.Atoi(subs[3]) return semver }
[ -0.43460145592689514, -1.6484872102737427, 0.5530391931533813, -0.9866912961006165, -0.817907989025116, -0.3939763009548187, 0.11592212319374084, -0.0624479241669178, -0.019946470856666565, -0.1930810660123825, -1.5414472818374634, -0.1078748106956482, 0.04809420555830002, -0.0128529490903...
func (s *Semver) Upgrade(cl *Changelog) { switch { case len(cl.Removed)+len(cl.Changed) > 0: s.Major++ s.Minor = 0 s.Patch = 0 case len(cl.Deprecated)+len(cl.Added)+len(cl.MissingDefination) > 0: s.Minor++ s.Patch = 0 case len(cl.Fixed)+len(cl.Security) > 0: s.Patch++ } }
[ -0.7296953797340393, -0.276802122592926, 0.3933981955051422, -0.22158899903297424, -0.352314829826355, -0.46545106172561646, -0.04255884513258934, 0.21473649144172668, 0.7386026382446289, 0.32711461186408997, -1.483975887298584, -0.2628227770328522, -0.04406654089689255, 0.4781107902526855...
func GetClusterAuth(ctx *pulumi.Context, args *GetClusterAuthArgs, opts ...pulumi.InvokeOption) (*GetClusterAuthResult, error) { var rv GetClusterAuthResult err := ctx.Invoke("aws:eks/getClusterAuth:getClusterAuth", args, &rv, opts...) if err != nil { return nil, err } return &rv, nil }
[ -0.801250696182251, 0.2784642279148102, 0.6951726078987122, 1.1144821643829346, 0.26929086446762085, 0.011036891490221024, 0.9682919979095459, 0.29967814683914185, 0.4683322608470917, 0.3087182641029358, 0.7169690132141113, 1.7103734016418457, -0.41306179761886597, -2.3406333923339844, 0...
func (api *API) GetFolders(ids []types.FolderID, params *parameters.GetFolders) (*types.Folders, error) { s := make([]string, 0, len(ids)) for _, id := range ids { s = append(s, string(id)) } path := fmt.Sprintf("/folders/%s", strings.Join(s, ",")) qp, err := query.Values(params) if err != nil { return nil, ...
[ -1.6414768695831299, 0.3529059886932373, 0.47628676891326904, 0.5839400291442871, 1.315247654914856, -0.09769323468208313, -0.036662641912698746, -1.0966957807540894, -0.5509015917778015, 0.1937655210494995, 0.40947017073631287, 0.570799708366394, -0.9987097382545471, 0.6025376319885254, ...
func ReadChatLogsArchive(fileName string) (*ChatLogsArchive, error) { r, err := zip.OpenReader(fileName) if err != nil && !errors.Is(err, os.ErrNotExist) { return nil, err } wf, err := os.Create(filepath.Join(os.TempDir(), fileName)) if err != nil { if r != nil { r.Close() } return nil, err } fmt.Pr...
[ 0.11039525270462036, -1.3756552934646606, 0.5839269161224365, -0.7220630645751953, -1.1352171897888184, 0.3059106469154358, 0.4850369393825531, 0.19460271298885345, -0.485344797372818, 0.2824666202068329, -0.12796229124069214, -0.02307169698178768, -0.5536590218544006, 0.16389350593090057,...
func (a *ChatLogsArchive) Close() error { if a.r != nil { _ = a.r.Close() } writtenFileName := a.wf.Name() err := a.w.Close() if err != nil { a.wf.Close() _ = os.Remove(writtenFileName) return fmt.Errorf("error closing .zip file %s: %w", a.wf.Name(), err) } err = a.wf.Close() if err != nil { _ = os...
[ -0.4954579770565033, -1.105310320854187, 0.9748849868774414, -0.5350959897041321, -0.4254542291164398, 0.08496871590614319, 1.4319813251495361, -0.1752042919397354, -0.4324924647808075, -0.22235499322414398, 0.6608468890190125, -0.21359993517398834, -0.6350833773612976, 0.500505268573761, ...
func (a *ChatLogsArchive) GetAccountNames() ([]string, error) { if a.r == nil { return nil, nil } var accountNamesMap = make(map[string]interface{}) for _, f := range a.r.File { // Take only .txt files. if filepath.Ext(f.Name) != ".txt" { continue } path := filepath.Dir(f.Name) // Take files from ...
[ -0.040230441838502884, -0.368347704410553, 0.9645442366600037, 0.9052841067314148, -0.32080283761024475, 0.36013492941856384, 0.8292761445045471, 0.1443423479795456, 0.2663354277610779, 0.08781767636537552, 0.30740633606910706, 0.4121344983577728, 0.015153557062149048, 0.8005093336105347, ...
func (a *ChatLogsArchive) ListChatLogFileNames(accountName string) (absolutePaths []string, relativePaths []string, err error) { if a.r == nil { return nil, nil, nil } var logFileNames []string for _, f := range a.r.File { // Take only .txt files. if filepath.Ext(f.Name) != ".txt" { continue } path :...
[ 0.41385018825531006, -1.0528428554534912, 0.9051104187965393, -0.17220601439476013, -0.5697548389434814, 0.23562784492969513, 0.1940416842699051, 0.3054339289665222, 0.16892918944358826, 0.6236459612846375, -0.7418805956840515, 0.07545651495456696, 0.4113113582134247, 0.8206873536109924, ...
func (a *ChatLogsArchive) ReadChatLog(accountName string, fileName string) (Messages, error) { if a.r == nil { return nil, nil } logFilePath := strings.Join([]string{accountName, fileName}, "/") f, err := a.r.Open(logFilePath) // Do not return error if file doesn't exists. if errors.Is(err, os.ErrNotExist) { ...
[ 0.22894568741321564, -0.6910768747329712, 0.7096700668334961, -0.12956619262695312, -0.6506084203720093, 0.23218131065368652, 0.2273533046245575, -0.24113529920578003, -0.7418012022972107, 0.6570026874542236, -0.11730581521987915, 0.06687711924314499, 0.0015023148152977228, 0.0908005461096...
func (a *ChatLogsArchive) WriteChatLog(accountName string, fileName string, messages Messages) error { logFilePath := strings.Join([]string{accountName, fileName}, "/") f, err := a.w.Create(logFilePath) if err != nil { return fmt.Errorf("error creating file %s: %w", logFilePath, err) } err = messages.Write(f) ...
[ 0.22298961877822876, -0.6357285976409912, 0.36652716994285583, -0.10124792903661728, 0.28602293133735657, 0.8936967849731445, 0.744616687297821, 0.33908024430274963, -0.9750382304191589, 0.24994441866874695, -0.8526868224143982, -0.08902489393949509, 0.17301972210407257, 0.1868166178464889...
func New(l *lexer.Lexer) *Parser { p := &Parser{ l: l, errors: []error{}, } p.Next() // Roll forward once to set the peek token p.Next() // Roll forward twice to make the first peek token the current token return p }
[ -0.04925764352083206, -0.6306669116020203, 0.2726714611053467, -0.4052775502204895, -1.305113673210144, -0.19205795228481293, -0.6668265461921692, -0.08451490104198456, -0.5156072378158569, -0.4619464576244354, -0.4428403675556183, 0.3834388256072998, 0.5293452143669128, 0.810784101486206,...