​

zoekt: 257 files / 5956 matches / 41.58ms neogrok: 7 files / 500 matches

neogrokindex/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",

neogrokindex/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:

neogrokgrpc/protos/zoekt/webserver/v1/webserver.proto 84 matches | Protocol Buffer | №3

49 50 // Return an upper-bound estimate of eligible documents in51 // stats.ShardFilesConsidered.
56 57 // Maximum number of matches: skip all processing an index58 // shard after we found this many non-overlapping matches.59 int64 shard_max_match_count = 3;60 61 // Maximum number of matches: stop looking for more matches62 // once we have this many matches across shards.63 int64 total_max_match_count = 4;

neogrokindex/contentprovider.go 199 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
100 if err != nil {101 p.panicCorrupt(fmt.Errorf("reading newline offsets: %w", err))102 }

neogrokindex/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 {

neogrokinternal/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...)

neogrokapi.go 112 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