zoekt: 214 files / 1781 matches / 4.31ms neogrok: 20 files / 132 matches

github.com/sourcegraph/zoektdoc/faq.md 6 matches | Markdown | №1

5 Software engineering is more about reading than writing code, and part6 of this process is finding the code that you should read. If you are7 working on a large project, then finding source code through
34 approximate query, and then refine it based on results you got. For35 this to work, you need the following features:36
53 * Coverage: `zoekt` comes with tools to mirror parts of common Git54 hosting sites. `cs.bazel.build` uses this to index most of the55 Google authored open source software on github.com and
58 * Speed: `zoekt` uses an index based on positional trigrams. For rare59 strings, eg. `nienhuys`, this typically yields results in ~10ms if60 the operating system caches are warm.
73 74 ## How does this compare to `grep -r`?75

github.com/sourcegraph/zoektinternal/e2e/testdata/assets_are_not_configured_for_this_binary.txt 2 matches | Text | №2

1 queryString: assets are not configured for this binary2 query: (and substr:"assets" substr:"are" substr:"not" substr:"configured" substr:"for" substr:"this" substr:"binary")3 targetRank: 1

github.com/sourcegraph/zoektapi.go 47 matches | Go | №3

3 // Licensed under the Apache License, Version 2.0 (the "License");4 // you may not use this file except in compliance with the License.5 // You may obtain a copy of the License at
83 84 // RepositoryID is a Sourcegraph extension. This is the ID of Repository in85 // Sourcegraph.
146 147 // Ranges is a set of matching ranges within this chunk. Each range is relative148 // to the beginning of the file (not the beginning of Content).
154 155 // FileName indicates whether this match is a match on the file name, in156 // which case Content will contain the file name.
231 // The byte offset of the first byte past the end of the line.232 // This is usually the byte after the terminating newline, but can also be233 // the end of the file if there is no terminating newline

github.com/sourcegraph/zoekttoc.go 5 matches | Go | №4

