zoekt: 86 files / 455 matches / 59.66ms neogrok: 20 files / 93 matches

github.com/sourcegraph/zoekttrace/trace.go 11 matches | Go | №1

42 if parent := TraceFromContext(ctx); parent != nil {43 tr.LazyPrintf("parent: %s", parent.family)44 trace.family = parent.family + " > " + family
56 57 // LazyPrintf evaluates its arguments with fmt.Sprintf each time the58 // /debug/requests page is rendered. Any memory referenced by a will be59 // pinned until the trace is finished and later discarded.60 func (t *Trace) LazyPrintf(format string, a ...interface{}) {61 t.span.LogFields(Printf("log", format, a...))62 t.trace.LazyPrintf(format, a...)63 }

github.com/sourcegraph/zoektapi.go 2 matches | Go | №2

550 func (r RepositoryBranch) String() string {551 return fmt.Sprintf("%s@%s", r.Name, r.Version)552 }
911 func (o *ListOptions) String() string {912 return fmt.Sprintf("%#v", o)913 }

github.com/isker/neogrokyarn.lock 3 matches | YAML | №3

1350 dependencies:1351 sprintf-js: "npm:~1.0.2"1352 checksum: b2972c5c23c63df66bca144dbc65d180efa74f25f8fd9b7d9a0a6c88ae839db32df3d54770dcb6460cf840d232b60695d1a6b1053f599d84e73f7437087712de
4669 4670 "sprintf-js@npm:~1.0.2":4671 version: 1.0.34672 resolution: "sprintf-js@npm:1.0.3"4673 checksum: ecadcfe4c771890140da5023d43e190b7566d9cf8b2d238600f31bec0fc653f328da4450eb04bd59a431771a8e9cc0e118f0aa3974b683a4981b4e07abc2a5bb

github.com/sourcegraph/zoektread.go 2 matches | Go | №4

130 skipSection = true131 log.Printf("encountered unrecognized index section (%s), skipping over it", tag)132
669 rNgram = ngramToRunes(ngram)670 fmt.Printf("%d\t%q\n", ss.sz, string(rNgram[:]))671 }

github.com/sourcegraph/zoekteval.go 1 match | Go | №5

96 if len(extFrags) > 0 {97 pattern := fmt.Sprintf("(?i)(%s)$", strings.Join(extFrags, "|"))98 // inlined copy of query.regexpQuery

github.com/sourcegraph/zoektbtree.go 4 matches | Go | №6

263 s := ""264 s += fmt.Sprintf("%+v", bt.opts)265 bt.root.visit(func(n node) {
269 case *innerNode:270 s += fmt.Sprintf("[")271 for _, key := range nd.keys {272 s += fmt.Sprintf("%d,", key)273 }274 s = s[:len(s)-1] // remove trailing comma275 s += fmt.Sprintf("]")276

github.com/sourcegraph/zoektscore.go 5 matches | Go | №7

34 var b strings.Builder35 fmt.Fprintf(&b, "%s", what)36 if raw != -1 {37 fmt.Fprintf(&b, "(%s)", strconv.FormatFloat(raw, 'f', -1, 64))38 }39 fmt.Fprintf(&b, ":%.2f, ", computed)40 m.Debug += b.String()
108 tiebreaker := fileMatch.Score - score*ScoreOffset109 fileMatch.Debug = fmt.Sprintf("score: %d (%.2f) <- %s", int(score), tiebreaker, strings.TrimSuffix(fileMatch.Debug, ", "))110 }
188 if opts.DebugScore {189 fileMatches[i].Debug = fmt.Sprintf("bm25-score: %.2f <- sum-termFrequencies: %d, length-ratio: %.2f", score, sumTF, L)190 }

github.com/sourcegraph/zoektmerge.go 4 matches | Go | №8

43 44 dstName = filepath.Join(dstDir, fmt.Sprintf("compound-%x_v%d.%05d.zoekt", hasher.Sum(nil), NextIndexFormatVersion, 0))45 tmpName = dstName + ".tmp"
84 85 log.Printf("finished shard %s: %d index bytes (overhead %3.1f)", fn, fi.Size(),86 float64(fi.Size())/float64(ib.ContentSize()+1))
254 _, _ = io.WriteString(h, s)255 return fmt.Sprintf("%x", h.Sum(nil))256 }
263 }264 return fmt.Sprintf("%s_v%d.%05d.zoekt", abs, version, n)265 }

github.com/sourcegraph/zoekthititer.go 4 matches | Go | №9

44 func (i *distanceHitIterator) String() string {45 return fmt.Sprintf("dist(%d, %v, %v)", i.distance, i.i1, i.i2)46 }
151 func (i *inMemoryIterator) String() string {152 return fmt.Sprintf("mem(%s):%v", i.what, i.postings)153 }
195 func (i *compressedPostingIterator) String() string {196 return fmt.Sprintf("compressed(%s, %d, [%d bytes])", i.what, i._first, len(i.blob))197 }
236 func (i *mergingIterator) String() string {237 return fmt.Sprintf("merge:%v", i.iters)238 }

github.com/sourcegraph/zoektmatchtree.go 13 matches | Go | №10

