zoekt: 12 files / 64 matches / 0.55ms neogrok: 12 files / 64 matches

neogrokinternal/e2e/examples/example.cc 13 matches | C++ | №1

8 9 struct FooStruct { }; // LF_STRUCTURE10 11 class FooClass { // LF_CLASS12 public:
33 34 void *FooClass::StaticMember = nullptr;35 36 class Inherit : public FooClass { // LF_BCLASS37 public:
41 42 class VInherit : public virtual FooClass { // LF_VBCLASS43

neogrokdoc/design.md 2 matches | Markdown | №2

250 251 (sym:foo) => Symbol:"foo"252 (file:java) => Substring_file:"java"

neogroklanguages/extensions.go 2 matches | Go | №3

176 for ext := range overrideAmbiguousExtensionsMap {177 langs := enry.GetLanguagesByExtension("foo"+ext, nil, nil)178 for _, lang := range langs {
189 considered[lang] = struct{}{}190 langs := enry.GetLanguagesByExtension("foo"+specialOverrideExt, nil, nil)191 for _, lang := range langs {

neogrokinternal/e2e/examples/example.py 2 matches | Python | №4

48 49 # vvv recursive.foo ref,nodef50 recursive = recursive.foo51

neogrokindex/index_test.go 9 matches | Go | №5

600 Q: &query.Substring{601 Pattern: "foo",602 Content: true,
612 &query.Substring{613 Pattern: "foo",614 Content: true,
625 ShardsSkippedFilter: 1,626 NgramLookups: 3, // we lookedup "foo" once (1), but lookedup and created "a y" (2).627 },
1243 Document{Name: "helpers.go", Content: []byte("x apple y")},1244 Document{Name: "foo", Content: []byte("x apple y")})1245
1679 &query.Substring{Pattern: "needle"},1680 &query.Repo{Regexp: regexp.MustCompile("foo")},1681 ))

neogrokquery/query_test.go 8 matches | Go | №6

103 func TestMap(t *testing.T) {104 in := NewAnd(&Substring{Pattern: "bla"}, &Not{&Repo{Regexp: regexp.MustCompile("foo")}})105 out := NewAnd(&Substring{Pattern: "bla"}, &Not{&Const{false}})
130 func TestExpandFileContent(t *testing.T) {131 re, _ := syntax.Parse("foo", syntax.Perl)132
155 q: &Regexp{Regexp: re, FileName: true, Content: true},156 want: "(or file_regex:\"foo\" regex:\"foo\")",157 },
159 q: &Regexp{Regexp: re, FileName: false, Content: false},160 want: "(or file_regex:\"foo\" regex:\"foo\")",161 },

neogrokindex/file_category_test.go 5 matches | Go | №7

15 name: "test file",16 filename: "foo_test.go",17 content: []byte("package foo"),18 want: FileCategoryTest,
21 name: "vendor file",22 filename: "vendor/foo.go",23 content: []byte("package foo"),24 want: FileCategoryVendored,
27 name: "generated file",28 filename: "foo.go",29 content: []byte("// Code generated by protoc-gen-go. DO NOT EDIT.\n" +

neogrokinternal/e2e/scoring_test.go 2 matches | Go | №8

423 content: exampleCpp,424 query: &query.Substring{Content: true, Pattern: "FooClass"},425 language: "C++",
447 content: exampleCpp,448 query: &query.Substring{Content: true, Pattern: "FooStruct"},449 language: "C++",

neogroklanguages/extensions_test.go 6 matches | Go | №9

95 for ext, language := range unsupportedByEnryExtensionToNameMap {96 filename := "foo" + ext97 languages, _ := getLanguagesByExtension(filename)
104 for ext, language := range overrideAmbiguousExtensionsMap {105 filename := "foo" + ext106 enryLangs := enry.GetLanguagesByExtension(filename, nil, nil)
117 for ext, language := range nonAmbiguousExtensionsCheck {118 filename := "foo" + ext119 languages, isLikelyBinaryFile := getLanguagesByExtension(filename)
127 for _, ext := range []string{".png", ".jpg", ".gif"} {128 filename := "foo" + ext129 _, isLikelyBinary := getLanguagesByExtension(filename)
137 for ext, overrideLang := range overrideAmbiguousExtensionsMap {138 filepath := "foo" + ext139 enryLangsForExt := enry.GetLanguagesByExtension(filepath, nil, nil)

neogrokcmd/zoekt-sourcegraph-indexserver/merge_test.go 1 match | Go | №10

29 {"small.00000.zoekt", false},30 {"compound-foo.00000.zoekt", false},31 {"else", false},

neogrokcmd/zoekt-sourcegraph-indexserver/backoff_test.go 13 matches | Go | №11

14 queue := NewQueue(backoffDuration, maxBackoffDuration, logtest.Scoped(t))15 opts := IndexOptions{RepoID: 1, Name: "foo"}16
41 queue := NewQueue(backoffDuration, maxBackoffDuration, logtest.Scoped(t))42 opts := IndexOptions{RepoID: 1, Name: "foo"}43
66 queue := NewQueue(backoffDuration, maxBackoffDuration, logtest.Scoped(t))67 opts := IndexOptions{RepoID: 1, Name: "foo"}68
91 queue := NewQueue(backoffDuration, maxBackoffDuration, logtest.Scoped(t))92 opts := IndexOptions{RepoID: 1, Name: "foo"}93
130 queue := NewQueue(backoffDuration, maxBackoffDuration, logtest.Scoped(t))131 opts := IndexOptions{RepoID: 1, Name: "foo"}132

neogroklanguages/languages.go 1 match | Go | №12

178 //179 // 1. This method is not 100% foolproof, as it relies on conventions180 // around file paths which may or may not be followed.