zoekt: 28 files / 73 matches / 10.71ms neogrok: 20 files
/
56 matches github.com/sourcegraph/zoekt read.go 11 matches | Go | №1 585
586 // ReadMe tadata returns the metadata of index shard without reading
587 // the index data. The IndexFile is not closed.
588 func ReadMe tadata(inf IndexFile) ([]*Repository, *IndexMetadata, error) {
589 rd := &reader{r: inf}
597
598 // ReadMe tadataPathAlive is like ReadMe tadataPath except that it only returns
599 // alive repositories.
600 func ReadMe tadataPathAlive(p string) ([]*Repository, *IndexMetadata, error) {
601 repos, id, err := ReadMe tadataPath(p)
602 if err != nil {
Show 5 more matches github.com/isker/neogrok README .md 1 match | Markdown | №2 github.com/sourcegraph/zoekt README .md 1 match | Markdown | №3 github.com/sourcegraph/zoekt read_test.go 3 matches | Go | №5 439
440 func BenchmarkReadMe tadata(b *testing.B) {
441 file, err := os.Open("testdata/benchmark/zoekt_v16.00000.zoekt")
455 for i := 0; i < b.N; i++ {
456 repos, metadata, err := ReadMe tadata(indexFile)
457 if err != nil {
458 b.Fatalf("ReadMe tadata failed: %v", err)
459 }
github.com/sourcegraph/zoekt doc/query_syntax.md 2 matches | Markdown | №6 123
124 3. **Find files named `README .md` in forks**:
125 ```plaintext
126 file:"README .md" fork:yes
127 ```
46 // https://github.com/octokit/octokit.rb/commit/3d21ec53a331a6f037a91c368710b99387d012c1
47 // https://github.com/octokit/octokit.rb/blob/master/README .md
48 // https://github.com/octokit/octokit.rb/tree/master/lib
129 a file and in the <em>name</em> of the file:
130 <ExampleQuery query="README " /> matches both file names and file contents (though
131 the search engine tends to rank files containing file name matches higher than
135 with
136 <code>file:</code>, like <ExampleQuery query="file:README " />. (
137 <code>f:</code> is an equivalent abbreviation for <code>file:</code>).
141 expressions is <code>content:</code> or <code>c:</code>.
142 <ExampleQuery query="content:README " /> produces only matches that occur in
143 the content of files.
176 <td class="p-1">
177 <ExampleQuery query="f:README " />
178 <br />
179 <ExampleQuery query="f:README neogrok" />
180 <br />
Show 4 more matches 41 <li>
42 <ExampleQuery query="file:README test" />
43 <span class="text-xs">
109 <li>
110 <ExampleQuery query="readme " />
111 <span class="text-sm"> vs </span>
112 <ExampleQuery query="readme case:yes" />
113 </li>
114 <li>
115 <ExampleQuery query="README " />
116 <span class="text-sm"> vs </span>
117 <ExampleQuery query="README case:no" />
118 </li>
github.com/sourcegraph/zoekt ignore/ignore_test.go 2 matches | Go | №10 60 {
61 path: "dir1/readme .md",
62 wantMatch: true,
64 {
65 path: "dir1/dir2/readme .md",
66 wantMatch: true,
github.com/sourcegraph/zoekt tombstones.go 1 match | Go | №11 28 } else {
29 repos, _, err = ReadMe tadataPath(shardPath)
30 if err != nil {
github.com/sourcegraph/zoekt build/builder.go 5 matches | Go | №12 383
384 repos, index, err := zoekt.ReadMe tadataPathAlive(fn)
385 if os.IsNotExist(err) {
438
439 repositories, metadata, err := zoekt.ReadMe tadataPathAlive(shard)
440 if err != nil {
478 for _, fn := range compoundShards {
479 repos, _, err := zoekt.ReadMe tadataPathAlive(fn)
480 if err != nil {
676 for _, shard := range oldShards {
677 repositories, _, err := zoekt.ReadMe tadataPathAlive(shard)
678 if err != nil {
1000 var m runtime.MemStats
1001 runtime.ReadMe mStats(&m)
1002
github.com/sourcegraph/zoekt cmd/zoekt/main.go 2 matches | Go | №13 78 if verbose {
79 repo, index, err := zoekt.ReadMe tadata(iFile)
80 if err != nil {
81 iFile.Close()
82 return nil, fmt.Errorf("ReadMe tadata(%s): %v", fn, err)
83 }
github.com/sourcegraph/zoekt cmd/zoekt-test/main.go 2 matches | Go | №14 179 runtime.GC()
180 runtime.ReadMe mStats(&a)
181 start := time.Now()
187 runtime.GC()
188 runtime.ReadMe mStats(&b)
189 log.Printf("%s loaded in %d ms, additional memory consumption: %d MiB", s.String(), duration.Milliseconds(), (b.Alloc-a.Alloc)/1024/1024)
214
215 repos, _, err := zoekt.ReadMe tadata(ifile)
216 if err != nil {
1073 func printMetaData(fn string) error {
1074 repo, indexMeta, err := zoekt.ReadMe tadataPath(fn)
1075 if err != nil {
21 for _, fn := range o.FindAllShards() {
22 repos, md, err := zoekt.ReadMe tadataPath(fn)
23 if err != nil {
205
206 repos, _, err := zoekt.ReadMe tadataPath(path)
207 if err != nil {
199
200 repos, _, err := zoekt.ReadMe tadataPathAlive(path)
201 if err != nil {
233 for _, p := range paths {
234 repos, _, err := zoekt.ReadMe tadataPath(p)
235 if err != nil {
456
457 repos, _, err := zoekt.ReadMe tadataPath(fn)
458 if err != nil {
459 return nil, fmt.Errorf("zoekt.ReadMe tadataPath: %s", err)
460 }
github.com/sourcegraph/zoekt index_test.go 2 matches | Go | №20 2134
2135 rd, _, err := ReadMe tadata(f)
2136 if err != nil {
2137 t.Fatalf("ReadMe tadata: %v", err)
2138 }