zoekt: 45
files / 173
matches / 0.66ms neogrok: 20 files / 50
matches github.com/sourcegraph/zoekt cmd/flags.go 1 match | Go | №1 37 name := filepath.Base(os.Args[0])
38 fmt.Printf ("%s version %q\n", name, index.Version)
39 os.Exit(0)
github.com/sourcegraph/zoekt web/server.go 2 matches | Go | №2 141 if err != nil {
142 log.Printf ("html template parse error: %v", err)
143 t = template.Must(template.New("empty").Parse(""))
158 if err != nil {
159 log.Printf ("text template parse error: %v", err)
160 t = texttemplate.Must(texttemplate.New("empty").Parse(""))
21 <li>
22 <ExampleQuery query=".printf " />
23 <span class="text-xs">dot is a wildcard</span>
25 <li>
26 <ExampleQuery query="\.printf " />
27 <span class="text-xs">escaped dot is a dot</span>
github.com/sourcegraph/zoekt index/read.go 2 matches | Go | №4 131 skipSection = true
132 log.Printf ("encountered unrecognized index section (%s), skipping over it", tag)
133
677 rNgram = ngramToRunes(ngram)
678 fmt.Printf ("%d\t%q\n", ss.sz, string(rNgram[:]))
679 }
github.com/sourcegraph/zoekt index/ctags.go 4 matches | Go | №6 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/zoekt index/merge.go 1 match | Go | №7 86
87 log.Printf ("finished shard %s: %d index bytes (overhead %3.1f)", fn, fi.Size(),
88 float64(fi.Size())/float64(ib.ContentSize()+1))
github.com/sourcegraph/zoekt query/regexp.go 2 matches | Go | №8 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
github.com/sourcegraph/zoekt web/snippets.go 2 matches | Go | №9 55 }); err != nil {
56 log.Printf ("fragment template: %v", err)
57 return ""
84 if err != nil {
85 log.Printf ("url template: %v", err)
86 return ""
github.com/sourcegraph/zoekt index/builder.go 8 matches | Go | №10 421 // reindex content.
422 log.Printf ("warn: immutable field changed, requires re-index: %s", err)
423 return IndexStateContent, fn
657 for tmp := range b.finishedShards {
658 log.Printf ("Builder.Finish %s", tmp)
659 os.Remove(tmp)
780 }
781 log.Printf ("removing old shard file: %s", p)
782 if err := os.Remove(p); err != nil {
965 if err != nil {
966 log.Printf ("ignoring universal:%s or scip:%s error: %v", b.opts.CTagsPath, b.opts.ScipCTagsPath, err)
967 }
1005
1006 log.Printf ("writing memory profile, allocated heap: %s", humanize.Bytes(m.HeapAlloc))
1007 name := filepath.Join(b.opts.IndexDir, fmt.Sprintf("indexmemory.prof.%d", b.heapProfileNum))
Show 3 more matches github.com/sourcegraph/zoekt cmd/zoekt/main.go 5 matches | Go | №11 44 if list {
45 fmt.Printf ("%s%s%s\n", r, f.FileName, addTabIfNonEmpty(f.Debug))
46 continue
50 l := bytes.TrimSuffix(m.Line, []byte{'\n'})
51 fmt.Printf ("%s%s:%d:%s%s\n", r, f.FileName, m.LineNumber, l, addTabIfNonEmpty(f.Debug))
52 }
85 }
86 log.Printf ("repo metadata: %#v", repo)
87 log.Printf ("index metadata: %#v", index)
88 }
232 if *verbose {
233 log.Printf ("stats: %#v", sres.Stats)
234 }
github.com/sourcegraph/zoekt index/indexdata.go 1 match | Go | №12 274 if err != nil {
275 log.Printf ("error reading newline index for document %d on shard %s: %v", i, d.file.Name(), err)
276 continue
github.com/sourcegraph/zoekt index/indexfile.go 1 match | Go | №13 49 if err := unix.Munmap(f.data); err != nil {
50 log.Printf ("WARN failed to Munmap %s: %v", f.name, err)
51 }
github.com/sourcegraph/zoekt cmd/zoekt-test/main.go 2 matches | Go | №14 165 sort.Strings(del)
166 log.Printf ("pattern %q, add %v, del %v", t, add, del)
167 }
188 runtime.ReadMemStats(&b)
189 log.Printf ("%s loaded in %d ms, additional memory consumption: %d MiB", s.String(), duration.Milliseconds(), (b.Alloc-a.Alloc)/1024/1024)
190
329 if !sort.IsSorted((sortByOffsetSlice)(ms)) {
330 log.Printf ("WARN: performance invariant violated. candidate matches are not sorted in fillContentChunkMatches. Report to developers.")
331 sort.Sort((sortByOffsetSlice)(ms))
github.com/sourcegraph/zoekt internal/shards/sched.go 2 matches | Go | №16 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 }
306
307 log.Printf ("[INFO] loading %d shard(s): %s", len(keys), humanTruncateList(keys, 5))
308
312 if time.Since(lastProgress) > 5*time.Second {
313 log.Printf ("[INFO] still need to load %d shards...", len(keys)-i)
314 lastProgress = time.Now()
328 metricShardsLoadFailedTotal.Inc()
329 log.Printf ("[ERROR] reloading: %s, err %v ", key, err)
330 return
899 if e := recover(); e != nil {
900 log.Printf ("[ERROR] crashed shard: %s: %#v, %s", s, e, debug.Stack())
901
921 if r := recover(); r != nil {
922 log.Printf ("[ERROR] crashed shard: %s: %s, %s", s.String(), r, debug.Stack())
923 sink <- shardListResult{
Show 1 more match 129 if err := rw.handleSubmodule(p, id, branch, subRepoVersions, ig); err != nil {
130 log.Printf ("submodule %s: ignoring error %v", p, err)
131 }
44 func (l *jaegerLogger) Error(msg string) {
45 log.Printf ("ERROR: %s", msg)
46 }
49 func (l *jaegerLogger) Infof(msg string, args ...interface{}) {
50 log.Printf (msg, args...)
51 }
48 if err != nil {
49 log.Printf ("failed to configure Jaeger tracer: %v", err)
50 return
51 }
52 log.Printf ("INFO: using Jaeger tracer")
53
56 if err != nil {
57 log.Printf ("failed to configure OpenTelemetry tracer: %v", err)
58 return
59 }
60 log.Printf ("INFO: using OpenTelemetry tracer")
61 }