509 func (t *docMatchTree) String() string {510 return fmt.Sprintf("doc(%s)", t.reason)511 }
513 func (t *andMatchTree) String() string {514 return fmt.Sprintf("and%v", t.children)515 }
521 }522 return fmt.Sprintf("%sre(%s)", f, t.regexp)523 }
529 }530 return fmt.Sprintf("%sword(%s)", f, t.word)531 }
533 func (t *orMatchTree) String() string {534 return fmt.Sprintf("or%v", t.children)535 }

github.com/sourcegraph/zoektindexdata.go 3 matches | Go | №11

273 if err != nil {274 log.Printf("error reading newline index for document %d on shard %s: %v", i, d.file.Name(), err)275 continue
289 func (d *indexData) String() string {290 return fmt.Sprintf("shard(%s)", d.file.Name())291 }
383 func (r *ngramIterationResults) String() string {384 return fmt.Sprintf("wrapper(%v)", r.matchIterator)385 }

github.com/sourcegraph/zoektmatchiter.go 3 matches | Go | №12

87 func (t *noMatchTree) String() string {88 return fmt.Sprintf("not(%q)", t.Why)89 }
110 func (m *candidateMatch) String() string {111 return fmt.Sprintf("%d:%d", m.file, m.runeOffset)112 }
154 func (i *ngramDocIterator) String() string {155 return fmt.Sprintf("ngram(L=%d,R=%d,%v)", i.leftPad, i.rightPad, i.iter)156 }

github.com/sourcegraph/zoektcmd/flags.go 1 match | Go | №13

38 name := filepath.Base(os.Args[0])39 fmt.Printf("%s version %q\n", name, zoekt.Version)40 os.Exit(0)

github.com/sourcegraph/zoektweb/server.go 6 matches | Go | №14

60 61 return fmt.Sprintf("%d%s", b, suffix)62 },
66 }67 return fmt.Sprintf("...(%d bytes skipped)...%s", len(pre)-limit, pre[len(pre)-limit:])68 },
72 }73 return fmt.Sprintf("%s...(%d bytes skipped)...", post[:limit], len(post)-limit)74 },
138 if err != nil {139 log.Printf("html template parse error: %v", err)140 t = template.Must(template.New("empty").Parse(""))
155 if err != nil {156 log.Printf("text template parse error: %v", err)157 t = texttemplate.Must(texttemplate.New("empty").Parse(""))

github.com/sourcegraph/zoektquery/query.go 20 matches | Go | №15

69 }70 return fmt.Sprintf("rawConfig:%s", strings.Join(s, "|"))71 }
88 }89 return fmt.Sprintf("%sregex:%q", pref, syntaxutil.RegexpString(q.Regexp))90 }
127 func (s *Symbol) String() string {128 return fmt.Sprintf("sym:%s", s.Expr)129 }
162 func (q *Repo) String() string {163 return fmt.Sprintf("repo:%s", q.Regexp.String())164 }
182 func (q *RepoRegexp) String() string {183 return fmt.Sprintf("reporegex:%q", q.Regexp.String())184 }

github.com/sourcegraph/zoektquery/parse.go 2 matches | Go | №16

26 27 var _ = log.Printf28
371 func (t *token) String() string {372 return fmt.Sprintf("%s:%q", tokNames[t.Type], t.Text)373 }

github.com/sourcegraph/zoektbuild/ctags.go 4 matches | Go | №17

267 if m.currentDocStuckCount > 0 {268 log.Printf("symbol analysis for %s (size %d bytes) is done and found %d symbols", m.currentDocName, m.currentDocSize, len(entries))269 m.currentDocStuckCount = 0
294 m.mu.Lock()295 log.Printf("symbol analysis finished for shard statistics: duration=%v symbols=%d bytes=%d", now.Sub(m.start).Truncate(time.Second), m.totalSymbols, m.totalSize)296 m.mu.Unlock()
305 m.currentDocStuckCount++306 log.Printf("WARN: symbol analysis for %s (%d bytes) has been running for %v", m.currentDocName, m.currentDocSize, running)307 }
312 m.mu.Lock()313 log.Printf("DEBUG: symbol analysis still running for shard statistics: duration=%v symbols=%d bytes=%d", now.Sub(m.start).Truncate(time.Second), m.totalSymbols, m.totalSize)314 m.mu.Unlock()

github.com/sourcegraph/zoektindexbuilder.go 1 match | Go | №18

428 if idx := bytes.IndexByte(doc.Content, 0); idx >= 0 {429 doc.SkipReason = fmt.Sprintf("binary content at byte offset %d", idx)430 doc.Language = "binary"

github.com/sourcegraph/zoektshards/sched.go 2 matches | Go | №19

106 } else {107 log.Printf("ZOEKTSCHED=batchdiv=%d specified. Batch queue size 1/%d of %d.", batchdiv, batchdiv, capacity)108 }
118 } else {119 log.Printf("ZOEKTSCHED=interactiveseconds=%d specified. Search requests will move to batch queue after %d seconds.", interactiveseconds, interactiveseconds)120 }

github.com/sourcegraph/zoektquery/regexp.go 2 matches | Go | №20

62 if err != nil {63 log.Printf("failed to copy regexp `%s`: %v", re, err)64 return re
71 if err != nil {72 log.Printf("failed to parse regexp after uncapture `%s`: %v", r, err)73 return re