zoekt: 45 files / 172 matches / 0.62ms neogrok: 20 files
/
47 matches github.com/sourcegraph/zoekt read.go 2 matches | Go | №1 130 skipSection = true
131 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/zoekt merge.go 1 match | Go | №2 84
85 log.Printf ("finished shard %s: %d index bytes (overhead %3.1f)", fn, fi.Size(),
86 float64(fi.Size())/float64(ib.ContentSize()+1))
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 indexdata.go 1 match | Go | №4 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
github.com/sourcegraph/zoekt cmd/flags.go 1 match | Go | №5 38 name := filepath.Base(os.Args[0])
39 fmt.Printf ("%s version %q\n", name, zoekt.Version)
40 os.Exit(0)
github.com/sourcegraph/zoekt web/server.go 2 matches | Go | №6 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/zoekt build/ctags.go 4 matches | Go | №8 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 shards/sched.go 2 matches | Go | №9 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/zoekt query/regexp.go 2 matches | Go | №10 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 | №11 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 build/builder.go 8 matches | Go | №12 423 // reindex content.
424 log.Printf ("warn: immutable field changed, requires re-index: %s", err)
425 return IndexStateContent, fn
660 for tmp := range b.finishedShards {
661 log.Printf ("Builder.Finish %s", tmp)
662 os.Remove(tmp)
783 }
784 log.Printf ("removing old shard file: %s", p)
785 if err := os.Remove(p); err != nil {
968 if err != nil {
969 log.Printf ("ignoring universal:%s or scip:%s error: %v", b.opts.CTagsPath, b.opts.ScipCTagsPath, err)
970 }
1008
1009 log.Printf ("writing memory profile, allocated heap: %s", humanize.Bytes(m.HeapAlloc))
1010 name := filepath.Join(b.opts.IndexDir, fmt.Sprintf("indexmemory.prof.%d", b.heapProfileNum))
Show 3 more matches github.com/sourcegraph/zoekt shards/shards.go 5 matches | Go | №13 302
303 log.Printf ("loading %d shard(s): %s", len(keys), humanTruncateList(keys, 5))
304
308 if time.Since(lastProgress) > 5*time.Second {
309 log.Printf ("still need to load %d shards...", len(keys)-i)
310 lastProgress = time.Now()
324 metricShardsLoadFailedTotal.Inc()
325 log.Printf ("reloading: %s, err %v ", key, err)
326 return
879 if e := recover(); e != nil {
880 log.Printf ("crashed shard: %s: %#v, %s", s, e, debug.Stack())
881
901 if r := recover(); r != nil {
902 log.Printf ("crashed shard: %s: %s, %s", s.String(), r, debug.Stack())
903 sink <- shardListResult{
github.com/sourcegraph/zoekt gitindex/tree.go 1 match | Go | №14 129 if err := rw.handleSubmodule(p, id, branch, subRepoVersions, ig); err != nil {
130 log.Printf ("submodule %s: ignoring error %v", p, err)
131 }
github.com/sourcegraph/zoekt gitindex/index.go 4 matches | Go | №15 428 if err := setTemplatesFromConfig(&opts.BuildOptions.RepositoryDescription, opts.RepoDir); err != nil {
429 log.Printf ("setTemplatesFromConfig(%s): %s", opts.RepoDir, err)
430 }
474 if err != nil {
475 log.Printf ("delta build: falling back to normal build since delta build failed, repository=%q, err=%s", opts.BuildOptions.RepositoryDescription.Name, err)
476 opts.BuildOptions.IsDelta = false
497 if err := SetTemplatesFromOrigin(&tpl, info.URL); err != nil {
498 log.Printf ("setTemplatesFromOrigin(%s, %s): %s", path, info.URL, err)
499 }
543
544 log.Printf ("attempting to index %d total files", totalFiles)
545 for idx, name := range names {
github.com/sourcegraph/zoekt shards/watcher.go 1 match | Go | №16 181 if len(toDrop) > 0 {
182 log.Printf ("unloading %d shard(s): %s", len(toDrop), humanTruncateList(toDrop, 5))
183 }
github.com/sourcegraph/zoekt indexfile_unix.go 1 match | Go | №17 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/main.go 5 matches | Go | №18 40 if list {
41 fmt.Printf ("%s%s%s\n", r, f.FileName, addTabIfNonEmpty(f.Debug))
42 continue
45 for _, m := range f.LineMatches {
46 fmt.Printf ("%s%s:%d:%s%s\n", r, f.FileName, m.LineNumber, m.Line, addTabIfNonEmpty(f.Debug))
47 }
80 }
81 log.Printf ("repo metadata: %#v", repo)
82 log.Printf ("index metadata: %#v", index)
83 }
223 if *verbose {
224 log.Printf ("stats: %#v", sres.Stats)
225 }
github.com/sourcegraph/zoekt gitindex/clone.go 1 match | Go | №19 99 if err := setFetch(repoDest, "origin", "+refs/heads/*:refs/heads/*"); err != nil {
100 log.Printf ("addFetch: %v", err)
101 }
github.com/sourcegraph/zoekt contentprovider.go 1 match | Go | №20 331 if !sort.IsSorted((sortByOffsetSlice)(ms)) {
332 log.Printf ("WARN: performance invariant violated. candidate matches are not sorted in fillContentChunkMatches. Report to developers.")
333 sort.Sort((sortByOffsetSlice)(ms))