text
stringlengths
11
6.3k
embedding
listlengths
768
768
func (bc *Blockchain) GetBlock(hash []byte) (*Block, error) { // TODO(student) return nil, nil }
[ 0.28015273809432983, 1.0730602741241455, 0.7664338946342468, 1.5264828205108643, 0.844336748123169, -0.8049583435058594, 0.4425064027309418, -0.5712530612945557, 1.089038610458374, -0.6461729407310486, -0.9750969409942627, 0.7195346355438232, -0.9189491271972656, 0.29077136516571045, 0.7...
func (o *DeleteIPBlockSubnetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewDeleteIPBlockSubnetOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return re...
[ -0.0934089869260788, -0.7764171957969666, 1.045624017715454, 0.6063360571861267, -0.33873307704925537, -0.8860437273979187, 0.22713199257850647, -0.5253288149833679, 0.38938242197036743, 0.13795554637908936, 0.3951525092124939, -0.4134454131126404, -0.9712991714477539, -0.1996859461069107,...
func NewDeleteIPBlockSubnetOK() *DeleteIPBlockSubnetOK { return &DeleteIPBlockSubnetOK{} }
[ 0.3781733810901642, -0.1301487535238266, 0.492627888917923, 1.3944813013076782, -1.4606910943984985, -0.4793079197406769, -0.24650733172893524, 0.244315043091774, -0.4691958427429199, -0.5744293332099915, -0.8995147347450256, -0.036219749599695206, 0.6663510799407959, -0.4671156704425812, ...
func NewDeleteIPBlockSubnetBadRequest() *DeleteIPBlockSubnetBadRequest { return &DeleteIPBlockSubnetBadRequest{} }
[ 0.6158656477928162, -0.07909008860588074, 0.5214134454727173, 1.4023698568344116, -0.5367096662521362, -0.022707825526595116, -1.8801484107971191, -0.041897740215063095, -0.5357630848884583, -1.3268404006958008, -0.05078883469104767, 0.10959284007549286, -0.26253268122673035, 0.28206497430...
func NewDeleteIPBlockSubnetForbidden() *DeleteIPBlockSubnetForbidden { return &DeleteIPBlockSubnetForbidden{} }
[ 1.3277416229248047, 0.17659471929073334, 0.677568256855011, 1.630406379699707, -0.5542369484901428, 0.15634948015213013, -0.8194881677627563, -0.8758872151374817, -0.05262872204184532, -1.3753983974456787, -0.05173863098025322, 0.2581280767917633, 0.23774179816246033, -0.22825677692890167,...
func NewDeleteIPBlockSubnetNotFound() *DeleteIPBlockSubnetNotFound { return &DeleteIPBlockSubnetNotFound{} }
[ 0.5758633613586426, -0.9615084528923035, 0.11588891595602036, 1.1308014392852783, -0.2290600687265396, 0.5565988421440125, -0.31024882197380066, -0.2423325479030609, -0.1106714978814125, -1.1536365747451782, -0.2783176302909851, -0.2543399930000305, -0.10423695296049118, 0.3174257874488830...
func NewDeleteIPBlockSubnetConflict() *DeleteIPBlockSubnetConflict { return &DeleteIPBlockSubnetConflict{} }
[ 0.5066307783126831, -0.21937693655490875, 0.34216535091400146, 0.9151795506477356, -0.5146647095680237, 0.08714538812637329, -1.1230058670043945, -0.7409887909889221, 0.013925616629421711, -1.0703951120376587, 0.016977408900856972, -0.5105195641517639, -0.2780103087425232, 0.04177172854542...
func NewDeleteIPBlockSubnetPreconditionFailed() *DeleteIPBlockSubnetPreconditionFailed { return &DeleteIPBlockSubnetPreconditionFailed{} }
[ 0.3428122401237488, 0.31489241123199463, 0.05739669129252434, 0.8506152033805847, -0.9544053077697754, 0.8827836513519287, -0.34004777669906616, -0.08913899958133698, -0.37959393858909607, -1.049135446548462, 0.09179547429084778, -0.21818313002586365, 0.3440874218940735, 0.4955889582633972...
func NewDeleteIPBlockSubnetServiceUnavailable() *DeleteIPBlockSubnetServiceUnavailable { return &DeleteIPBlockSubnetServiceUnavailable{} }
[ -0.4118490219116211, -0.2524399757385254, 0.8018258213996887, 1.1407592296600342, -0.8330273628234863, 0.012841073796153069, -0.8504754304885864, 0.6218979954719543, 0.34890303015708923, -0.673923134803772, -0.38199812173843384, 0.19539958238601685, 0.4393569231033325, 0.04198813438415527,...
func (o *StationFacilityAPIControllerGet3203Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewStationFacilityAPIControllerGet3203OK() if err := result.readResponse(response, consumer, o.formats); err != nil { ...
[ 0.03582204505801201, -0.6264172196388245, 0.48712408542633057, 0.21929392218589783, 0.1554332673549652, -0.3781358003616333, -0.0013834290439262986, 0.1736176460981369, 0.4674444794654846, -0.09497381001710892, 0.9296839237213135, -0.5180648565292358, -0.9372113347053528, -0.23729433119297...
func NewStationFacilityAPIControllerGet3203OK() *StationFacilityAPIControllerGet3203OK { return &StationFacilityAPIControllerGet3203OK{} }
[ -0.0360393226146698, 0.8635492920875549, 0.2069827914237976, 0.503555417060852, 0.3927682638168335, 0.170633003115654, 0.7891366481781006, 0.39071857929229736, -0.31771981716156006, 0.1663423478603363, 0.17162130773067474, 0.23749105632305145, 0.016133738681674004, -0.30286678671836853, ...
func NewStationFacilityAPIControllerGet3203Status299() *StationFacilityAPIControllerGet3203Status299 { return &StationFacilityAPIControllerGet3203Status299{} }
[ 0.27536165714263916, 0.3769938349723816, 0.10208971053361893, 0.4465906322002411, 0.44524893164634705, 0.1636512279510498, 0.4942045509815216, 0.2955557703971863, 0.5527114868164062, -0.8722458481788635, 0.673738956451416, -0.28230270743370056, -0.04982532188296318, 0.08976595848798752, ...
func GetPort() string { return fmt.Sprintf(":%d", viper.GetInt(port)) }
[ 0.10383355617523193, -0.1116546243429184, 0.6153676509857178, -0.026715653017163277, 1.0958549976348877, 0.18814316391944885, -0.3344476819038391, -0.5073407888412476, 0.014513658359646797, 0.20802457630634308, 0.24063390493392944, 0.08652304112911224, -0.5143532752990723, -0.3288545906543...
func (c Crawler) getPage(url string) (io.ReadCloser, error) { res, err := http.Get(url) if err != nil { return nil, err } if res.StatusCode != 200 { return nil, errors.New("Page not available") } return res.Body, err }
[ -0.35584867000579834, 0.3281310796737671, 0.6588963866233826, 0.16416671872138977, 0.06707692891359329, -0.06531508266925812, -0.24313826858997345, -0.1491127759218216, -0.36366721987724304, 0.4011697769165039, 1.1892517805099487, -0.28957828879356384, -0.9103178977966309, 0.82144999504089...
func (c Crawler) getHTMLDoc(body io.ReadCloser) (*goquery.Document, error) { doc, err := goquery.NewDocumentFromReader(body) if err != nil { return nil, err } return doc, nil }
[ 0.45563146471977234, 1.0962579250335693, 0.7221829295158386, -0.20630832016468048, 0.0067749349400401115, 0.9764583706855774, 0.671414852142334, 0.10638685524463654, -0.6275819540023804, -0.17662306129932404, 0.9842243790626526, 0.7496241927146912, -0.08039147406816483, 0.6395982503890991,...
func (c Crawler) getNodeText(doc *goquery.Document, ref string) string { return doc.Find(ref).Text() }
[ -0.03130185231566429, 0.5221136212348938, 0.3711886405944824, -0.9048148989677429, -0.057857695966959, -0.432822585105896, -0.1878514140844345, -0.7069123387336731, 0.10978442430496216, 1.5044447183609009, 0.5360088348388672, 0.30495500564575195, -0.46835362911224365, 0.4204544425010681, ...
func (UserGender) EnumDescriptor() ([]byte, []int) { return file_user_copy_proto_rawDescGZIP(), []int{0} }
[ -0.7473771572113037, 0.3640263080596924, 0.30973318219184875, 0.3317606449127197, -0.6105828881263733, 0.19846324622631073, 0.6832723021507263, 0.19513481855392456, -0.029228053987026215, 0.07377926260232925, -1.2928709983825684, 0.7379580140113831, -0.36025765538215637, 1.3710886240005493...
func (*User) Descriptor() ([]byte, []int) { return file_user_copy_proto_rawDescGZIP(), []int{0} }
[ -0.9081743955612183, 0.07355017960071564, 0.5368984937667847, 0.7024940848350525, -0.8121595978736877, 0.06281710416078568, 1.0142197608947754, 0.27047207951545715, -0.18671321868896484, -0.7312307953834534, -0.8611248135566711, 0.18593096733093262, 0.5085130333900452, 0.7149755954742432, ...
func (*UserList) Descriptor() ([]byte, []int) { return file_user_copy_proto_rawDescGZIP(), []int{1} }
[ -0.8451734185218811, 0.5620896816253662, 0.2615513503551483, 0.8172446489334106, -0.548311173915863, -0.2604339122772217, 0.5756427645683289, 0.9958176016807556, 0.12379293143749237, 0.45160892605781555, -1.4678821563720703, 0.20108652114868164, 0.041080132126808167, 0.8427191972732544, ...
func newOtlpReceiver(cfg *Config, logger *zap.Logger) *otlpReceiver { r := &otlpReceiver{ cfg: cfg, logger: logger, } if cfg.HTTP != nil { r.httpMux = mux.NewRouter() } return r }
[ -0.11320791393518448, -0.8799620270729065, 0.32398122549057007, -1.1509466171264648, -0.9736040830612183, -0.2536158561706543, -0.9337014555931091, 0.7138113379478455, 0.6279307007789612, -0.11304230988025665, -0.24370327591896057, -0.6552875638008118, -0.48965591192245483, 0.5926154851913...
func (r *otlpReceiver) Start(_ context.Context, host component.Host) error { return r.startProtocolServers(host) }
[ -0.18088552355766296, -0.3501830995082855, 0.183725044131279, -0.9476966857910156, 0.24788765609264374, 0.13278065621852875, 0.10114799439907074, 0.45160505175590515, 0.5112082362174988, 0.36321109533309937, -0.8840681314468384, 0.5796231627464294, -0.5160197019577026, 0.09496676921844482,...
func (r *otlpReceiver) Shutdown(ctx context.Context) error { var err error if r.serverHTTP != nil { err = r.serverHTTP.Shutdown(ctx) } if r.serverGRPC != nil { r.serverGRPC.GracefulStop() } r.shutdownWG.Wait() return err }
[ -0.4473269283771515, -0.12296608090400696, 0.5175120830535889, -0.49904024600982666, 0.19481894373893738, 0.6210607290267944, 0.24662600457668304, 0.40624314546585083, 0.2882024943828583, 0.3079167604446411, 0.45964813232421875, -0.0614125020802021, -0.8396551012992859, 0.3361562192440033,...
func (v Values) Get(key string) string { if vs := v[key]; len(vs) > 0 { return vs[0] } return "" }
[ -0.253580242395401, 0.514851987361908, 0.18374821543693542, -0.27243250608444214, 0.38144347071647644, -0.5409716367721558, -1.4179446697235107, -0.2753867506980896, 0.11049211770296097, 0.6738659739494324, 0.6602028608322144, 0.6056838631629944, -0.11770723015069962, 0.14556275308132172, ...
func (v Values) Add(key, value string) { v[key] = append(v[key], value) }
[ -0.36489787697792053, -0.29490402340888977, 0.029075976461172104, -0.6161097884178162, -0.43658164143562317, 0.5406407713890076, -1.9510151147842407, 0.6782888174057007, 0.07300650328397751, 0.9044081568717957, 0.5588595867156982, 0.5350823998451233, 0.3781101405620575, 0.7304604053497314,...
func NewStreamsMetricsAPI(tableType TableType, api dynamodbstreamsiface.DynamoDBStreamsAPI) (*StreamsMetricsAPI, error) { if err := metrics.RegisterPrometheusCollectors(dynamoCollectors...); err != nil { return nil, trace.Wrap(err) } return &StreamsMetricsAPI{ DynamoDBStreamsAPI: api, tableType: tabl...
[ 0.20293983817100525, 0.10334412753582001, 0.15320441126823425, -0.13297013938426971, -0.3663742244243622, -0.2442917674779892, -0.050448380410671234, -1.2495707273483276, -0.1292884796857834, 0.8289246559143066, -0.5400029420852661, 0.1484604924917221, -0.40640363097190857, 1.4250042438507...
func Emptyfunction() { fmt.Println("Not empty") }
[ 0.26551374793052673, -0.6728368997573853, 0.30854424834251404, 0.4122665524482727, 0.6004927754402161, 0.6835728883743286, 0.499392032623291, 0.29133424162864685, -0.8431461453437805, 0.38392502069473267, -0.5237116813659668, 1.708277940750122, -0.7239774465560913, -0.7965244650840759, -...
func (q QueryFunc) Query(ctx context.Context, req Request) (tg.ChannelsChannelParticipantsClass, error) { return q(ctx, req) }
[ -0.06818096339702606, -0.7791969776153564, 0.18388184905052185, -0.4447333514690399, 0.7729549407958984, -0.06482402980327606, -0.8911116123199463, 0.5093493461608887, 0.44603294134140015, -0.7683607339859009, 1.0294443368911743, 0.4057307839393616, -0.1352883279323578, -0.3387674689292907...
func NewQueryBuilder(raw *tg.Client) *QueryBuilder { return &QueryBuilder{raw: raw} }
[ 0.156365767121315, -0.08981622010469437, 0.07549101859331131, 0.19956032931804657, -1.5235382318496704, 0.31715282797813416, -0.7909518480300903, 0.26129570603370667, 0.6189659833908081, -0.9888426661491394, -0.22108714282512665, -0.22488336265087128, 0.206092968583107, 0.3366929888725281,...
func (q *QueryBuilder) GetParticipants(paramChannel tg.InputChannelClass) *GetParticipantsQueryBuilder { b := &GetParticipantsQueryBuilder{ raw: q.raw, batchSize: 1, req: tg.ChannelsGetParticipantsRequest{ Filter: &tg.ChannelParticipantsRecent{}, }, } b.req.Channel = paramChannel return b }
[ -0.23540668189525604, -0.06348002701997757, 0.4987625777721405, -1.146746039390564, 0.5810682773590088, -0.23431245982646942, -0.01947406865656376, 0.783536434173584, 0.46709689497947693, -0.2786650061607361, 0.3283493220806122, 0.3670768141746521, -1.4500309228897095, -0.7173804044723511,...
func (b *GetParticipantsQueryBuilder) BatchSize(batchSize int) *GetParticipantsQueryBuilder { b.batchSize = batchSize return b }
[ 0.80804443359375, 0.16027358174324036, 0.20690040290355682, 0.2094094306230545, 0.09494759887456894, 0.09957189857959747, 0.17768700420856476, 1.5992169380187988, -0.30557602643966675, -1.2560688257217407, -0.6001113653182983, 0.15087181329727173, -1.244094967842102, -0.31206759810447693, ...
func (b *GetParticipantsQueryBuilder) Channel(paramChannel tg.InputChannelClass) *GetParticipantsQueryBuilder { b.req.Channel = paramChannel return b }
[ -0.5840132236480713, -0.24586699903011322, 0.15772010385990143, -0.4825112521648407, 1.0534037351608276, 0.9538983106613159, 0.6045882701873779, 1.2127152681350708, 0.620140016078949, -0.5859144330024719, 1.1155729293823242, 1.0429326295852661, -1.2052031755447388, -0.010444119572639465, ...
func (b *GetParticipantsQueryBuilder) Filter(paramFilter tg.ChannelParticipantsFilterClass) *GetParticipantsQueryBuilder { b.req.Filter = paramFilter return b }
[ 0.0003810376219917089, -0.7133632898330688, 0.22664594650268555, -0.6509514451026917, 0.2561735212802887, 0.33595016598701477, -0.03448805212974548, 1.1987704038619995, 0.3051893413066864, -0.21003398299217224, 0.596265435218811, 0.40814656019210815, -1.4721952676773071, 0.0294023621827363...
func (b *GetParticipantsQueryBuilder) Admins() *GetParticipantsQueryBuilder { b.req.Filter = &tg.ChannelParticipantsAdmins{} return b }
[ 0.3267567753791809, 0.12991395592689514, 0.13210900127887726, -1.193307876586914, 0.4988959729671478, -0.2026415318250656, -1.2390400171279907, 0.2118532955646515, 0.15772999823093414, -0.3744417130947113, 0.6888132095336914, 1.295271635055542, -1.6090234518051147, -0.6559706330299377, -...
func (b *GetParticipantsQueryBuilder) Banned(paramQ string) *GetParticipantsQueryBuilder { b.req.Filter = &tg.ChannelParticipantsBanned{ Q: paramQ, } return b }
[ 0.4189351201057434, -0.8444696068763733, 0.20440208911895752, -0.2184327244758606, 0.18186526000499725, 0.06414711475372314, 0.08585597574710846, 0.38902756571769714, 0.15173599123954773, -0.38169407844543457, 0.11492248624563217, 0.9998355507850647, -1.3334623575210571, -0.479088991880416...
func (b *GetParticipantsQueryBuilder) Bots() *GetParticipantsQueryBuilder { b.req.Filter = &tg.ChannelParticipantsBots{} return b }
[ 0.29503461718559265, 0.1396797001361847, 0.1924974024295807, -0.152718648314476, -0.06577087193727493, 0.4308980405330658, -0.42843490839004517, 0.6171318292617798, -0.2446993589401245, -0.7274318337440491, 0.4463260769844055, 0.48939815163612366, -1.261733055114746, -1.2300877571105957, ...
func (b *GetParticipantsQueryBuilder) Contacts(paramQ string) *GetParticipantsQueryBuilder { b.req.Filter = &tg.ChannelParticipantsContacts{ Q: paramQ, } return b }
[ -0.4770175516605377, -1.0445525646209717, 0.3505955934524536, -1.1190664768218994, 0.019617613404989243, -0.19247016310691833, -0.0011222142493352294, -0.014321461319923401, 0.6672083735466003, -0.32025933265686035, 0.6134780645370483, -0.01028934121131897, -1.2171459197998047, -0.46919584...
func (b *GetParticipantsQueryBuilder) Kicked(paramQ string) *GetParticipantsQueryBuilder { b.req.Filter = &tg.ChannelParticipantsKicked{ Q: paramQ, } return b }
[ 0.4256761074066162, -0.10331225395202637, 0.07227464020252228, -0.3529350161552429, 0.02225148305296898, 0.03835342824459076, 0.2534496784210205, 0.8693424463272095, 0.4867417514324188, 0.24074357748031616, -0.19870753586292267, 0.05695660784840584, -1.0894112586975098, -0.1860869228839874...
func (b *GetParticipantsQueryBuilder) Mentions(paramQ string, paramTopMsgID int) *GetParticipantsQueryBuilder { b.req.Filter = &tg.ChannelParticipantsMentions{ Q: paramQ, TopMsgID: paramTopMsgID, } return b }
[ -0.08016545325517654, -0.9656359553337097, 0.37268325686454773, -1.3292138576507568, 0.4272023141384125, -0.29641884565353394, -0.06971101462841034, 0.0028632567264139652, 0.0001193682401208207, 0.24099387228488922, 0.6738104224205017, 0.779268741607666, -1.5246422290802002, 0.305707722902...
func (b *GetParticipantsQueryBuilder) Recent() *GetParticipantsQueryBuilder { b.req.Filter = &tg.ChannelParticipantsRecent{} return b }
[ 0.04579313471913338, 0.3527875244617462, 0.4352773427963257, -0.704728901386261, 0.6152562499046326, -0.40964481234550476, -0.043141480535268784, 0.8046185374259949, -0.2254677563905716, -0.3991793096065521, 0.8806223273277283, 0.41752415895462036, -1.3997994661331177, -0.4440290033817291,...
func (b *GetParticipantsQueryBuilder) Search(paramQ string) *GetParticipantsQueryBuilder { b.req.Filter = &tg.ChannelParticipantsSearch{ Q: paramQ, } return b }
[ -0.18031255900859833, -0.2531906068325043, 0.10569296777248383, -1.1403656005859375, 0.1810121089220047, 0.2557583749294281, -0.10152371227741241, 0.5531278252601624, 0.39332711696624756, 0.0034686345607042313, 0.14980387687683105, 0.1757306456565857, -1.7534916400909424, -0.43236920237541...
func (b *GetParticipantsQueryBuilder) Query(ctx context.Context, req Request) (tg.ChannelsChannelParticipantsClass, error) { r := &tg.ChannelsGetParticipantsRequest{ Limit: req.Limit, } r.Channel = b.req.Channel r.Filter = b.req.Filter r.Offset = req.Offset return b.raw.ChannelsGetParticipants(ctx, r) }
[ -0.3402788043022156, -0.7703145742416382, 0.39726683497428894, -1.1258389949798584, 0.5908612012863159, -0.11785534769296646, -1.0224015712738037, 0.7046881318092346, 0.5911006331443787, -0.23470793664455414, 0.8904213905334473, 0.5601193904876709, -0.8976263403892517, -0.495320588350296, ...
func (b *GetParticipantsQueryBuilder) Iter() *Iterator { iter := NewIterator(b, b.batchSize) iter = iter.Offset(b.offset) return iter }
[ 0.8670641183853149, -0.9456193447113037, 0.25457465648651123, -0.8491607308387756, -0.19052639603614807, 0.708305299282074, 0.026810629293322563, 0.9163571000099182, -0.4766930341720581, -0.3397999703884125, 1.0502068996429443, 0.14920002222061157, -0.5740438103675842, -0.32629916071891785...
func (b *GetParticipantsQueryBuilder) ForEach(ctx context.Context, cb func(context.Context, Elem) error) error { iter := b.Iter() for iter.Next(ctx) { if err := cb(ctx, iter.Value()); err != nil { return err } } return iter.Err() }
[ 0.27138853073120117, 0.09390037506818771, 0.5531952977180481, 0.025055427104234695, 0.3110145628452301, 0.09209234267473221, 0.29793113470077515, -0.21100910007953644, 0.0881594642996788, 0.7502743601799011, 0.7236614227294922, -0.013546150177717209, -0.6650050282478333, -0.130382657051086...
func (b *GetParticipantsQueryBuilder) Count(ctx context.Context) (int, error) { iter := b.Iter() c, err := iter.Total(ctx) if err != nil { return 0, errors.Wrap(err, "get total") } return c, nil }
[ 0.3509029448032379, -0.5686331391334534, 0.6551514267921448, -0.7349618673324585, 0.5409665107727051, -0.1157580316066742, 0.4069529175758362, 0.28326278924942017, -0.2911931872367859, 0.34089043736457825, 0.09589216858148575, -0.6097034215927124, -0.7614468932151794, 0.11415387690067291, ...
func (b *GetParticipantsQueryBuilder) Collect(ctx context.Context) ([]Elem, error) { iter := b.Iter() c, err := iter.Total(ctx) if err != nil { return nil, errors.Wrap(err, "get total") } r := make([]Elem, 0, c) for iter.Next(ctx) { r = append(r, iter.Value()) } return r, iter.Err() }
[ -0.23652894794940948, -1.0542221069335938, 0.7269773483276367, -0.48702046275138855, 0.4223364293575287, 0.3376232087612152, 0.03833693265914917, -0.1314762979745865, 0.36169877648353577, 0.6417761445045471, 0.5102850794792175, 0.05971220135688782, -0.053227704018354416, 0.5351468920707703...
func IndexWrite(x *suffixarray.Index, w io.Writer) error
[ -0.2946971654891968, -0.4574187397956848, -0.011615767143666744, 0.3749230206012726, 0.34123358130455017, 0.13765382766723633, 1.0705960988998413, 0.20917834341526031, 0.3860591650009155, 0.33708953857421875, -0.8114904165267944, 0.6744757294654846, 0.5102828145027161, -0.6797289848327637,...
func New(data []byte) *suffixarray.Index
[ 0.3053570091724396, -1.0079725980758667, 0.07450494915246964, -0.11385218799114227, -0.9519408941268921, 0.05067642405629158, 0.8111492395401001, 0.27389395236968994, 0.3036136031150818, -0.8407266139984131, -1.416929006576538, 0.5432731509208679, 0.21525973081588745, 0.3337145447731018, ...
func IndexBytes(x *suffixarray.Index,) []byte
[ -0.041243355721235275, 0.35402026772499084, -0.0584322027862072, 0.31682267785072327, -0.6445555090904236, -0.20355547964572906, 0.12505070865154266, 0.0029254970140755177, 0.8433854579925537, 0.28976625204086304, -1.0199819803237915, 0.7978160381317139, -0.6627428531646729, -0.44895055890...
func IndexFindAllIndex(x *suffixarray.Index, r *regexp.Regexp, n int) [][]int
[ 0.4979163408279419, -0.5248358249664307, 0.35880595445632935, 0.007635405752807856, -0.39754176139831543, -0.11337288469076157, -0.13750796020030975, -0.10962255299091339, 0.8889411091804504, 0.4770110547542572, -0.7733508944511414, 0.9276576638221741, -0.10151112824678421, -0.225875750184...
func IndexLookup(x *suffixarray.Index, s []byte, n int) []int
[ -0.2294568121433258, -0.04847949370741844, 0.1270146667957306, -0.04017861187458038, -0.24473705887794495, -0.3436351418495178, 0.23612834513187408, 0.015306202694773674, 0.8881155252456665, 0.7870150804519653, -0.8630242347717285, 0.43607646226882935, 0.4187120199203491, -1.00325107574462...
func IndexRead(x *suffixarray.Index, r io.Reader) error
[ 0.6055474281311035, -0.9134544730186462, 0.06694485992193222, -0.14324750006198883, -0.6333334445953369, 0.7880734801292419, 0.4960716664791107, -0.18612973392009735, 0.28343382477760315, 0.3040657937526703, 0.10523953288793564, 1.3404310941696167, 0.33565738797187805, -1.0757235288619995,...
func MinimalFailingApplication() *nais.Application { app := &nais.Application{ TypeMeta: metav1.TypeMeta{ Kind: "Application", APIVersion: nais.GroupVersion.Identifier(), }, ObjectMeta: metav1.ObjectMeta{ Name: ApplicationName, Namespace: ApplicationNamespace, }, } err := app.ApplyDefa...
[ 0.04908334091305733, -0.3587433397769928, 0.27431997656822205, 0.2123887836933136, -0.7986828684806824, 0.5660769939422607, -0.6937275528907776, -0.3044262230396271, 0.1532776802778244, 0.08734842389822006, 0.09581506997346878, -0.1299537867307663, -0.42714107036590576, 0.13989955186843872...
func MinimalApplication() *nais.Application { app := &nais.Application{ TypeMeta: metav1.TypeMeta{ Kind: "Application", APIVersion: nais.GroupVersion.Identifier(), }, ObjectMeta: metav1.ObjectMeta{ Name: ApplicationName, Namespace: ApplicationNamespace, Labels: map[string]string{ "t...
[ 0.11223068833351135, -0.41234052181243896, 0.4919423460960388, -0.22041398286819458, -0.6298872828483582, 0.6159646511077881, -0.2777940034866333, -0.45762839913368225, 0.7827322483062744, 0.3440762460231781, 0.24237801134586334, 0.12891262769699097, 0.06100930646061897, -0.280840516090393...
func Similar(p *SimilarParams) { matches := findSimilarFiles(p) report(matches) }
[ 0.33792737126350403, 0.3189936876296997, 0.20354194939136505, 0.6199179887771606, 0.0579441674053669, 0.6561374664306641, 1.2294585704803467, 0.369418740272522, -0.9553882479667664, -0.12821520864963531, -0.6039401888847351, 0.02133176103234291, -1.214410424232483, 0.23337528109550476, -...
func (u *UniformIntDistribution) Gen() int { var r int64 if u.min == u.max { // occurs if a random number result is used which is already zero return u.max } big := big.NewInt(int64(u.max)) for { nBig, err := rand.Int(rand.Reader, big) if err != nil { panic(err) } r = nBig.Int64() if r >= int64(u.mi...
[ -1.2629168033599854, 0.3658783435821533, 0.5387904047966003, 0.009175599552690983, -0.016484199091792107, 0.5713836550712585, 0.3153769373893738, 0.6011857390403748, -0.5430916547775269, -0.9397401809692383, 0.08347228169441223, 0.20335793495178223, -0.37450045347213745, 0.3041985630989074...
func New() (crawl *Crawl) { c := &http.Client{ Transport: http.DefaultTransport, } c.Jar, _ = cookiejar.New(nil) crawl = &Crawl{ Client: c, mutex: new(sync.RWMutex), handlers: make(map[interface{}]Handler), closeCh: make(chan bool, 1), doneCh: make(chan bool, 1), } crawl.SetOptions(DefaultOpt...
[ -0.20605075359344482, -0.2577904760837555, 0.4365880787372589, 0.250343918800354, 0.3562278747558594, 0.13608892261981964, 0.7493419647216797, -0.4373511075973511, -0.6880844235420227, -0.2818683683872223, -0.41466468572616577, 0.264449805021286, -0.22470828890800476, 0.2814755141735077, ...
func (crawl *Crawl) SetOptions(opts *Options) { if opts == nil { return } // Compare queue capacity settings // Create new queue if settings are changed // Or current settings are empty if copts := crawl.Options; copts == nil || (opts.QueueCapacity != 0 && copts.QueueCapacity != opts.QueueCapacity) { // C...
[ -0.29393601417541504, 0.057881809771060944, 0.4299692213535309, -0.24862723052501678, 1.214273452758789, -0.35067516565322876, 0.9794631004333496, -0.376853883266449, 0.11784572154283524, -0.23375238478183746, 0.10778642445802689, -0.1676655113697052, -0.13328135013580322, 0.55952727794647...
func (crawl *Crawl) Do(req *Request) (resp *Response, err error) { // Get http.Request structure rq, err := req.HTTPRequest() if err != nil { return } // Copy default headers for k, v := range crawl.headers { if _, has := rq.Header[k]; !has { rq.Header.Set(k, v) } } // Make request r, err := crawl.C...
[ -0.3662932813167572, -0.04721975326538086, 0.8140585422515869, -0.04185715690255165, 1.1106096506118774, -0.011665516532957554, -0.18695293366909027, -1.288295865058899, -0.3385789394378662, 0.3793197572231293, 0.06164435297250748, -0.20776088535785675, -0.32642289996147156, -0.37357035279...
func (crawl *Crawl) Execute(req *Request) (resp *Response, err error) { // Make request resp, err = crawl.Do(req) if err != nil { return } // If request.Raw is not true - parse html if !req.Raw { err = resp.ParseHTML() if err != nil { return } } // Set request context if empty if req.Context == ni...
[ -0.7314099669456482, -0.25292089581489563, 1.0525683164596558, 0.44357019662857056, 0.9723926782608032, 0.08715493977069855, 0.09543798118829727, -0.5896162390708923, 0.2777487337589264, 0.12938112020492554, 0.11215776205062866, -0.8839617371559143, -0.29662907123565674, -0.009976942092180...
func (crawl *Crawl) Start() (err error) { defer func() { crawl.doneCh <- true }() var tick <-chan time.Time if crawl.Options.MaxRequestsPerMinute > 0 { tick = time.Tick(time.Minute / time.Duration(crawl.Options.MaxRequestsPerMinute)) } for crawl.Queue.Continue() { if tick != nil { <-tick } // Retu...
[ -0.3836318552494049, -0.08676702529191971, 0.6489629745483398, 0.6267989277839661, 0.7699915766716003, 0.1653997302055359, 0.022712623700499535, -0.0728636384010315, -0.725074827671051, -0.06797849386930466, 0.5530334711074829, 0.2702428102493286, -0.18323849141597748, 0.2132987529039383, ...
func (crawl *Crawl) Handler(name interface{}, h Handler) { crawl.mutex.Lock() crawl.handlers[name] = h crawl.mutex.Unlock() }
[ -0.29123762249946594, 0.11960309743881226, 0.10774552077054977, -0.0710158497095108, 0.3215336799621582, 0.5777358412742615, 0.9269015192985535, 0.3444674611091614, -0.21913044154644012, -0.6123201251029968, -1.1996049880981445, -0.2554593086242676, 0.07684651017189026, 0.1380912810564041,...
func (crawl *Crawl) GetHandler(name interface{}) Handler { crawl.mutex.RLock() defer crawl.mutex.RUnlock() return crawl.handlers[name] }
[ -0.2674618661403656, 0.21706505119800568, -0.03515611216425896, 0.41063064336776733, 0.3749285638332367, -0.1401434987783432, 0.9831609129905701, -0.9892371892929077, 0.0756254494190216, -0.5407320857048035, 0.3494221568107605, -0.4731454849243164, -0.9411628842353821, -0.02647433243691921...
func (crawl *Crawl) SetDefaultHeaders(headers map[string]string) { crawl.headers = headers }
[ -0.8686009049415588, -0.3026847243309021, 0.1333472728729248, 0.22880427539348602, 1.2144371271133423, 0.03352094441652298, -0.7204211354255676, -0.3804260790348053, -0.029727211222052574, -0.16614007949829102, -0.6648032665252686, -0.8345109224319458, -1.0076148509979248, 0.49670052528381...
func (crawl *Crawl) Done() (done <-chan bool) { return crawl.doneCh }
[ -0.23973311483860016, 0.7272118926048279, 0.5798721313476562, -0.014559783972799778, 1.1915647983551025, 0.1518653929233551, 0.4438449740409851, -0.4493856430053711, -0.512558102607727, -0.42489421367645264, -0.5826191306114197, -0.14276616275310516, -0.3746151030063629, 0.1046625301241874...
func (s Session) Public() Session { s.AdminID = "" // sanitize session return s }
[ -0.23492813110351562, 0.028178341686725616, 0.28257954120635986, -0.3308795988559723, -0.8767910599708557, 0.30937692523002625, -0.19326359033584595, -0.9523299336433411, -0.09631448239088058, -0.05666912719607353, -0.04669239744544029, 0.9944111108779907, 0.6819339394569397, 0.58236086368...
func (s Session) Response(adminID string) SessionResponse { return SessionResponse{ Session: s.Public(), IsAdmin: adminID == s.AdminID, } }
[ 0.3889910876750946, -1.068686842918396, -0.0011195455444976687, 0.28386783599853516, -0.43127861618995667, -0.5287659764289856, -0.03635672479867935, -1.2874397039413452, 2.2193586826324463, 0.864371120929718, -0.6626754403114319, 0.6514295935630798, -0.15523838996887207, 0.217821896076202...
func initCluster() (_ *cluster, cbChan <-chan Callback) { cb := make(chan Callback) c := &cluster{ nil, chan<- Callback(cb), make(map[Nid]*Node), make(map[Nid]*GossipNode), nil, sync.RWMutex{}, } return c, (<-chan Callback)(cb) }
[ 0.7281715869903564, 0.5688495635986328, 0.4537317156791687, -0.2827948033809662, 0.42124074697494507, -0.44194504618644714, 0.5245791673660278, -0.0474172942340374, 0.8123432993888855, -0.33438971638679504, -0.11340247094631195, 1.2410087585449219, -0.025431916117668152, 0.8173577189445496...
func (c *cluster) AddNode(newNode Node) error { return c.addNodeInternal(&newNode) }
[ -0.8377838134765625, 0.8471024632453918, 0.29966026544570923, 0.5508345365524292, 0.3091813623905182, 0.05969809740781784, -0.46958890557289124, -0.12717367708683014, 0.27363699674606323, 0.10767462104558945, 0.3163900673389435, 0.9059918522834778, -0.658650815486908, 0.3742632269859314, ...
func (c *cluster) handleGossipInternal(newGossip *GossipNode) error { gossip := c.gossip[newGossip.Nid] if gossip == nil { return fmt.Errorf("ReceiveGossip: node not found: %d", newGossip.Nid) } // update cluster to reflect state changes and/or quiet cycle max if shouldChangeState(gossip, newGossip) { ...
[ -0.2701467275619507, 0.2261161357164383, 0.6504751443862915, -0.5856997966766357, 0.2341131716966629, 0.1792066991329193, 0.1380133330821991, -0.38550740480422974, 0.4609822928905487, 0.10478359460830688, -0.27800261974334717, 0.6946586966514587, -0.1626916080713272, 0.42437052726745605, ...
func shouldChangeState(gossip *GossipNode, newGossip *GossipNode) bool { if gossip.State != newGossip.State { if gossip.StateCtr < newGossip.StateCtr { return true } else if gossip.StateCtr == newGossip.StateCtr { if gossip.State == NodeStateActive { return true } else if newGossip.S...
[ -0.4646522104740143, -0.1517685502767563, 0.7427796721458435, -0.012803363613784313, -0.37371984124183655, 0.18245357275009155, -0.5982586741447449, -0.3283213973045349, 0.4789397120475769, 0.19422471523284912, -0.4264489710330963, 0.9043903350830078, -0.051246922463178635, -0.300902366638...
func (c *cluster) IncrementQuietCycles() { c.lock.Lock() defer c.lock.Unlock() for nid, gossip := range c.gossip { // Failed and Inactive nodes are not incremented if gossip.State != NodeStateActive { continue; } // don't increment our own quiet value. will implicitly remain 0 if gossi...
[ -0.14253631234169006, 0.3411846458911896, 0.35971951484680176, -0.9071175456047058, 0.2187369018793106, -0.3651287257671356, 0.8077748417854309, -1.6425241231918335, 0.43957844376564026, -0.7940468788146973, -0.37732619047164917, 0.8103840947151184, -0.13331519067287445, 0.2453481405973434...
func (c *cluster) GenerateNid() Nid { c.lock.RLock() defer c.lock.RUnlock() var result Nid = Nid(rand.Uint32()) for ; c.nodes[result] != nil; result = Nid(rand.Uint32()) {} return result }
[ -0.751501739025116, 0.10084729641675949, 0.3411400020122528, -0.5293866395950317, 0.10006516426801682, 0.2234116643667221, 0.16459935903549194, -0.4227577745914459, -0.22885100543498993, -0.18816569447517395, -0.4742099940776825, -0.1380382776260376, -0.8789211511611938, 0.9184786081314087...
func (c *cluster) GetNode(nid Nid) (node *Node, err error) { c.lock.RLock() defer c.lock.RUnlock() clusterNode := c.nodes[nid] if clusterNode == nil { return nil, fmt.Errorf("GetActiveNode: node not found: %d", nid) } node = &Node{clusterNode.Name, clusterNode.Nid, clusterNode.GossipAddr, clusterNode....
[ 0.3642653226852417, 0.18536527454853058, 0.38358235359191895, -0.3690005838871002, 0.7676688432693481, -1.20223069190979, 0.12054143100976944, -1.1721924543380737, 0.7990388870239258, 0.2595299780368805, 0.6545293927192688, 0.9495192170143127, -0.6925078630447388, -0.6240708827972412, 0....
func (c *cluster) GetRandomActivePeer() (node *Node) { c.lock.RLock() defer c.lock.RUnlock() if c.self == nil { node = nil return node } activeNids := make([]Nid, 0, len(c.nodes)) for nid, node := range c.nodes { if nid != c.self.Nid && node.State == NodeStateActive { activeNids = append...
[ -0.32590025663375854, -0.8349947333335876, 0.7791892290115356, -0.758025586605072, -0.24141252040863037, 0.04033297300338745, -0.18919724225997925, -0.6870384812355042, 0.30087247490882874, 0.04919343814253807, 0.4001182019710541, 0.9508052468299866, -1.3361384868621826, -0.715599477291107...
func (c *cluster) GetAllNids() (result []Nid) { c.lock.RLock() defer c.lock.RUnlock() result = make([]Nid, 0, len(c.nodes)) for nid, _ := range c.nodes { result = append(result, nid) } return result }
[ -0.22489717602729797, -0.011047947220504284, 0.06312186270952225, 0.7246818542480469, 0.433040976524353, -0.04641324281692505, -0.5854532718658447, -0.45040780305862427, -0.47942915558815, -0.3861543834209442, -0.167653888463974, 1.5817790031433105, -1.1183695793151855, 0.6049196124076843,...
func (c *cluster) GetAllNodes() *[]Node { c.lock.RLock() defer c.lock.RUnlock() result := make([]Node, 0, len(c.nodes)) for _, n := range c.nodes { result = append(result, Node{n.Name, n.Nid, n.GossipAddr, n.RestAddr, n.State, n.StateCtr}) } return &result }
[ -0.21954229474067688, 0.03282720595598221, 0.3803326189517975, 0.5222530961036682, 1.0424795150756836, -0.4050256907939911, -0.6260426044464111, -0.2410077303647995, 0.49196523427963257, -0.053866997361183167, -0.06349188834428787, 1.1870193481445312, -1.2908687591552734, 0.026151485741138...
func (c *cluster) GetGossip() (gossip []GossipNode) { c.lock.RLock() defer c.lock.RUnlock() gossip = make([]GossipNode, 0, len(c.gossip)) for _, gossipNode := range c.gossip { gossip = append(gossip, *gossipNode) } return gossip }
[ -0.6842623353004456, 0.6014847755432129, 0.6486007571220398, 1.1896183490753174, 1.045670747756958, 0.09962204843759537, -0.41478174924850464, -0.49823442101478577, 0.06023367494344711, 0.3495121896266937, -0.45549941062927246, 1.1693050861358643, -0.9210366606712341, 0.07258863747119904, ...
func Cron(ctx cadence.Context, schedule *CronSchedule) error { cadence.GetLogger(ctx).Info("Cron started", zap.Int("Count", schedule.Count), zap.Duration("frequency", schedule.Frequency), zap.Strings("groups", schedule.Hostgroups)) activityCtx := cadence.WithActivityOptions(ctx, cadence.ActivityOptions{ Schedul...
[ 0.7625316381454468, -0.3596947193145752, 0.5341944694519043, 0.6984649896621704, 0.07955531030893326, -0.04135837033390999, 0.3799661099910736, 0.15410341322422028, -0.07209063321352005, -0.06641663610935211, -0.04947511479258537, 0.5501482486724854, -0.32381415367126465, -0.24471825361251...
func runScheduler(ctx cadence.Context, activityCtx cadence.Context, schedule *CronSchedule) error { return errors.New("not implemented") }
[ -0.9185536503791809, -0.9077580571174622, 0.5219921469688416, 0.6883621215820312, -0.659524142742157, 0.444309800863266, 0.25296899676322937, 0.4750683307647705, 0.24428902566432953, -0.4686753451824188, 0.34203457832336426, 0.1600877046585083, 0.08901800960302353, 0.5306398272514343, 0....
func (c *Client) CreatePlan(plan *CreatePlan) (*Plan, error) { resp := &Plan{} req, err := c.NewRequest("POST", fmt.Sprintf("%s%s", c.APIBase, "/v1/billing/plans"), plan) if err != nil { return nil, err } if err = c.SendWithBasicAuth(req, resp); err != nil { return nil, err } return resp, nil }
[ -0.9569836258888245, 0.7408885955810547, 0.4666416347026825, 0.5409922003746033, 0.4494243860244751, 0.2911839485168457, -0.27881959080696106, -0.6932998895645142, 0.4630647301673889, -0.5610082745552063, -1.2130669355392456, 1.0635147094726562, -1.1284739971160889, 0.26350903511047363, ...
func (c *Client) ListAllPlans(params *ListPlansParams) (*ListPlansResponse, error) { resp := &ListPlansResponse{} req, err := c.NewRequest("GET", fmt.Sprintf("%s%s", c.APIBase, "/v1/billing/plans"), nil) if err != nil { return nil, err } q := req.URL.Query() q.Add("product_id", params.ProductID) q.Add("page_...
[ -0.2609778940677643, 0.0011242517502978444, 1.0982211828231812, 0.5463388562202454, 0.02488189935684204, 0.149204820394516, -0.4367004930973053, -0.7532810568809509, 1.1545724868774414, 0.10069003701210022, -0.844609797000885, 1.2962130308151245, -0.8297039866447449, 0.9605655670166016, ...
func Len(input []byte) int { return len(input) * 8 }
[ 0.4572347402572632, -0.03667692095041275, -0.11598649621009827, 0.04985884577035904, 0.025541309267282486, 0.1747417151927948, 1.2023227214813232, 0.7187502980232239, 1.008483648300171, 0.15125200152397156, -1.2545175552368164, -0.060450781136751175, 0.09916575998067856, 0.2576756775379181...
func ShiftLeft(input []byte, shiftNum int) (result []byte, leftMostCarryFlag bool) { if shiftNum >= 1 { result = make([]byte, len(input)) copy(result, input) for i := 0; i < len(result); i++ { carryFlag := ((result[i] & 0x80) == 0x80) if i > 0 && carryFlag { result[i-1] |= 0x01 } else if i == 0 { ...
[ -0.22250637412071228, -0.08724547922611237, 0.5994021892547607, 0.6146796345710754, -0.10125505924224854, 0.5105173587799072, -0.020702889189124107, -0.4403504431247711, 0.9229816198348999, -0.3027508854866028, -0.4135579466819763, 0.03918096795678139, -1.3408411741256714, 1.01792788505554...
func ShiftRight(input []byte, shiftNum int) (result []byte, rightMostCarryFlag bool) { if shiftNum >= 1 { result = make([]byte, len(input)) copy(result, input) for i := len(result) - 1; i >= 0; i-- { carryFlag := ((result[i] & 0x01) == 0x01) if i < len(result)-1 && carryFlag { result[i+1] |= 0x80 }...
[ -0.5299195051193237, 0.16214494407176971, 0.9102771282196045, 0.9365839958190918, -0.6456873416900635, 0.37886446714401245, -0.2254781275987625, -0.7604397535324097, 0.29548588395118713, -0.5600332617759705, -0.2177608609199524, 0.07360289245843887, -1.3378794193267822, 0.9683143496513367,...
func SubBits(input []byte, startBitPos int, numOfBits int) (result []byte, resultPtr *[]byte, err error) { if numOfBits == 0 { numOfBits = Len(input) - startBitPos } if startBitPos < 0 { return nil, nil, errors.New("startBitPos must be >= 0") } endBitPos := startBitPos + numOfBits - 1 if endBitPos > Len(input...
[ -0.27665847539901733, 0.10569217801094055, 0.812351405620575, -0.35184386372566223, -0.712399423122406, -0.14168629050254822, 0.6991859674453735, -0.5068541169166565, 0.1652974933385849, 0.5687164664268494, -0.370659202337265, 0.8389548063278198, -0.9321451783180237, 0.09698677062988281, ...
func Bool(input []byte, startBitPos int) (result bool, resultPtr *bool, err error) { if Len(input)-startBitPos < 1 { return false, nil, errors.New("Input is less than 1 bit") } tmpArr, _, err := SubBits(input, startBitPos, 0) result = (tmpArr[0] & 0x80) != 0 return result, &result, err }
[ -0.0777762308716774, -0.038138821721076965, 0.6294023990631104, 0.9100231528282166, -0.8743972778320312, 1.0728600025177002, 1.3202669620513916, 0.20672230422496796, 0.09756775200366974, 0.10497051477432251, -0.8215211033821106, 0.7230209112167358, -0.5789337158203125, 0.26539525389671326,...
func Uint64(input []byte, startBitPos int) (result uint64, resultPtr *uint64, err error) { if Len(input)-startBitPos < 64 { return 0, nil, errors.New("Input is less than 64 bits") } tmpArr, _, err := SubBits(input, startBitPos, 64) result = binary.BigEndian.Uint64(tmpArr) return result, &result, err }
[ -0.5565123558044434, -0.001669964985921979, 0.5532606244087219, 1.1642884016036987, -0.15763141214847565, -0.2369644194841385, 1.1828670501708984, 0.19124656915664673, -0.046383265405893326, -0.05414879322052002, -0.017547879368066788, 0.023843931034207344, -0.4777565002441406, 0.156209021...
func Uint32(input []byte, startBitPos int) (result uint32, resultPtr *uint32, err error) { if Len(input)-startBitPos < 32 { return 0, nil, errors.New("Input is less than 32 bits") } tmpArr, _, err := SubBits(input, startBitPos, 32) result = binary.BigEndian.Uint32(tmpArr) return result, &result, err }
[ 0.1415749341249466, 0.22609151899814606, 0.6148710250854492, 0.22009317576885223, -0.46210041642189026, 0.7503191232681274, 0.5371396541595459, -0.4289258122444153, 0.008591560646891594, -0.14563806354999542, -0.35457491874694824, 0.294729620218277, -0.29468879103660583, 0.0314567722380161...
func Uint16(input []byte, startBitPos int) (result uint16, resultPtr *uint16, err error) { if Len(input)-startBitPos < 16 { return 0, nil, errors.New("Input is less than 16 bits") } tmpArr, _, err := SubBits(input, startBitPos, 16) result = binary.BigEndian.Uint16(tmpArr) return result, &result, err }
[ 0.3348442316055298, 0.16127191483974457, 0.528049111366272, 0.1907626986503601, -0.06644856184720993, 0.0509001724421978, 0.8099247217178345, -0.08437987416982651, -0.03773878887295723, 0.07270770519971848, -0.4841732680797577, 0.17803886532783508, -0.3533460795879364, -0.14127419888973236...
func Uint8(input []byte, startBitPos int) (result uint8, resultPtr *uint8, err error) { if Len(input)-startBitPos < 8 { return 0, nil, errors.New("Input is less than 8 bits") } tmpArr, _, err := SubBits(input, startBitPos, 8) result = tmpArr[0] return result, &result, err }
[ -0.4712548553943634, -0.1438382863998413, 0.31625476479530334, 0.5716120600700378, -0.5355899930000305, 0.49981972575187683, 1.0824373960494995, 0.24537450075149536, 0.527998685836792, 0.26889604330062866, 0.07433810085058212, 0.674182116985321, -0.8101254105567932, 0.032734744250774384, ...
func Int(input []byte, startBitPos int) (result int, resultPtr *int, err error) { i64, _, err := Uint64(input, startBitPos) result = int(i64) return result, &result, err }
[ -0.1573476642370224, -0.3308740258216858, 0.19085344672203064, 0.2872214615345001, -0.510412335395813, -0.2778272330760956, 1.1993870735168457, -0.08635083585977554, -0.3553837835788727, 0.29042157530784607, -0.4791105091571808, 0.2147001177072525, -0.29092252254486084, 0.47031906247138977...
func Byte(input []byte, startBitPos int) (result byte, resultPtr *byte, err error) { if Len(input)-startBitPos < 8 { return 0, nil, errors.New("Input is less than 8 bits") } tmpArr, _, err := SubBits(input, startBitPos, 8) result = tmpArr[0] return result, &result, err }
[ -0.40107113122940063, 0.052968453615903854, 0.5212053656578064, 0.8122372627258301, -0.2761472463607788, 0.13608628511428833, 1.1735032796859741, -0.35826990008354187, 0.39271819591522217, -0.11964140832424164, 0.2116881012916565, 1.1161314249038696, -0.8547882437705994, 0.2378972172737121...
func HexString(input []byte, startBitPos int, numOfBits int) (result string, resultPtr *string, err error) { if Len(input)-startBitPos < numOfBits { return "", nil, errors.New("Input is less than " + string(numOfBits) + " bits") } tmpArr, _, err := SubBits(input, startBitPos, numOfBits) result = hex.EncodeToStri...
[ -0.12082799524068832, 0.3738425374031067, 0.44895094633102417, 0.23683811724185944, -0.8737530708312988, 0.6278325319290161, 0.8615220785140991, -0.06244637444615364, 0.15926936268806458, 0.3559591472148895, -0.6865548491477966, -0.16699537634849548, -0.4083695709705353, 0.1297274082899093...
func String(input []byte, startBitPos int, numOfBits int) (result string, resultPtr *string, err error) { if Len(input)-startBitPos < numOfBits { return "", nil, errors.New("Input is less than " + string(numOfBits) + " bits") } tmpArr, _, err := SubBits(input, startBitPos, numOfBits) result = string(tmpArr) ret...
[ 0.3831082582473755, 0.08220873773097992, 0.381733775138855, 0.14906322956085205, -1.1517119407653809, 0.2510905861854553, 1.682161569595337, -1.3181263208389282, 0.0026932116597890854, 0.16263088583946228, -0.726874589920044, 0.6152374744415283, -0.8007991313934326, -0.10824459791183472, ...
func int64s(v int64) string { return strconv.FormatInt(v, 10) }
[ -0.6610184907913208, -0.06176673620939255, 0.15815632045269012, -1.508765697479248, -0.15174804627895355, -0.945156991481781, -1.0290571451187134, -0.3220471739768982, 0.7998367547988892, 1.0877989530563354, 0.19248278439044952, 0.6815395355224609, 0.01703205332159996, -0.07005194574594498...
func (c *Client) SetHTTPClient(httpClient HTTPClient) { c.httpClient = httpClient }
[ 0.6840090155601501, -0.41745221614837646, 0.07197526097297668, -0.23258867859840393, -0.5487655401229858, 0.7859619855880737, 0.5276400446891785, -0.1420924961566925, -0.18010202050209045, -0.3175828158855438, -0.6826075911521912, 0.5558552742004395, -0.40716132521629333, -0.23090431094169...
func (f Factory) Request(method string, arguments interface{}) (request Request) { request.Token = f.Token request.Method = method if arguments != nil { var err error request.Values, err = query.Values(arguments) must(err) } return request }
[ -1.0565407276153564, 0.5553107261657715, 0.3478029668331146, 0.22975455224514008, 0.50200355052948, -0.3294224441051483, -0.7504642009735107, -0.14508768916130066, -0.458099901676178, -0.5601229667663574, 0.9382179379463196, 1.069790244102478, 0.4954715073108673, -0.01794140227138996, -0...
func (a Auth) URL() string { u := url.URL{} u.Host = oauthHost u.Scheme = oauthScheme u.Path = oauthPath if len(a.RedirectURI) == 0 { a.RedirectURI = oauthRedirectURI } if len(a.ResponseType) == 0 { a.ResponseType = oauthResponseType } if len(a.Display) == 0 { a.Display = oauthDisplay } values := u.Q...
[ -0.5301192998886108, -0.5592110753059387, 0.2485220581293106, -0.27743014693260193, -0.2932624816894531, 0.2742935121059418, 0.39445412158966064, 0.06432898342609406, 1.2637020349502563, 0.3134877681732178, 0.7038728594779968, 0.7375142574310303, -0.005542291793972254, -0.220283642411232, ...
func New() *Client { c := new(Client) c.SetHTTPClient(defaultHTTPClient) resource := Resource{} resource.APIClient = c resource.RequestFactory = DefaultFactory c.Groups = Groups{resource} return c }
[ 0.018960468471050262, -0.8876620531082153, 0.10730953514575958, -0.34634727239608765, -0.35074013471603394, 0.05250125378370285, 0.4944233298301697, -0.3114745616912842, -0.756937563419342, -0.7887549996376038, 0.06654731929302216, 0.03814352676272392, -0.15647092461585999, -0.599588155746...
func Apps() *Command { cmd := &Command{ Command: &cobra.Command{ Use: "apps", Aliases: []string{"app", "a"}, Short: "Display commands for working with apps", Long: "The subcommands of `doctl app` manage your App Platform apps. For documentation on app specs used by multiple commands, see https:/...
[ 0.46699821949005127, 0.029547451063990593, 0.832068681716919, 0.2037312388420105, -0.24062536656856537, 0.3263106942176819, 0.17444618046283722, -0.4350898265838623, 0.2489204853773117, -0.3436773717403412, 0.053093936294317245, 0.041152045130729675, 0.7916250228881836, 0.848103404045105, ...