-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathqueries.yaml
More file actions
94 lines (82 loc) · 3.54 KB
/
Copy pathqueries.yaml
File metadata and controls
94 lines (82 loc) · 3.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# Ground truth for B3 — Search Quality (self-repo corpus: CALM itself).
#
# Each query is a short, realistic phrase an agent would actually pass to
# `search`/`locate` (2-4 words — not a full sentence: `search`'s `kind=symbol`
# wraps the whole query as one FTS5 phrase match, so multi-word natural-
# language questions rarely match anything; this is a real, verified
# property of the current implementation, not an assumption).
#
# relevant: graded relevance for NDCG. 2 = the ideal top result. 1 = a
# related-enough symbol that a reasonable agent would accept, if any exists
# (often the target's own unit test, living in the same file). Anything not
# listed is 0. All (name, path) pairs below were verified against a real
# index of this repo at the time of writing (see naming — do not rename the
# referenced symbols without updating this file).
#
# grep_pattern: single keyword a person "just grepping" would plausibly
# search for — deliberately NOT the exact target symbol name (that would be
# cheating the naive baseline) — used to compute the naive-grep comparison
# ranking (file-scan order, no relevance ranking at all).
queries:
- id: cyclomatic_complexity
query: "cyclomatic complexity"
grep_pattern: complexity
relevant:
- { name: compute_cyclomatic_complexity, path: crates/calm-core/src/indexer/parser.rs, grade: 2 }
- id: detect_is_test
query: "detect is test"
grep_pattern: is_test
relevant:
- { name: detect_is_test, path: crates/calm-core/src/indexer/parser.rs, grade: 2 }
- id: noise_multiplier
query: "noise multiplier"
grep_pattern: noise
relevant:
- { name: noise_multiplier, path: crates/calm-core/src/search.rs, grade: 2 }
- { name: test_noise_multiplier_values, path: crates/calm-core/src/search.rs, grade: 1 }
- id: rrf_merge
query: "rrf merge"
grep_pattern: rrf
relevant:
- { name: rrf_merge_n, path: crates/calm-core/src/search.rs, grade: 2 }
- id: sanitize_source_output
query: "sanitize source output"
grep_pattern: sanitize
relevant:
- { name: sanitize_source_output, path: crates/calm-core/src/sanitize.rs, grade: 2 }
- id: detect_injection_patterns
query: "detect injection patterns"
grep_pattern: injection
relevant:
- { name: detect_injection_patterns, path: crates/calm-core/src/sanitize.rs, grade: 2 }
- id: compute_hotspots
query: "compute hotspots"
grep_pattern: hotspot
relevant:
- { name: compute_hotspots, path: crates/calm-core/src/analysis/hotspot.rs, grade: 2 }
- id: fitness_thresholds
query: "fitness thresholds"
grep_pattern: threshold
relevant:
- { name: FitnessThresholds, path: crates/calm-core/src/fitness.rs, grade: 2 }
- id: compute_coreness
query: "compute coreness"
grep_pattern: coreness
relevant:
- { name: compute_coreness, path: crates/calm-core/src/graph/coreness.rs, grade: 2 }
- id: update_is_hub_flags
query: "update is hub flags"
grep_pattern: is_hub
relevant:
- { name: update_is_hub_flags, path: crates/calm-core/src/graph/hub.rs, grade: 2 }
- id: dead_code_confidence
query: "dead code confidence"
grep_pattern: dead_code
relevant:
- { name: compute_dead_code_confidence, path: crates/calm-core/src/analysis/dead_code.rs, grade: 2 }
- id: resolve_symbol
query: "resolve symbol"
grep_pattern: resolve
relevant:
- { name: resolve_symbol, path: crates/calm-server/src/tools.rs, grade: 2 }
- { name: resolve_symbol_candidates, path: crates/calm-server/src/tools.rs, grade: 1 }