zoekt: 27 files / 69 matches / 0.59ms neogrok: 20 files / 55 matches

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

578 579 // ReadMetadata returns the metadata of index shard without reading580 // the index data. The IndexFile is not closed.581 func ReadMetadata(inf IndexFile) ([]*Repository, *IndexMetadata, error) {582 rd := &reader{r: inf}
590 591 // ReadMetadataPathAlive is like ReadMetadataPath except that it only returns592 // alive repositories.593 func ReadMetadataPathAlive(p string) ([]*Repository, *IndexMetadata, error) {594 repos, id, err := ReadMetadataPath(p)595 if err != nil {

github.com/isker/neogrokREADME.md 1 match | Markdown | №2

github.com/sourcegraph/zoektREADME.md 1 match | Markdown | №3

github.com/sourcegraph/zoektinternal/syntaxutil/README.md 1 match | Markdown | №4

github.com/sourcegraph/zoektread_test.go 3 matches | Go | №5

439 440 func BenchmarkReadMetadata(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 := ReadMetadata(indexFile)457 if err != nil {458 b.Fatalf("ReadMetadata failed: %v", err)459 }

github.com/sourcegraph/zoektinternal/archive/index.go 1 match | Go | №6

46 // https://github.com/octokit/octokit.rb/commit/3d21ec53a331a6f037a91c368710b99387d012c147 // https://github.com/octokit/octokit.rb/blob/master/README.md48 // https://github.com/octokit/octokit.rb/tree/master/lib

github.com/isker/neogroksrc/routes/syntax/+page.svelte 9 matches | Svelte | №7

129 a file and in the <em>name</em> of the file:130 <ExampleQuery query="README" /> matches both file names and file contents (though131 the search engine tends to rank files containing file name matches higher than
135 with136 <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 in143 the content of files.
176 <td class="p-1">177 <ExampleQuery query="f:README" />178 <br />179 <ExampleQuery query="f:README neogrok" />180 <br />

github.com/isker/neogroksrc/routes/(search-page)/lander.svelte 5 matches | Svelte | №8

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/zoektignore/ignore_test.go 2 matches | Go | №9

60 {61 path: "dir1/readme.md",62 wantMatch: true,
64 {65 path: "dir1/dir2/readme.md",66 wantMatch: true,

github.com/sourcegraph/zoekttombstones.go 1 match | Go | №10

28 } else {29 repos, _, err = ReadMetadataPath(shardPath)30 if err != nil {

github.com/sourcegraph/zoektbuild/builder.go 5 matches | Go | №11

386 387 repos, index, err := zoekt.ReadMetadataPathAlive(fn)388 if os.IsNotExist(err) {
441 442 repositories, metadata, err := zoekt.ReadMetadataPathAlive(shard)443 if err != nil {
481 for _, fn := range compoundShards {482 repos, _, err := zoekt.ReadMetadataPathAlive(fn)483 if err != nil {
679 for _, shard := range oldShards {680 repositories, _, err := zoekt.ReadMetadataPathAlive(shard)681 if err != nil {
1003 var m runtime.MemStats1004 runtime.ReadMemStats(&m)1005

github.com/sourcegraph/zoektcmd/zoekt/main.go 2 matches | Go | №12

75 if verbose {76 repo, index, err := zoekt.ReadMetadata(iFile)77 if err != nil {78 iFile.Close()79 return nil, fmt.Errorf("ReadMetadata(%s): %v", fn, err)80 }

github.com/sourcegraph/zoektcmd/zoekt-test/main.go 2 matches | Go | №13

179 runtime.GC()180 runtime.ReadMemStats(&a)181 start := time.Now()
187 runtime.GC()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)

github.com/sourcegraph/zoektcmd/zoekt-indexserver/main.go 1 match | Go | №14

214 215 repos, _, err := zoekt.ReadMetadata(ifile)216 if err != nil {

github.com/sourcegraph/zoektcmd/zoekt-sourcegraph-indexserver/main.go 1 match | Go | №15

1061 func printMetaData(fn string) error {1062 repo, indexMeta, err := zoekt.ReadMetadataPath(fn)1063 if err != nil {

github.com/sourcegraph/zoektcmd/zoekt-sourcegraph-indexserver/meta.go 1 match | Go | №16

21 for _, fn := range o.FindAllShards() {22 repos, md, err := zoekt.ReadMetadataPath(fn)23 if err != nil {

github.com/sourcegraph/zoektcmd/zoekt-sourcegraph-indexserver/merge.go 1 match | Go | №17

206 207 repos, _, err := zoekt.ReadMetadataPath(path)208 if err != nil {

github.com/sourcegraph/zoektcmd/zoekt-sourcegraph-indexserver/cleanup.go 4 matches | Go | №18

200 201 repos, _, err := zoekt.ReadMetadataPathAlive(path)202 if err != nil {
234 for _, p := range paths {235 repos, _, err := zoekt.ReadMetadataPath(p)236 if err != nil {
452 453 repos, _, err := zoekt.ReadMetadataPath(fn)454 if err != nil {455 return nil, fmt.Errorf("zoekt.ReadMetadataPath: %s", err)456 }

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

2000 2001 rd, _, err := ReadMetadata(f)2002 if err != nil {2003 t.Fatalf("ReadMetadata: %v", err)2004 }

github.com/sourcegraph/zoektmerge_test.go 1 match | Go | №20

39 // non-determinism when building a new shard.40 repoMeta, indexMeta, err := ReadMetadata(indexFile)41 if err != nil {