-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
take into account filename matches in scores
- Loading branch information
1 parent
5518a5a
commit 6aa80e8
Showing
13 changed files
with
159 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,41 @@ | ||
queryString: generate unit test | ||
query: (and substr:"generate" substr:"unit" substr:"test") | ||
targetRank: 2 | ||
|
||
github.com/sourcegraph/sourcegraph/doc/cody/quickstart.md | ||
72:## 1. Generate a unit test | ||
5:1. Try the `Generate Unit Tests` command | ||
74:To ensure code quality and early bug detection, one of the most useful commands that Cody offers is `Generate Unit Tests`. It quickly helps you write a test code for any snippet that you have highlighted. To generate a unit test for our example function: | ||
hidden 12 more line matches | ||
targetRank: 1 | ||
|
||
**github.com/sourcegraph/cody/lib/shared/src/chat/recipes/generate-test.ts** | ||
14:export class GenerateTest implements Recipe { | ||
15: public id: RecipeID = 'generate-unit-test' | ||
16: public title = 'Generate Unit Test' | ||
hidden 3 more line matches | ||
|
||
github.com/sourcegraph/sourcegraph/cmd/frontend/internal/insights/resolvers/insight_series_resolver.go | ||
300:func (j *seriesResolverGenerator) Generate(ctx context.Context, series types.InsightViewSeries, baseResolver baseInsightResolver, filters types.InsightViewFilters, options types.SeriesDisplayOptions) ([]graphqlbackend.InsightSeriesResolver, error) { | ||
275: Generate(ctx context.Context, series types.InsightViewSeries, baseResolver baseInsightResolver, filters types.InsightViewFilters, options types.SeriesDisplayOptions) ([]graphqlbackend.InsightSeriesResolver, error) | ||
286: generateResolver resolverGenerator | ||
hidden 16 more line matches | ||
|
||
github.com/golang/go/src/cmd/vendor/github.com/google/pprof/internal/report/report.go | ||
87:func Generate(w io.Writer, rpt *Report, obj plugin.ObjTool) error { | ||
187:func (rpt *Report) selectOutputUnit(g *graph.Graph) { | ||
75: SampleUnit string // Unit for the sample data from the profile. | ||
hidden 48 more line matches | ||
|
||
github.com/golang/go/src/cmd/internal/testdir/testdir_test.go | ||
273:type test struct { | ||
74:func Test(t *testing.T) { | ||
263:type testCommon struct { | ||
hidden 120 more line matches | ||
|
||
github.com/golang/go/src/cmd/vendor/github.com/google/pprof/profile/profile.go | ||
65: Unit string // seconds, nanoseconds, bytes, etc | ||
77: NumUnit map[string][]string | ||
68: unitX int64 | ||
hidden 44 more line matches | ||
github.com/sourcegraph/sourcegraph/internal/codeintel/autoindexing/internal/inference/lua/test.lua | ||
9: generate = function(_, paths) | ||
8: -- Invoked as part of unit tests for the autoindexing service | ||
6: patterns = { pattern.new_path_basename "sg-test" }, | ||
hidden 1 more line matches | ||
|
||
github.com/golang/go/src/runtime/mgcpacer_test.go | ||
891:func unit(amp float64) float64Stream { | ||
760:type gcExecTest struct { | ||
16:func TestGcPacer(t *testing.T) { | ||
hidden 72 more line matches | ||
|
||
github.com/golang/go/src/debug/dwarf/entry_test.go | ||
284:func TestUnitIteration(t *testing.T) { | ||
15:func TestSplit(t *testing.T) { | ||
48:func TestReaderSeek(t *testing.T) { | ||
hidden 60 more line matches | ||
|
||
github.com/sourcegraph/sourcegraph/internal/license/license_test.go | ||
75:func TestGenerateParseSignedKey(t *testing.T) { | ||
11:func TestParseTagsInput(t *testing.T) { | ||
32:func TestInfo_EncodeDecode(t *testing.T) { | ||
hidden 21 more line matches | ||
|
||
hidden 244 more file matches |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
queries: 13 | ||
recall@1: 4 (31%) | ||
recall@1: 5 (38%) | ||
recall@5: 9 (69%) | ||
mrr: 0.484271 | ||
mrr: 0.526579 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.