text
stringlengths
11
6.3k
embedding
listlengths
768
768
func Check(name string, hash, pass, salt []byte) (bool, error) { p, err := Hash(name, pass, salt) if err != nil { return false, err } if len(p) != len(hash) { return false, nil } for i, c := range hash { if c != p[i] { return false, nil } } return true, nil }
[ 0.17091357707977295, -0.16403615474700928, 0.6603062152862549, 1.0548064708709717, 0.2465709000825882, 0.8037927150726318, -0.7389689683914185, -0.04584135115146637, -0.60141921043396, 0.7017576694488525, -0.22995850443840027, -0.007432558573782444, -0.5597355365753174, 0.274091511964798, ...
func Hash(name string, pass, salt []byte) ([]byte, error) { if h, ok := simplepass[name]; ok { return h.Hash(pass, salt) } return nil, fmt.Errorf("unkown hash: %q", name) }
[ 0.03604244440793991, -0.0007973771425895393, 0.5541795492172241, 1.1606769561767578, -0.8438984751701355, 0.9429901838302612, -0.7948586344718933, 0.22332632541656494, -0.12435325980186462, 0.22472675144672394, -0.819186806678772, 0.706314742565155, -0.11307580024003983, -0.193400800228118...
func Salt(n int) ([]byte, error) { switch { case n == 0: n = 24 case n < 16: return nil, fmt.Errorf("insufficient salt length: %d", n) } p := make([]byte, n) _, err := rand.Read(p) if err != nil { return nil, err } return p, nil }
[ -0.5459445714950562, 0.38863545656204224, 0.5123956799507141, -0.8033162355422974, -0.702682375907898, 0.5372025370597839, -1.3444939851760864, -1.209620714187622, 0.9250555038452148, -0.46275728940963745, 0.04895526170730591, 0.2234865128993988, -0.40176403522491455, -0.2617761194705963, ...
func CheckString(name, hash, pass, salt string) (bool, error) { _hash, err := HashString(name, pass, salt) if err != nil { return false, err } return hash == _hash, nil }
[ -0.10194697231054306, -0.5184568762779236, 0.6590571999549866, 0.8096184134483337, -0.11803847551345825, 0.7353864312171936, -0.5989792943000793, -0.24393628537654877, -0.8201383948326111, 0.6012728810310364, -0.09742313623428345, -0.10564462095499039, 0.06693493574857712, -0.5573234558105...
func HashString(name, pass, salt string) (string, error) { _salt, err := decodeString(salt) if err != nil { return "", fmt.Errorf("invalid salt: %v") } p, err := Hash(name, []byte(pass), _salt) return encodeToString(p), err }
[ 0.318960577249527, -0.062482476234436035, 0.3314618468284607, -0.23367467522621155, -1.2871088981628418, 0.703456699848175, -1.2999755144119263, -0.6616976261138916, -0.5021560788154602, 0.8195510506629944, -0.3255666196346283, 0.5544455051422119, -0.1409517079591751, -1.0815107822418213, ...
func SaltString(n int) (string, error) { p, err := Salt(n) return encodeToString(p), err }
[ -1.0748748779296875, 0.7419703602790833, 0.16680558025836945, -0.5543434023857117, -0.5154553055763245, 0.3477989137172699, -0.9066309928894043, -1.4109399318695068, 0.3290693461894989, 0.5449802279472351, 0.04451071843504906, 0.3023380935192108, -0.15961700677871704, -0.19412553310394287,...
func (p *Point) Set(x, y float64) { p.Call("set", x, y) }
[ 0.006032055709511042, 0.2287050485610962, 0.10761131346225739, 0.16879123449325562, 0.3092564344406128, 0.8435688614845276, -0.9048469662666321, -1.4453675746917725, -0.7425463199615479, 0.4840816557407379, -0.12896431982517242, 0.6925944089889526, 0.4805317521095276, 0.21122534573078156, ...
func MakeHttpHandler(ctx context.Context, endpoints endpoint.StringEndpoints, zipkinTracer *gozipkin.Tracer, logger log.Logger) http.Handler { r := mux.NewRouter() zipkinServer := zipkin.HTTPServerTrace(zipkinTracer, zipkin.Name("http-transport")) options := []kithttp.ServerOption{ kithttp.ServerErrorLogger(logg...
[ 0.14718692004680634, -0.018480725586414337, 0.818048894405365, 0.006749688182026148, -0.08931149542331696, 0.5588818788528442, -0.06782504916191101, -0.33001354336738586, -0.15786755084991455, 0.022085772827267647, 0.21623806655406952, -0.23267672955989838, 0.2735845744609833, -0.316969752...
func decodeStringRequest(_ context.Context, r *http.Request) (interface{}, error) { vars := mux.Vars(r) requestType, ok := vars["type"] if !ok { return nil, ErrorBadRequest } pa, ok := vars["a"] if !ok { return nil, ErrorBadRequest } pb, ok := vars["b"] if !ok { return nil, ErrorBadRequest } return ...
[ -1.175950527191162, -0.8578048348426819, 0.5940961837768555, -0.006867513991892338, -0.4022144675254822, -0.3989000916481018, -0.7656477689743042, -0.6139527559280396, 0.06048808991909027, 0.11053193360567093, 0.851739764213562, 0.22263003885746002, -0.8132721781730652, -0.2959099113941192...
func encodeStringResponse(ctx context.Context, w http.ResponseWriter, response interface{}) error { w.Header().Set("Content-Type", "application/json;charset=utf-8") return json.NewEncoder(w).Encode(response) }
[ -0.30280959606170654, -1.2706705331802368, 0.11818744242191315, -0.5945712924003601, -0.046884793788194656, -0.5379971265792847, -0.5891153216362, -1.0730257034301758, 0.35495927929878235, 1.253814697265625, -0.3803236782550812, -0.24037742614746094, -0.11691489815711975, -1.00917279720306...
func newResponse(total, perPage, currentPage, lastPage int) *Response { r := &Response{ Total: total, PerPage: perPage, CurrentPage: currentPage, LastPage: lastPage, } // Set the next page. if r.LastPage > r.CurrentPage { nextPage := r.CurrentPage + 1 r.NextPage = &nextPage } // Set the...
[ 0.19392910599708557, -0.8202303647994995, 0.39284849166870117, -0.3207832872867584, -0.4301736056804657, -0.9609850645065308, 0.3023684322834015, -0.5403876900672913, 0.7862639427185059, 0.08518747985363007, 0.5279086828231812, -0.5696588754653931, -0.4804016649723053, -0.4647418260574341,...
func UpdateRuleForPort(p Port) { input := AuthorizeSecurityGroupIngressInput(p) amazonSvc := GetSvc() _, err := amazonSvc.AuthorizeSecurityGroupIngress(input) if err != nil { if aerr, ok := err.(awserr.Error); ok { switch aerr.Code() { case "InvalidPermission.Duplicate": // If this triggers, nothing ...
[ 0.08380232751369476, -0.03154829889535904, 0.5791289210319519, -0.08052954077720642, 0.43714725971221924, 0.5116315484046936, 0.18156224489212036, 0.1420871466398239, 0.1019948273897171, 0.20216605067253113, 0.8127886652946472, 0.7281967997550964, -0.7194494605064392, 0.12938161194324493, ...
func AuthorizeSecurityGroupIngressInput(p Port) *ec2.AuthorizeSecurityGroupIngressInput { config := GetConfig() ipa := config.HomeIP groupID := config.GroupID return &ec2.AuthorizeSecurityGroupIngressInput{ GroupId: aws.String(groupID), IpPermissions: []*ec2.IpPermission{ { FromPort: aws.Int64(p.Port)...
[ -0.4679982662200928, -0.5126041769981384, 0.5115624070167542, 0.24510157108306885, -0.9237514734268188, 0.6163848638534546, 0.5426198244094849, -0.23239532113075256, 0.1481771022081375, 0.07158692926168442, 0.7385032176971436, 0.43789008259773254, -1.3078645467758179, -0.7502050399780273, ...
func (ck *Clerk) Get(key string) string { // You will have to modify this function. args := GetArgs{ ClerkId: ck.clerkId, Key: key, } if !ck.reSendFlag { ck.opId++ } args.OpId = ck.opId reply := GetReply{} ok := ck.servers[ck.leader].Call("KVServer.Get", &args, &reply) if ok { switch reply.Err { ...
[ -0.8152891993522644, 0.18908242881298065, 0.8927924633026123, 0.13251057267189026, -0.4079935848712921, -0.3381369113922119, -0.5999718904495239, -0.03438805416226387, -0.11977165192365646, 0.31226712465286255, 0.3581540286540985, 0.8177497982978821, -0.8701781630516052, 0.592284083366394,...
func (ck *Clerk) PutAppend(key string, value string, op string) { // You will have to modify this function. args := PutAppendArgs{ ClerkId: ck.clerkId, Key: key, Value: value, Op: op, } if !ck.reSendFlag { ck.opId++ } args.OpId = ck.opId reply := PutAppendReply{} ok := ck.servers[ck.leader]...
[ -0.5391442179679871, 0.3860059678554535, 0.8622787594795227, 0.4433543384075165, -1.0513664484024048, 0.10338009893894196, -0.4079533517360687, 0.439005583524704, 0.19748510420322418, 1.0093629360198975, -0.07522113621234894, 0.3500134348869324, -0.8460595607757568, 0.9525866508483887, 0...
func NewTokenCredentialAdapter(credential azcore.TokenCredential, scopes []string) autorest.Authorizer { tkPolicy := runtime.NewBearerTokenPolicy(credential, scopes, nil) return &policyAdapter{ pl: runtime.NewPipeline("azidext", "v0.4.0", runtime.PipelineOptions{ PerRetry: []policy.Policy{tkPolicy, nullPolicy{}}...
[ 0.6245887279510498, -0.9635090231895447, 0.26249054074287415, -0.7263142466545105, -1.503814935684204, 0.12077596783638, -0.7421079874038696, -0.21717925369739532, 0.7463713884353638, 0.6442984938621521, 0.4548913538455963, 1.3270630836486816, -0.5645285248756409, 0.02958979830145836, -0...
func (ca *policyAdapter) WithAuthorization() autorest.PrepareDecorator { return func(p autorest.Preparer) autorest.Preparer { return autorest.PreparerFunc(func(r *http.Request) (*http.Request, error) { r, err := p.Prepare(r) if err != nil { return r, err } // create a dummy request req, err := run...
[ -0.32133862376213074, -0.2101656049489975, 0.6737706065177917, 0.3297785222530365, -0.6878219246864319, -0.8088042736053467, -0.37120750546455383, -0.1951286941766739, 1.2565975189208984, 0.528863251209259, 0.5436793565750122, 0.4155338406562805, 1.183350920677185, -0.4686773419380188, 0...
func NewDefaultAzureCredentialAdapter(options *DefaultAzureCredentialOptions) (autorest.Authorizer, error) { if options == nil { options = &DefaultAzureCredentialOptions{ Scopes: []string{DefaultManagementScope}, } } cred, err := azidentity.NewDefaultAzureCredential(options.DefaultCredential) if err != nil {...
[ -0.08759722113609314, -0.24813461303710938, 0.33103108406066895, 0.6999303102493286, -0.5944647192955017, 0.00991771463304758, -0.04908996447920799, -0.10507559776306152, 0.412949800491333, 0.6178794503211975, 0.343095600605011, 0.08277875930070877, -1.3246136903762817, 0.7758819460868835,...
func New() (chp *Printer) { chp = &Printer{ StringChannel: make(chan string), EverythingChannel: make(chan interface{}), TriggerChannel: make(chan bool), quit: make(chan bool, 1), done: make(chan bool, 1), } go func() { for { select { case msg := <-chp.StringChannel: fmt.Println(msg) ...
[ 0.21078291535377502, -1.580923318862915, 0.45165109634399414, -0.6920351386070251, -0.25849369168281555, -0.31145572662353516, -0.30202800035476685, -1.0130008459091187, -0.9877587556838989, -0.09159161150455475, 0.016825664788484573, 0.9985583424568176, -0.24133670330047607, 0.14323011040...
func (chp *Printer) Print(msg string) { chp.StringChannel <- msg }
[ 0.4677439033985138, -0.22615741193294525, 0.2700203061103821, -0.9491920471191406, 0.46182456612586975, 0.5906490087509155, -0.37369483709335327, -0.8725904822349548, -0.6781445145606995, -0.7736844420433044, -0.07862751185894012, 1.430873990058899, -1.7647508382797241, 1.16270911693573, ...
func randomWinner(src rand.Source, input []string) string { r := rand.New(src) return input[r.Intn(len(input))] }
[ -0.7014026045799255, -0.23319265246391296, 0.38651809096336365, 0.09225785732269287, -1.1015158891677856, 0.40336939692497253, -0.08428198099136353, -0.054759830236434937, 1.1273748874664307, -0.24696333706378937, -0.3524775803089142, 0.6436961889266968, -0.36394914984703064, 0.25675177574...
func (ctx *Context) GroupsHandler(w http.ResponseWriter, r *http.Request) { uid := getCurrentUser(w, r) if uid < 0 { return } if r.Method != "POST" && r.Method != "GET" { http.Error(w, errUnsuportMethod, http.StatusMethodNotAllowed) return } if r.Method == "POST" { // Only support JSON body if !isCon...
[ -1.02932608127594, 0.6788616180419922, 0.7888136506080627, -0.014019586145877838, 0.15434318780899048, 0.6213173866271973, 0.2611730396747589, -0.3415856659412384, 0.2607751190662384, -0.4088159203529358, 0.26258373260498047, -0.40741175413131714, -0.46968865394592285, 0.8719988465309143, ...
func (ctx *Context) SpecificGroupsHandler(w http.ResponseWriter, r *http.Request) { uid := getCurrentUser(w, r) if uid < 0 { return } // Only support GET PATCH DELETE method if r.Method != "GET" && r.Method != "PATCH" && r.Method != "DELETE" && r.Method != "PUT" { http.Error(w, errUnsuportMethod, http.Status...
[ -0.9020420908927917, 0.06148228049278259, 0.8038797974586487, 0.23923219740390778, -0.5191947817802429, -0.1130400002002716, 0.3589537441730499, -0.28825643658638, 0.01420657616108656, 0.1225731298327446, 0.7680250406265259, 0.29489633440971375, -0.5966396331787109, 0.42404451966285706, ...
func (ctx *Context) GroupsMeetingHandler(w http.ResponseWriter, r *http.Request) { uid := getCurrentUser(w, r) if uid < 0 { return } // Only support GET POST method if r.Method != "GET" && r.Method != "POST" { http.Error(w, errUnsuportMethod, http.StatusMethodNotAllowed) return } // parse group id urlI...
[ -1.3278443813323975, 0.34120678901672363, 1.0100418329238892, 0.4573791027069092, -0.34774693846702576, 0.4374147951602936, 0.654378354549408, -0.45053115487098694, -0.1886516958475113, 0.47182244062423706, 0.4020047187805176, -0.6581133008003235, -0.5491717457771301, 0.9288718700408936, ...
func (ctx *Context) SpecificGroupsMeetingHandler(w http.ResponseWriter, r *http.Request) { uid := getCurrentUser(w, r) if uid < 0 { return } if r.Method != "GET" && r.Method != "PATCH" && r.Method != "DELETE" && r.Method != "PUT" { http.Error(w, errUnsuportMethod, http.StatusMethodNotAllowed) return } //...
[ -0.8787053823471069, -0.13856753706932068, 1.0473597049713135, 0.13757358491420746, -0.7330731153488159, -0.10972222685813904, 0.39651983976364136, -0.02709077298641205, 0.042086344212293625, 0.9934453368186951, 0.35361629724502563, 0.19886933267116547, -0.5241072177886963, 0.3995235264301...
func (ctx *Context) ScheduleHandler(w http.ResponseWriter, r *http.Request) { // Only support GET POST method if r.Method != "GET" && r.Method != "POST" && r.Method != "DELETE" { http.Error(w, errUnsuportMethod, http.StatusMethodNotAllowed) return } // parse meeting id urlID := path.Base(path.Dir(r.URL.Path))...
[ -0.803950846195221, -0.0025844131596386433, 1.0519049167633057, 0.6850357055664062, -0.27801939845085144, 0.18555550277233124, -0.049410611391067505, 0.09117239713668823, 0.513563334941864, 0.4087846577167511, 0.4419989585876465, -0.41011467576026917, -0.6390966176986694, 0.369506061077117...
func (ctx *Context) SpecificScheduleHandler(w http.ResponseWriter, r *http.Request) { // Only support DELETE, PATCH method if r.Method != "DELETE" && r.Method != "PATCH" { http.Error(w, errUnsuportMethod, http.StatusMethodNotAllowed) return } // parse schedule id urlID := path.Base(r.URL.Path) sid := getIDfr...
[ -0.07669024914503098, -0.6411861181259155, 0.9559310674667358, 0.3698108494281769, -0.6104357838630676, -0.022589460015296936, -0.3075355887413025, 0.3148716688156128, 0.8787807822227478, 0.947792649269104, 0.7263463735580444, 0.4401399493217468, 0.1420753300189972, 0.3649720549583435, -...
func (c *Collection) ImportCSV(buf io.Reader, idCol int, skipHeaderRow bool, overwrite bool, verboseLog bool) (int, error) { var ( fieldNames []string key string err error ) r := csv.NewReader(buf) r.FieldsPerRecord = -1 r.TrimLeadingSpace = true lineNo := 0 if skipHeaderRow == true { lineN...
[ 0.14264656603336334, 0.06847749650478363, 0.929227888584137, -0.5848326683044434, -0.7830978631973267, -0.2681747078895569, 0.543477475643158, 0.4175448715686798, -0.6862606406211853, 0.7886746525764465, -0.4678455591201782, 0.24471019208431244, -0.3144621253013611, -0.09718252718448639, ...
func (c *Collection) ExportCSV(fp io.Writer, eout io.Writer, f *DataFrame, verboseLog bool) (int, error) { //, filterExpr string, dotExpr []string, colNames []string, verboseLog bool) (int, error) { keys := f.Keys[:] dotExpr := f.DotPaths colNames := f.Labels // write out colNames w := csv.NewWriter(fp) if err ...
[ -0.334785521030426, -0.04850228503346443, 0.8364878296852112, 0.3531082570552826, -0.2567821145057678, -0.41208067536354065, 1.104106068611145, -0.009222825989127159, -0.15637719631195068, 0.7148143649101257, 0.48823848366737366, 0.264620304107666, 0.31611067056655884, -0.01739739812910556...
func (c *Collection) ExportTable(eout io.Writer, f *DataFrame, verboseLog bool) (int, [][]interface{}, error) { keys := f.Keys[:] dotExpr := f.DotPaths colNames := f.Labels var ( cnt int row []interface{} readErrors int dotpathErrors int ) table := [][]interface{}{} // Copy column...
[ -0.42937690019607544, -0.25852081179618835, 0.8837767839431763, 0.17857523262500763, -0.3337399363517761, -0.530723512172699, 1.2891889810562134, 0.05137438327074051, -0.7242434024810791, 1.066562294960022, 0.2174600213766098, -0.1527806520462036, 0.4210861921310425, 0.34623613953590393, ...
func rotate(s []int, n int) { n = n % len(s) c := make([]int, n) for i := range s { if i < n { c[i] = s[i] } if i < len(s)-n { s[i] = s[i+n] } else { s[i] = c[n-(len(s)-i)] } } }
[ -0.5441545844078064, 0.5900040864944458, 0.37783220410346985, -0.40906310081481934, 0.36585602164268494, -1.1932408809661865, -0.12953026592731476, -0.7964795231819153, 0.530492901802063, -0.04971395805478096, -0.8308907151222229, 0.5975684523582458, -1.0610830783843994, -1.083998918533325...
func (m BandSelectionType) Validate(formats strfmt.Registry) error { var res []error // value enum if err := m.validateBandSelectionTypeEnum("", "body", m); err != nil { return err } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil }
[ -0.7079119682312012, -0.0246774610131979, -0.008862372487783432, 0.3676185607910156, 0.9580581188201904, 0.44979533553123474, 0.39810144901275635, -1.1447200775146484, -0.08106452226638794, 0.6523135304450989, -0.11441846936941147, -0.2990680932998657, -0.9332629442214966, 0.95521897077560...
func NewScanner(dirPath string) *AppConfScanner { return &AppConfScanner{ dirPath: dirPath, stop: make(chan struct{}), chanAppConf: make(chan AppConf, 100), } }
[ -0.49643391370773315, -1.278812050819397, 0.14396028220653534, 0.5643774271011353, -1.102411150932312, -0.5492768883705139, -0.15621618926525116, -0.031430523842573166, -0.17674630880355835, -0.20069153606891632, 0.0650724470615387, -0.4274032413959503, 0.25937017798423767, 1.0028415918350...
func (c CompositeMapper) Fast() Mapper { pieces := c.pieces() fastPieces := make([]fastMapperPiece, len(pieces)) for i := range fastPieces { fastPieces[i].setFromCompositePiece(&pieces[i]) } return fastCompositeMapper{fastPieces} }
[ -0.30076801776885986, 0.07918555289506912, 0.4405401051044464, 0.04884098470211029, -0.8155571818351746, 0.19749800860881805, 0.49240896105766296, -0.265583872795105, 0.36500924825668335, -0.7546439170837402, -0.7757082581520081, 0.10252699255943298, -0.19122150540351868, 0.419037044048309...
func NilStream() Stream { return nilS }
[ 0.15104259550571442, -0.4472126364707947, 0.16106796264648438, 0.4662184715270996, -1.037022590637207, -0.6552636027336121, 0.3277093172073364, -0.8967833518981934, 0.34658560156822205, -1.186707854270935, -0.39164111018180847, 0.7883680462837219, -0.9699649214744568, 2.0576322078704834, ...
func Map(f Mapper, s Stream, ptr interface{}) Stream { ms, ok := s.(*mapStream) if ok { return &mapStream{FastCompose(f, ms.mapper, ptr), ms.Stream, ms.ptr} } cm, ok := f.(CompositeMapper) if ok { return &mapStream{cm.Fast(), s, ptr} } return &mapStream{f, s, ptr} }
[ 0.07063563168048859, -0.16428767144680023, 0.5537846088409424, 0.9572793245315552, -1.6603412628173828, -0.11442570388317108, 0.5285725593566895, -0.723167359828949, 1.2386356592178345, -0.6638125777244568, 0.5131450295448303, -0.1787809282541275, 0.5811416506767273, 0.7687118649482727, ...
func Filter(f Filterer, s Stream) Stream { fs, ok := s.(*filterStream) if ok { return &filterStream{All(fs.filterer, f), fs.Stream} } return &filterStream{f, s} }
[ 0.8527932167053223, -0.5043109655380249, 0.3051384389400482, 1.189839243888855, -1.6538324356079102, -0.8954169154167175, -0.1715051680803299, -0.3379385769367218, 0.06176518276333809, -0.7413688898086548, 0.25935879349708557, 1.330113410949707, 0.67029869556427, 1.109152913093567, -0.52...
func Count() Stream { return &count{0, 1} }
[ 0.8485559225082397, -0.6057420969009399, 0.23118546605110168, 0.7706207036972046, -0.28353625535964966, -0.46221816539764404, 0.9128332138061523, -1.0482354164123535, -0.5081744194030762, -0.7107905149459839, -0.6158348321914673, 0.19015881419181824, -0.24313026666641235, 1.674178600311279...
func CountFrom(start, step int) Stream { return &count{start, step} }
[ 1.3366137742996216, -1.2783212661743164, 0.23316006362438202, 0.48280787467956543, -1.060312271118164, -0.17106884717941284, 0.21671149134635925, -0.145180344581604, -0.8022845983505249, -0.6537667512893677, -0.08180379867553711, 0.3744053542613983, 0.38743314146995544, 0.6768634915351868,...
func Slice(s Stream, start int, end int) Stream { return &sliceStream{Stream: s, start: start, end: end} }
[ 0.22068968415260315, -0.8894579410552979, 0.2582755386829376, 0.5023177266120911, -1.4707114696502686, -0.8604211807250977, -0.20381467044353485, -0.42756474018096924, -0.23169435560703278, -0.5227797031402588, -0.4385729134082794, 0.6331764459609985, 0.035187795758247375, -0.5199916362762...
func ReadRows(r Rows) Stream { c, _ := r.(io.Closer) return &rowStream{rows: r, maybeCloser: maybeCloser{c: c}} }
[ 0.2412961721420288, 0.19358663260936737, 0.3968961238861084, -0.01776089332997799, -1.1181635856628418, -0.314749538898468, -0.01821347326040268, -1.1719763278961182, 0.5621575713157654, -0.8406655192375183, 0.6693674921989441, -0.1578257530927658, -0.43181777000427246, 0.6999115943908691,...
func ReadLines(r io.Reader) Stream { c, _ := r.(io.Closer) return &lineStream{bufio: bufio.NewReader(r), maybeCloser: maybeCloser{c: c}} }
[ 0.8165835738182068, -0.44814014434814453, 0.5059320330619812, -0.30545592308044434, -0.5243142247200012, 0.4771820902824402, -0.45066913962364197, -1.1845955848693848, -0.12071409076452255, -1.2789767980575562, 0.5165488719940186, -0.5585159659385681, -0.4017374515533447, 0.572949349880218...
func Deferred(f func() Stream) Stream { return &deferredStream{f: f} }
[ 1.147560715675354, 0.1443033069372177, 0.27830594778060913, 0.6951747536659241, -0.6471976041793823, 0.035014256834983826, 0.24334296584129333, -0.1665879338979721, 0.622710108757019, -2.2859270572662354, -0.2286633402109146, 0.5727828145027161, 0.7937722206115723, 0.8052983283996582, -0...
func Cycle(f func() Stream) Stream { return &cycleStream{Stream: nilS, f: f} }
[ 0.12421097606420517, 0.4803082048892975, 0.1423119306564331, 0.6964259743690491, -0.6027553677558899, -0.7201056480407715, 0.5854786038398743, -1.7398277521133423, -0.7716149091720581, -0.7727306485176086, 0.4203364849090576, 0.8487825989723206, -0.036948081105947495, 0.8265638947486877, ...
func Concat(s ...Stream) Stream { if len(s) == 0 { return nilS } if len(s) == 1 { return s[0] } return &concatStream{s: s} }
[ 0.5095348358154297, 0.4123280942440033, 0.5644698739051819, 1.1815946102142334, -0.5014042258262634, -1.017789602279663, -0.7153172492980957, -1.0915858745574951, -0.011368132196366787, -0.7513127326965332, 1.1345789432525635, 0.6145748496055603, -0.33533617854118347, 1.8030885457992554, ...
func NewStreamFromValues(aSlice interface{}, c Copier) Stream { sliceValue := getSliceValue(aSlice) if sliceValue.Len() == 0 { return nilS } return &plainStream{sliceValue: sliceValue, copyFunc: toSliceValueCopier(c)} }
[ 0.40413331985473633, -0.43396198749542236, 0.29320961236953735, 0.7006812691688538, -0.8374765515327454, -0.33921191096305847, -0.5347242951393127, -0.5906727910041809, 0.4377715289592743, 0.06720373779535294, 0.5430571436882019, 0.43369075655937195, 0.3271508514881134, 1.7444055080413818,...
func NewStreamFromPtrs(aSlice interface{}, c Copier) Stream { sliceValue := getSliceValue(aSlice) if sliceValue.Len() == 0 { return nilS } valueCopierFunc := toSliceValueCopier(c) copyFunc := func(src reflect.Value, dest interface{}) { valueCopierFunc(reflect.Indirect(src), dest) } return &plainSt...
[ 0.1270718276500702, -0.7962170243263245, 0.4312405586242676, -0.4291501045227051, -1.0579557418823242, -0.44762203097343445, -0.37584125995635986, -0.592588484287262, 0.09093814343214035, 0.14267830550670624, 0.4675496518611908, 0.8386697769165039, 0.43653997778892517, 0.9265599250793457, ...
func Flatten(s Stream) Stream { return &flattenStream{stream: s, current: nilS} }
[ -0.0285919401794672, -0.07652370631694794, -0.027321573346853256, 0.4336290657520294, -0.8964909315109253, -1.3901745080947876, 0.9185587763786316, -0.3391198515892029, 0.7811484932899475, -1.349096655845642, -1.2588804960250854, 1.0883415937423706, -1.0227601528167725, 0.35622745752334595...
func TakeWhile(f Filterer, s Stream) Stream { return &takeStream{Stream: s, f: f} }
[ 1.410345196723938, -0.5124915242195129, 0.24684445559978485, 0.7109392881393433, -1.3574926853179932, -0.406136691570282, -0.502550482749939, -0.8843463063240051, -0.29035502672195435, -0.365452378988266, -0.43888333439826965, 0.9526014924049377, 0.2397562563419342, -0.15089315176010132, ...
func DropWhile(f Filterer, s Stream) Stream { return &dropStream{Stream: s, f: f} }
[ -0.07150153070688248, -0.3990442454814911, 0.2894148826599121, 0.2935338020324707, -1.3602839708328247, -0.010678610764443874, -0.8980363011360168, -1.235255479812622, -0.5127071142196655, -0.5226873159408569, -0.05312920734286308, 0.7395666837692261, -0.037095971405506134, -0.037687353789...
func Any(fs ...Filterer) Filterer { if len(fs) == 0 { return falseF } if len(fs) == 1 { return fs[0] } ors := make([][]Filterer, len(fs)) for i := range fs { ors[i] = orList(fs[i]) } return orFilterer(filterFlatten(ors)) }
[ -1.2021228075027466, 0.14564529061317444, 0.6802927851676941, 0.8014644384384155, -0.24581754207611084, -0.5670055150985718, -0.41003870964050293, 0.6068040728569031, -0.8658151030540466, -0.49669039249420166, 0.6494193077087402, -0.17422913014888763, -0.48251062631607056, 0.84403121471405...
func All(fs ...Filterer) Filterer { if len(fs) == 0 { return trueF } if len(fs) == 1 { return fs[0] } ands := make([][]Filterer, len(fs)) for i := range fs { ands[i] = andList(fs[i]) } return andFilterer(filterFlatten(ands)) }
[ -0.5945654511451721, -0.12096385657787323, 0.7137753963470459, 1.497257947921753, -0.35193750262260437, 0.024339372292160988, -0.23472900688648224, 1.257805585861206, -0.7258132696151733, -0.2267025262117386, 0.2208479344844818, 0.3033653497695923, -0.507109522819519, 1.303911566734314, ...
func Compose(f Mapper, g Mapper, c Creater) CompositeMapper { l := mapperLen(f) + mapperLen(g) pieces := make([]compositeMapperPiece, l) n := appendMapper(pieces, g) pieces[n - 1].creater = c appendMapper(pieces[n:], f) return CompositeMapper{pieces} }
[ -0.9501731395721436, 0.07220052182674408, 0.5067386627197266, 0.1979597508907318, -0.4593183994293213, -0.15639057755470276, -0.04720504209399223, -0.8443364500999451, -0.22156931459903717, -0.3498842120170593, -0.21345779299736023, -0.8500341773033142, 0.11031187325716019, 0.3461572527885...
func FastCompose(f Mapper, g Mapper, ptr interface{}) Mapper { l := mapperLen(f) + mapperLen(g) pieces := make([]fastMapperPiece, l) n := appendFastMapper(pieces, g) pieces[n - 1].ptr = ptr appendFastMapper(pieces[n:], f) return fastCompositeMapper{pieces} }
[ -0.3739345073699951, 0.17074041068553925, 0.42904892563819885, 0.5229424238204956, -1.019679307937622, -1.1095138788223267, 0.08173765987157822, -0.9234845042228699, 0.4319051504135132, -0.5210420489311218, 0.08551756292581558, -0.9283106327056885, -0.22700627148151398, 0.8665609955787659,...
func NoCloseStream(s Stream) Stream { return noCloseStream{s} }
[ -0.495680034160614, -0.09048619121313095, 0.20599482953548431, 0.2623870372772217, -1.6103583574295044, -0.014350028708577156, 0.8184756636619568, -1.1582943201065063, -0.2497236281633377, -1.030447244644165, -0.09542898088693619, 0.05080962926149368, -0.5985642671585083, 1.260314226150512...
func NoCloseRows(r Rows) Rows { _, ok := r.(io.Closer) if ok { return rowsWrapper{r} } return r }
[ -1.0965427160263062, 0.35090121626853943, 0.2219482958316803, 0.409286230802536, -1.1850227117538452, -0.01725299097597599, 0.3322146534919739, -1.2506502866744995, 0.2680383622646332, -0.43559661507606506, 0.50531405210495, -0.9874801635742188, -0.998648464679718, 1.1150305271148682, -0...
func NoCloseReader(r io.Reader) io.Reader { _, ok := r.(io.Closer) if ok { return readerWrapper{r} } return r }
[ -1.2687492370605469, -0.5084795951843262, 0.465770423412323, -0.011779196560382843, -1.4226118326187134, 0.49740108847618103, 0.1520870476961136, -1.3240267038345337, -0.35592249035835266, -0.5119516253471375, 0.9464071989059448, -0.6870158314704895, -1.198594570159912, 0.8377982378005981,...
func NewFilterer(f func(ptr interface{}) error) Filterer { return funcFilterer(f) }
[ 0.04425612837076187, -0.3487929105758667, 0.10663364827632904, 0.679088294506073, -1.1240569353103638, -0.7085564136505127, 0.07217548042535782, -0.2539190649986267, -0.2830163240432739, -0.29925429821014404, 0.15292413532733917, 0.3409864902496338, 0.7299956679344177, 1.1718584299087524, ...
func NewMapper(m func(srcPtr interface{}, destPtr interface{}) error) Mapper { return funcMapper(m) }
[ -0.8174828886985779, -0.2881430983543396, 0.35213205218315125, 0.6639528870582581, -1.9274288415908813, 0.07519659399986267, -0.39325904846191406, -0.47273167967796326, 0.11709097772836685, -0.014462759718298912, 0.45841217041015625, -0.22144950926303864, 0.7092443108558655, 0.371334165334...
func NewMockNotifier(ctrl *gomock.Controller) *MockNotifier { mock := &MockNotifier{ctrl: ctrl} mock.recorder = &MockNotifierMockRecorder{mock} return mock }
[ -0.06913429498672485, -0.010785546153783798, 0.23452767729759216, 0.22530579566955566, 0.12130464613437653, 0.18250183761119843, 0.28354212641716003, 0.09277699142694473, 0.2647992968559265, 0.5297185778617859, -1.4157787561416626, 0.055799491703510284, 0.01755090430378914, 1.1496551036834...
func (m *MockNotifier) EXPECT() *MockNotifierMockRecorder { return m.recorder }
[ 0.0924079492688179, -0.011858008801937103, 0.2343694269657135, 0.14622588455677032, 0.2819805443286896, 0.48739978671073914, 0.17757850885391235, 0.18331873416900635, 0.25306791067123413, -0.19777679443359375, 0.32062211632728577, 0.6557349562644958, -0.6116222739219666, 0.8651371598243713...
func (m *MockNotifier) Run(arg0 func(*client.Client) error, arg1 notifier.Policy) error { ret := m.ctrl.Call(m, "Run", arg0, arg1) ret0, _ := ret[0].(error) return ret0 }
[ -0.5306569933891296, -0.6904041171073914, 0.21505220234394073, 0.3623886704444885, 0.8940562605857849, 1.238077998161316, 0.8225386738777161, -0.0637233704328537, -1.0025322437286377, 0.029488086700439453, -0.8556389212608337, -0.12289940565824509, -1.0061146020889282, 0.6940482258796692, ...
func (mr *MockNotifierMockRecorder) Run(arg0, arg1 interface{}) *gomock.Call { return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Run", reflect.TypeOf((*MockNotifier)(nil).Run), arg0, arg1) }
[ -0.5929195880889893, 0.07582828402519226, 0.5448005795478821, 0.35889509320259094, 0.1441716104745865, 0.7592359781265259, 0.06856576353311539, -0.47857901453971863, -0.052369944751262665, 0.3672628104686737, -0.1090833842754364, 0.8144797682762146, -0.8033817410469055, 1.3744322061538696,...
func NewMockNotifierProvider(ctrl *gomock.Controller) *MockNotifierProvider { mock := &MockNotifierProvider{ctrl: ctrl} mock.recorder = &MockNotifierProviderMockRecorder{mock} return mock }
[ -0.2199501246213913, 0.24830293655395508, 0.11143054813146591, 0.8350734114646912, 0.015323695726692677, 0.5307084321975708, 0.7027809023857117, -0.5559929609298706, 0.877443253993988, 1.4105180501937866, -0.8261918425559998, -0.3711261451244354, -0.6275228261947632, 0.9539820551872253, ...
func (m *MockNotifierProvider) EXPECT() *MockNotifierProviderMockRecorder { return m.recorder }
[ -0.21229878067970276, 0.27931609749794006, 0.12596559524536133, 0.5136299133300781, 0.3111865520477295, 0.48726874589920044, 0.06599889695644379, -0.022131096571683884, 0.9632608294487, 0.43615075945854187, 0.09391627460718155, 0.959933340549469, -0.7938063740730286, 0.42993417382240295, ...
func (m *MockNotifierProvider) New(arg0 upgraded.State, arg1 *cert.Info, arg2 config.Schema) upgraded.Notifier { ret := m.ctrl.Call(m, "New", arg0, arg1, arg2) ret0, _ := ret[0].(upgraded.Notifier) return ret0 }
[ -0.8194740414619446, -0.3846000134944916, 0.3295805752277374, 0.38457271456718445, 0.5795610547065735, 0.3170446455478668, 0.15362605452537537, -0.3680054843425751, -1.0293177366256714, -0.026312366127967834, -1.1534675359725952, -0.019089892506599426, 0.4165014922618866, 1.188189148902893...
func (mr *MockNotifierProviderMockRecorder) New(arg0, arg1, arg2 interface{}) *gomock.Call { return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "New", reflect.TypeOf((*MockNotifierProvider)(nil).New), arg0, arg1, arg2) }
[ -0.5537775754928589, 0.23248237371444702, 0.33365747332572937, 0.39284712076187134, -0.19534049928188324, 0.10847567766904831, -0.9953470826148987, -1.1976115703582764, -0.46994486451148987, 0.48668909072875977, 0.1771089881658554, 0.8013508915901184, 0.1120116114616394, 1.7419450283050537...
func NewAPICfgInfluxServer(m *macaron.Macaron) error { bind := binding.Bind m.Group("/api/cfg/influxservers", func() { m.Get("/", reqSignedIn, GetInfluxServer) m.Get("/:id", reqSignedIn, GetInfluxServerByID) m.Post("/", reqSignedIn, bind(config.InfluxCfg{}), AddInfluxServer) m.Put("/:id", reqSignedIn, bind(c...
[ -1.055006504058838, -0.7912980318069458, 0.5827703475952148, 0.24919797480106354, 0.03329760581254959, -0.6911134719848633, 0.2463110238313675, -0.15946072340011597, 0.1160467341542244, 0.13754037022590637, -0.9706883430480957, 0.6453402638435364, -0.8563870787620544, 0.3570541739463806, ...
func GetInfluxServer(ctx *Context) { // swagger:operation GET /cfg/influxservers Config_InfluxServers GetInfluxServer //--- // summary: Get All Influx Servers Config Items from DB // description: Get All Influx Servers config Items as an array from DB // tags: // - "Influx Servers Config" // // responses: // ...
[ -1.001348614692688, -0.5713862776756287, 0.5888979434967041, 0.3353884220123291, 0.46902790665626526, 0.03285405784845352, 0.5377109050750732, -0.11382260173559189, 0.30136898159980774, 0.4519731104373932, -0.38743463158607483, 0.8958003520965576, -1.0016124248504639, 0.6269393563270569, ...
func AddInfluxServer(ctx *Context, dev config.InfluxCfg) { // swagger:operation POST /cfg/influxservers Config_InfluxServers AddInfluxServer //--- // summary: Add new Influx Server Config // description: Add InfluxServer from Data // tags: // - "Influx Servers Config" // // parameters: // - name: InfluxCfg //...
[ -0.7162519693374634, -0.6642361283302307, 0.8373624086380005, -0.058450184762477875, 0.8056007623672485, 0.38925468921661377, 0.5936554074287415, -0.001376028056256473, 0.6236404776573181, 0.19820638000965118, -0.6157921552658081, 0.23990637063980103, -1.2274280786514282, 0.395044445991516...
func PingInfluxServer(ctx *Context, cfg config.InfluxCfg) { // swagger:operation POST /cfg/influxservers/ping Config_InfluxServers PingInfluxServer //--- // summary: Connection Test (Ping) to the Influx Server // description: Performs a Test Connection to the InfluxServer With specified Config in the Body // tags:...
[ -0.47579801082611084, -0.7786372303962708, 0.6142181158065796, -0.004620768595486879, 0.5464649796485901, 0.24991163611412048, 0.6613723635673523, 0.028718505054712296, 0.23431465029716492, 0.9059219360351562, -0.23342448472976685, 0.3325596749782562, -1.3604704141616821, 0.235639005899429...
func TestSandboxTargetingIdeaKeywords(t *testing.T) { config := getTestConfig() srv := NewTargetingIdeaService(&config.Auth) selector := TargetingIdeaSelector{ SearchParameters: []SearchParameter{ RelatedToQuerySearchParameter{ Queries: []string{"flowers"}, }, NetworkSearchParameter{ NetworkSetti...
[ -0.4219611585140228, 0.5657274127006531, 0.6907681822776794, -0.5112797617912292, 0.47546902298927307, 0.057440515607595444, -0.13209056854248047, -0.6512842178344727, 0.8583685159683228, 0.3824160695075989, 0.6405366659164429, 0.7242080569267273, -0.3722086548805237, -0.23051151633262634,...
func (c *BookCntrl) SetRoute(e *echo.Echo) { e.GET("books", c.Find) e.POST("books", c.Create) e.GET("books/:id", c.FindOne) e.PUT("books", c.Update) e.DELETE("books/:id", c.Delete) }
[ -0.4969501793384552, -0.0542231984436512, 0.30950719118118286, 0.7644302845001221, 1.8497679233551025, 0.16536717116832733, 0.19544456899166107, 0.5698585510253906, -1.323933720588684, -0.12069675326347351, 0.29608410596847534, -0.8706372380256653, -0.2064433991909027, 0.8705622553825378, ...
func initPhrase(root *phraseNode, t int, words []string, msg string) { if len(words) == 0 { root.t = t root.msg = msg return } word := words[0] node := root.nodes[word] if node == nil { node = newPhraseNode() root.nodes[word] = node } initPhrase(node, t, words[1:], msg) }
[ 0.1549866646528244, 0.7607231140136719, 0.6430506706237793, -0.7246080636978149, 0.0435815304517746, -0.5741549730300903, -0.7353136539459229, 0.8364846706390381, 0.3449726402759552, 0.9332973957061768, 0.04343689978122711, 0.39238354563713074, -1.2841919660568237, 1.4240559339523315, -0...
func emitFragments(reader *bufio.Reader, out chan<- string) { defer close(out) insideComment := false txtLine: for { txt, err := reader.ReadString('\n') if err != nil { return } for _, line := range strings.Split(txt, ",") { fragments := strings.Fields(line) if len(fragments) == 0 { continue //i...
[ -0.0836741104722023, -0.5946817398071289, 0.6406434774398804, -1.419280767440796, -0.16357286274433136, -0.38444778323173523, -0.16046585142612457, 0.06371604651212692, -0.5804668068885803, 0.9728525876998901, 0.007204486522823572, 0.03255828842520714, -0.5322670340538025, 0.62994998693466...
func EmitTokens(reader *bufio.Reader, out chan<- Token) { frags := make(chan string, 100) go emitFragments(reader, frags) for word := range frags { // Emit as many phrase tokens as possible for ok := true; ok; { word, ok = parsePhraseToken(word, frags, out) } switch { case word == "": // end of input ...
[ -0.31289032101631165, -0.5376650094985962, 0.6495189070701599, -1.0308634042739868, -0.7146557569503784, -0.37343093752861023, -0.3850199282169342, -0.2853451073169708, 0.1307355761528015, 0.3068082332611084, -0.2637390196323395, 0.5228766798973083, -0.3407420814037323, 0.5297112464904785,...
func parsePhraseToken(word string, frags <-chan string, out chan<- Token) (string, bool) { phraseNode := phraseRoot hasRead := false for { nextNode := phraseNode.nodes[word] if nextNode == nil { if hasRead { token := Token{phraseNode.t, phraseNode.msg} if token.Type == Err { // If we have an Erro...
[ 0.14883269369602203, -0.45303893089294434, 0.6296539902687073, -1.1077176332473755, -0.638226330280304, -0.7734676003456116, -0.5787725448608398, 0.7115467190742493, -0.253568559885025, 0.1497168093919754, 0.044231414794921875, 0.13571332395076752, -0.8696480989456177, 0.5189604759216309, ...
func yarnLiteralToToken(str string) Token { // String literal must end with '"' and have length at least 2 if l := len(str); l < 2 || str[l-1] != '"' { return Token{Err, "Invalid string literal: " + str} } // chop off the start and end quotes return Token{Literal, str[1 : len(str)-1]} }
[ 0.7650248408317566, -1.991310954093933, 0.7060712575912476, -0.7531505823135376, -0.7762559652328491, -0.5542163252830505, 0.10243650525808334, 0.3471177816390991, -0.11887124180793762, -0.3441600799560547, -0.208486869931221, 1.340577244758606, 0.61423259973526, -0.4452838599681854, 0.8...
func (iscsi *iscsistorage) findMultipathDeviceForDevice(device string) string { disk, err := findDeviceForPath(device) if err != nil { klog.Error(err) return "" } // TODO: Does this need a /host prefix? sysPath := "/sys/block/" dirs, err := os.ReadDir(sysPath) if err != nil { klog.Errorf("failed to find m...
[ -0.2748141884803772, 0.3754725456237793, 0.8954022526741028, 0.6150002479553223, -0.8223750591278076, -0.2592172622680664, 1.0616110563278198, -0.7459135055541992, -0.15100857615470886, 0.04383135214447975, 0.09188050031661987, -0.5448208451271057, 0.11058727651834488, 1.3041332960128784, ...
func debugLogPath(path string, info os.FileInfo, err error) error { if err != nil { klog.Error(err) return err } klog.V(4).Infof("found path %s", path) return nil }
[ 0.7258748412132263, -0.2326548546552658, 0.38623830676078796, -0.09439548850059509, -0.14016829431056976, 0.798419177532196, -0.6313059329986572, -0.2197057157754898, -0.671301543712616, 0.3621900975704193, -0.3615410625934601, -0.45524322986602783, 0.3870367705821991, 0.612248957157135, ...
func debugWalkDir(walkPath string) (err error) { klog.V(4).Infof("walkPath %s", walkPath) err = filepath.Walk(walkPath, debugLogPath) if err != nil { klog.Error(err) return err } return nil }
[ -0.48878902196884155, -0.43315812945365906, 0.5417144298553467, -0.4853581488132477, 0.24714434146881104, 0.4822705090045929, 1.1933411359786987, -0.6434487104415894, 0.43256086111068726, -0.9622523188591003, 0.01588336005806923, 0.309836745262146, -0.2542955279350281, 1.2080100774765015, ...
func Asset(name string) ([]byte, error) { canonicalName := strings.Replace(name, "\\", "/", -1) if f, ok := _bindata[canonicalName]; ok { a, err := f() if err != nil { return nil, fmt.Errorf("Asset %s can't read by error: %v", name, err) } return a.bytes, nil } return nil, fmt.Errorf("Asset %s not found"...
[ -1.0117802619934082, -1.1598913669586182, 0.6830528974533081, -0.6832774877548218, -1.3779864311218262, -0.04716435447335243, 0.3233034014701843, -1.387198567390442, -1.1437952518463135, 0.4887535572052002, 0.508706271648407, 0.4118397831916809, -0.556188702583313, -0.2793940007686615, 0...
func AssetString(name string) (string, error) { data, err := Asset(name) return string(data), err }
[ -1.247711420059204, -0.7423804402351379, 0.39674192667007446, -1.4730795621871948, -1.8356839418411255, 0.45875734090805054, -0.22362041473388672, -1.3954719305038452, -0.5910036563873291, 0.673730194568634, 0.5670546293258667, 0.45071396231651306, 0.12421981245279312, -0.6748082637786865,...
func MustAsset(name string) []byte { a, err := Asset(name) if err != nil { panic("asset: Asset(" + name + "): " + err.Error()) } return a }
[ -0.012778956443071365, 0.11985661834478378, 0.4091298282146454, -0.5268413424491882, -0.8276715278625488, 0.4719155430793762, -0.8186293840408325, -1.5736604928970337, 0.16388541460037231, 0.6357062458992004, -0.5354578495025635, 0.35693347454071045, 0.0057142809964716434, -0.0248885955661...
func MustAssetString(name string) string { return string(MustAsset(name)) }
[ -0.7957004308700562, -0.4993444085121155, 0.4154260754585266, -0.059688813984394073, -1.7780245542526245, 0.7658588886260986, -0.5333529710769653, -1.525808334350586, -0.11369087547063828, 0.8382498025894165, 0.9579691290855408, -0.4543590545654297, 0.2904685139656067, 0.30602753162384033,...
func AssetInfo(name string) (os.FileInfo, error) { canonicalName := strings.Replace(name, "\\", "/", -1) if f, ok := _bindata[canonicalName]; ok { a, err := f() if err != nil { return nil, fmt.Errorf("AssetInfo %s can't read by error: %v", name, err) } return a.info, nil } return nil, fmt.Errorf("AssetIn...
[ 0.1966029703617096, -0.9794570207595825, 0.5885098576545715, -0.9617621302604675, -1.2945103645324707, 0.0021701965015381575, 0.8489783406257629, -0.8787258267402649, -1.2970008850097656, 0.33993929624557495, 0.4047488272190094, 0.37507039308547974, 0.06526204943656921, -0.2895668148994446...
func AssetDigest(name string) ([sha256.Size]byte, error) { canonicalName := strings.Replace(name, "\\", "/", -1) if f, ok := _bindata[canonicalName]; ok { a, err := f() if err != nil { return [sha256.Size]byte{}, fmt.Errorf("AssetDigest %s can't read by error: %v", name, err) } return a.digest, nil } ret...
[ -0.3591914772987366, -0.6181963086128235, 0.7434927821159363, -1.1689051389694214, -1.152544617652893, -0.5196005702018738, -0.2411303073167801, -1.0479568243026733, -0.5882827043533325, 0.310821533203125, 0.08598455786705017, -0.05696683004498482, -0.296350359916687, 0.04578978568315506, ...
func Digests() (map[string][sha256.Size]byte, error) { mp := make(map[string][sha256.Size]byte, len(_bindata)) for name := range _bindata { a, err := _bindata[name]() if err != nil { return nil, err } mp[name] = a.digest } return mp, nil }
[ -0.8371758460998535, -0.8630334734916687, 0.8149356245994568, -0.20492912828922272, -0.4950232207775116, -0.7048240303993225, -0.32209330797195435, -0.4336596429347992, -0.07046830654144287, -0.36870822310447693, -0.4737861156463623, 0.22748501598834991, 0.2845746874809265, 0.8567589521408...
func AssetNames() []string { names := make([]string, 0, len(_bindata)) for name := range _bindata { names = append(names, name) } return names }
[ -0.7293784618377686, -0.8460342288017273, 0.7321816682815552, -0.39323121309280396, -0.48951536417007446, 0.7661203145980835, -0.5028699636459351, -0.8655748963356018, -0.4145073890686035, 0.8099913597106934, 0.16903363168239594, 1.163049578666687, -0.028152840211987495, 0.0342608317732811...
func RestoreAsset(dir, name string) error { data, err := Asset(name) if err != nil { return err } info, err := AssetInfo(name) if err != nil { return err } err = os.MkdirAll(_filePath(dir, filepath.Dir(name)), os.FileMode(0755)) if err != nil { return err } err = ioutil.WriteFile(_filePath(dir, name), d...
[ -0.04950583726167679, -0.19623512029647827, 0.6907734274864197, -1.3569048643112183, -0.2967042326927185, -0.3611973226070404, 0.07744784653186798, -0.471956729888916, -0.31164032220840454, -0.08379734307527542, -0.002142141805961728, 0.06316494196653366, -0.342814564704895, -0.61630117893...
func RestoreAssets(dir, name string) error { children, err := AssetDir(name) // File if err != nil { return RestoreAsset(dir, name) } // Dir for _, child := range children { err = RestoreAssets(dir, filepath.Join(name, child)) if err != nil { return err } } return nil }
[ 0.42261892557144165, 0.30020031332969666, 0.5813396573066711, -0.20641657710075378, -0.23828908801078796, -0.24414615333080292, 0.5739709138870239, -0.029911456629633904, 0.06188219040632248, -0.43923482298851013, 0.5113736987113953, 0.3275970220565796, -0.6125145554542542, 0.0351656526327...
func (a *MockApp) NewWindow(title string) fyne.Window { args := a.Called(title) return args.Get(0).(fyne.Window) }
[ -0.4207194745540619, -0.42000555992126465, 0.38240474462509155, 1.1761760711669922, -0.5836660861968994, 0.006963196210563183, 0.31623008847236633, -0.0017777059692889452, 0.3064097762107849, -0.1452508270740509, 0.5846822261810303, 0.9504700899124146, 0.0492536760866642, 0.669929027557373...
func (a *MockApp) OpenURL(url *url.URL) error { args := a.Called(url) return args.Error(0) }
[ -0.6232113242149353, 0.10299766063690186, 0.5243564248085022, 0.4282323122024536, -0.41583749651908875, 0.8074234127998352, 1.1062828302383423, 1.3169540166854858, 1.0815016031265259, 0.5495766997337341, -0.4251118004322052, -0.0434236042201519, -0.07217295467853546, 0.6747910976409912, ...
func (a *MockApp) Icon() fyne.Resource { args := a.Called() return args.Get(0).(fyne.Resource) }
[ -0.7283336520195007, -0.08352969586849213, 0.3167402148246765, 0.12987159192562103, -0.12246499210596085, -0.47793617844581604, 0.8715182542800903, 1.0318739414215088, 0.04128667339682579, 0.13619333505630493, -0.13058418035507202, -0.15679393708705902, 0.9080587029457092, 0.09754563122987...
func (a *MockApp) SetIcon(r fyne.Resource) { a.Called(r) }
[ -0.9118266105651855, -0.01979188248515129, 0.20701873302459717, 0.9318748116493225, -0.2558768689632416, -0.18459098041057587, 1.0136250257492065, 0.8544865250587463, 0.6525726318359375, 0.40912219882011414, -0.9755004644393921, -0.42202669382095337, 0.7625871300697327, 0.4568663239479065,...
func (a *MockApp) Run() { a.Called() }
[ -0.632433295249939, -0.40259796380996704, 0.4249337315559387, 0.4835822284221649, 0.45728540420532227, 0.8800774812698364, 1.247828722000122, 0.49314165115356445, 0.6166279911994934, 0.22301983833312988, -0.5931036472320557, 0.07149505615234375, -0.34173932671546936, 0.43415772914886475, ...
func (a *MockApp) Quit() { a.Called() }
[ -0.4805727005004883, -0.0427616722881794, 0.4707135260105133, 0.7814117074012756, 0.36505311727523804, 1.2293181419372559, 1.0853116512298584, -0.7328890562057495, 0.1844189167022705, 0.8950924277305603, -0.19189342856407166, 0.31015580892562866, -0.05859549716114998, 0.5749041438102722, ...
func (a *MockApp) Driver() fyne.Driver { args := a.Called() return args.Get(0).(fyne.Driver) }
[ -1.0965756177902222, -0.3011406660079956, 0.2894977033138275, 1.0330233573913574, 1.0700737237930298, -0.2860323190689087, 0.5960320234298706, -0.38103222846984863, 0.6359686255455017, -0.314929723739624, 1.161841869354248, -0.4162665009498596, -0.26590844988822937, 0.7221531271934509, 0...
func (a *MockApp) UniqueID() string { args := a.Called() return args.String(0) }
[ 1.0841341018676758, -0.6414656043052673, 0.4251168370246887, -0.20649436116218567, 0.6547638177871704, 1.3893522024154663, 0.6584144830703735, 1.2842178344726562, 1.7219319343566895, 0.8002228140830994, 0.29698753356933594, 0.14774852991104126, -0.32662200927734375, -0.11553016304969788, ...
func (a *MockApp) SendNotification(n *fyne.Notification) { a.Called(n) }
[ -0.9256021976470947, 0.7098853588104248, 0.23994624614715576, 1.1511716842651367, 0.7474015355110168, -0.1717497706413269, 1.0370100736618042, 0.045394912362098694, 0.8069517612457275, 0.4410216808319092, -0.7698609232902527, -0.5763015151023865, 0.9178211092948914, 1.1329891681671143, -...