zoekt: 281 files / 6044 matches / 47.26ms neogrok: 8 files / 500 matches

github.com/sourcegraph/zoektindex/eval_test.go 24 matches | Go | №1

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
39 syntax.OpCharClass: "OpCharClass",40 syntax.OpAnyCharNotNL: "OpAnyCharNotNL",41 syntax.OpAnyChar: "OpAnyChar",42 syntax.OpBeginLine: "OpBeginLine",

github.com/sourcegraph/zoektindex/btree_test.go 41 matches | Go | №2

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/zoektgrpc/protos/zoekt/webserver/v1/webserver.proto 83 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/zoektindex/contentprovider.go 172 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
93 94 // Find offset in bytes (relative to corpus start) for an offset in95 // runes (relative to document start). If filename is set, the corpus96 // is the set of filenames, with the document being the name itself.97 func (p *contentProvider) findOffset(filename bool, r uint32) uint32 {98 if p.id.metaData.PlainASCII {

github.com/sourcegraph/zoektindex/section.go 36 matches | Go | №5

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 4 matches | Go | №6

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 ...any) {50 log.Printf(msg, args...)

github.com/sourcegraph/zoektapi.go 124 matches | Go | №7

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 16 matches | Go | №8

1923 1924 // Offset within the line, in bytes.1925 LineOffset int64 `protobuf:"varint,1,opt,name=line_offset,json=lineOffset,proto3" json:"line_offset,omitempty"`1926 // Offset from file start, in bytes.1927 Offset uint32 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"`1928 // Number bytes that match.