zoekt: 277 files / 5872 matches / 52.78ms neogrok: 7 files / 500 matches

github.com/sourcegraph/zoektbtree_test.go 41 matches | Go | №1

9 bt := newBtree(btreeOpts{bucketSize: 2, v: 2})10 insertMany(t, bt, []ngram{1, 2, 3, 4, 5, 6, 7, 8, 9, 10})11 // inner nodes only
24 bt := newBtree(btreeOpts{bucketSize: 4, v: 2})25 insertMany(t, bt, []ngram{1, 2, 3, 4, 5, 6, 7, 8, 9, 10})26 27 buckets := 028 offset := 029 bt.visit(func(no node) {
33 buckets++34 n.postingIndexOffset = offset35 offset += n.bucketSize36 case *innerNode:

github.com/sourcegraph/zoektcontentprovider.go 187 matches | Go | №2

4 // you may not use this file except in compliance with the License.5 // You may obtain a copy of the License at6 //
8 //9 // Unless required by applicable law or agreed to in writing, software10 // distributed under the License is distributed on an "AS IS" BASIS,11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.12 // See the License for the specific language governing permissions and
94 95 // Find offset in bytes (relative to corpus start) for an offset in96 // runes (relative to document start). If filename is set, the corpus97 // is the set of filenames, with the document being the name itself.98 func (p *contentProvider) findOffset(filename bool, r uint32) uint32 {99 if p.id.metaData.PlainASCII {

github.com/sourcegraph/zoektgrpc/protos/zoekt/webserver/v1/webserver.proto 82 matches | Protocol Buffer | №3

48 49 // Return an upper-bound estimate of eligible documents in50 // stats.ShardFilesConsidered.
55 56 // Maximum number of matches: skip all processing an index57 // shard after we found this many non-overlapping matches.58 int64 shard_max_match_count = 3;59 60 // Maximum number of matches: stop looking for more matches61 // once we have this many matches across shards.62 int64 total_max_match_count = 4;

github.com/sourcegraph/zoektsection.go 36 matches | Go | №4

4 // you may not use this file except in compliance with the License.5 // You may obtain a copy of the License at6 //
8 //9 // Unless required by applicable law or agreed to in writing, software10 // distributed under the License is distributed on an "AS IS" BASIS,11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.12 // See the License for the specific language governing permissions and
24 25 // writer is an io.Writer that keeps track of errors and offsets26 type writer struct {

github.com/sourcegraph/zoektinternal/tracer/jaeger.go 3 matches | Go | №5

27 // JAEGER_SAMPLER_* env vars. In most cases, this is sufficient28 // enough to connect to Jaeger without any env vars.29 cfg.Sampler.Type = jaeger.SamplerTypeConst
47 48 // Infof logs a message at info priority49 func (l *jaegerLogger) Infof(msg string, args ...interface{}) {50 log.Printf(msg, args...)

github.com/sourcegraph/zoektapi.go 120 matches | Go | №6

4 // you may not use this file except in compliance with the License.5 // You may obtain a copy of the License at6 //
8 //9 // Unless required by applicable law or agreed to in writing, software10 // distributed under the License is distributed on an "AS IS" BASIS,11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.12 // See the License for the specific language governing permissions and
41 42 // Repository is the globally unique name of the repo of the43 // match

github.com/sourcegraph/zoektgrpc/protos/zoekt/webserver/v1/webserver.pb.go 31 matches | Go | №7

56 func (x FlushReason) String() string {57 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))58 }
105 func (x ListOptions_RepoListField) String() string {106 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))107 }
138 mi := &file_zoekt_webserver_v1_webserver_proto_msgTypes[0]139 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))140 ms.StoreMessageInfo(mi)
144 func (x *SearchRequest) String() string {145 return protoimpl.X.MessageStringOf(x)146 }
152 if protoimpl.UnsafeEnabled && x != nil {153 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))154 if ms.LoadMessageInfo() == nil {