3 // Licensed under the Apache License, Version 2.0 (the "License");4 // you may not use this file except in compliance with the License.5 // You may obtain a copy of the License at
49 // compatibility. For example, if a new way to encode filenameNgrams on disk is50 // added using a new section but the old one is retained, this would only bump51 // FeatureVersion, since the previous version can read the file and ignore the
57 // longer valid.58 // In this way, compatibility with arbitrary version offsets can be indicated.59
104 func (t *indexTOC) sections() []section {105 // This old sections list is only needed to maintain backwards compatibility,106 // and can be removed when a migration to tagged sections is complete.107 return []section{108 // This must be first, so it can be reliably read across109 // file format versions.

github.com/isker/neogrokmain.js 2 matches | JavaScript | №5

2 3 // This is the main "production" entrypoint into neogrok. It wraps the SvelteKit4 // server to do some additional things. Note that the vite dev server used by5 // SvelteKit bypasses this module entirely, as it's a fundamentally different6 // entrypoint.

github.com/sourcegraph/zoektbits.go 4 matches | Go | №6

3 // Licensed under the Apache License, Version 2.0 (the "License");4 // you may not use this file except in compliance with the License.5 // You may obtain a copy of the License at
351 //352 // This is very rarely a slight pessimization on repos where there are frequent353 // non-ASCII characters.
379 //380 // It does this by finding the nearest point to interpolate from in the map.381 func (m runeOffsetMap) lookup(runeOffset uint32) (uint32, uint32) {
389 // but we want to find the *last* index for which the predicate is true.390 // This involves some work to reverse the index directions.391 idx := sort.Search(slen, func(i int) bool {

github.com/sourcegraph/zoektread.go 8 matches | Go | №7

3 // Licensed under the Apache License, Version 2.0 (the "License");4 // you may not use this file except in compliance with the License.5 // You may obtain a copy of the License at
155 } else {156 // TODO: Remove this branch when ReaderMinFeatureVersion >= 10157
421 // Sourcegraph specific: we support mutating metadata via an additional422 // ".meta" file. This is to support tombstoning. An additional benefit is we423 // can update metadata (such as Rank and Name) without re-indexing content.
487 func (d *indexData) verify() error {488 // This is not an exhaustive check: the postings can easily489 // generate OOB acccesses, and are expensive to check, but this lets us rule out490 // other sources of OOB access.

github.com/sourcegraph/zoekteval.go 9 matches | Go | №8

3 // Licensed under the Apache License, Version 2.0 (the "License");4 // you may not use this file except in compliance with the License.5 // You may obtain a copy of the License at
87 // For index files that haven't been re-indexed by go-enry,88 // fall back to file-based matching and continue even if this89 // repo doesn't have the specific language present.
316 // Important invariant for performance: finalCands is sorted by offset and317 // non-overlapping. gatherMatches respects this invariant and all later318 // transformations respect this.319 shouldMergeMatches := !opts.ChunkMatches
371 // have seen all documents containing any of the terms in the query so that df372 // correctly reflects the document frequencies. This is true, for example, if373 // all terms in the query are ORed together.

github.com/sourcegraph/zoektLICENSE 17 matches | Text | №9

9 "License" shall mean the terms and conditions for use, reproduction,10 and distribution as defined by Sections 1 through 9 of this document.11
16 other entities that control, are controlled by, or are under common17 control with that entity. For the purposes of this definition,18 "control" means (i) the power, direct or indirect, to cause the
23 "You" (or "Your") shall mean an individual or Legal Entity24 exercising permissions granted by this License.25
43 represent, as a whole, an original work of authorship. For the purposes44 of this License, Derivative Works shall not include works that remain45 separable from, or merely link (or bind by name) to the interfaces of,
52 or by an individual or Legal Entity authorized to submit on behalf of53 the copyright owner. For the purposes of this definition, "submitted"54 means any form of electronic, verbal, or written communication sent

github.com/sourcegraph/zoektbtree.go 4 matches | Go | №10

150 // postingIndexOffset is the index of the posting list of the first ngram151 // in the bucket. This is enough to determine the index of the posting list152 // for every other key in the bucket.
185 //186 // We split full nodes on the the way down to the leaf. This has the187 // advantage that inserts are handled in a single pass.
293 294 // SizeBytes returns how much memory this structure uses in the heap.295 func (b btreeIndex) SizeBytes() (sz int) {
407 // DumpMap is a debug method which returns the btree as an in-memory408 // representation. This is how zoekt represents the ngram index in409 // google/zoekt.

github.com/sourcegraph/zoektscore.go 6 matches | Go | №11

3 // Licensed under the Apache License, Version 2.0 (the "License");4 // you may not use this file except in compliance with the License.5 // You may obtain a copy of the License at
81 82 // Maintain ordering of input files. This83 // strictly dominates the in-file ordering of
114 //115 // Filename matches count more than content matches. This mimics a common text116 // search strategy where you 'boost' matches on document titles.
155 //156 // This scoring strategy ignores all other signals including document ranks.157 // This keeps things simple for now, since BM25 is not normalized and can be158 // tricky to combine with other scoring signals.

github.com/isker/neogrokLICENSE 2 matches | Text | №12

5 Permission is hereby granted, free of charge, to any person obtaining a copy6 of this software and associated documentation files (the "Software"), to deal7 in the Software without restriction, including without limitation the rights
11 12 The above copyright notice and this permission notice shall be included in all13 copies or substantial portions of the Software.

github.com/sourcegraph/zoektwrite.go 1 match | Go | №13

3 // Licensed under the Apache License, Version 2.0 (the "License");4 // you may not use this file except in compliance with the License.5 // You may obtain a copy of the License at

github.com/isker/neogrokREADME.md 3 matches | Markdown | №14

48 49 The demo deployment is configured [in this repository](./demo). This configuration50 can serve as a guide for your own deployments of neogrok together with zoekt.
111 [`openGrokProjectMappings` configuration](#configuration), which maps OpenGrok112 project names to zoekt repository names. With this data provided, neogrok can113 rewrite OpenGrok queries that include project names appropriately.

github.com/sourcegraph/zoektlimit.go 1 match | Go | №15

90 // of the end of the old last Range and that of the new last Range.91 // This calculation is correct in the presence of both context lines92 // and multiline Ranges, taking into account that Content never has

github.com/sourcegraph/zoektREADME.md 8 matches | Markdown | №16

5 6 This is a fast text search engine, intended for use with source7 code. (Pronunciation: roughly as you would pronounce "zooked" in English)8 9 **Note:** This is a [Sourcegraph](https://github.com/sourcegraph/zoekt) fork10 of [github.com/google/zoekt](https://github.com/google/zoekt). It is now the
96 97 This will mirror all repos under 'github.com/username', 'github.com/org', as98 well as the 'zoekt' repository. It will index the repositories.
115 Thanks to Han-Wen Nienhuys for creating Zoekt. Thanks to Alexander Neubeck for116 coming up with this idea, and helping Han-Wen Nienhuys flesh it out.117
120 121 Originally this fork contained some changes that do not make sense to upstream122 and or have not yet been upstreamed. However, this is now the defacto source123 for Zoekt. This section will remain for historical reasons and contains124 outdated information. It can be removed once the dust settles on moving from

github.com/isker/neogrokyarn.lock 1 match | YAML | №17

1 # This file is generated by running "yarn install" inside your project.2 # Manual changes might be lost - proceed with caution!

github.com/sourcegraph/zoektweb/api.go 3 matches | Go | №18

3 // Licensed under the Apache License, Version 2.0 (the "License");4 // you may not use this file except in compliance with the License.5 // You may obtain a copy of the License at
55 Language string56 // If this was a duplicate result, this will contain the file57 // of the first match.

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

3 // Licensed under the Apache License, Version 2.0 (the "License");4 // you may not use this file except in compliance with the License.5 // You may obtain a copy of the License at
85 // skip advances over the data in the section without reading it.86 // NOTE: the section will not contain valid data after this call, and it should not be used.87 skip(*reader) error

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

3 // Licensed under the Apache License, Version 2.0 (the "License");4 // you may not use this file except in compliance with the License.5 // You may obtain a copy of the License at