MapleBi commited on
Commit
3e558d8
·
verified ·
1 Parent(s): ad7eaf7

Upload with huggingface_hub

Browse files
MANIFEST.sha256 ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ a5d05e8ad6e18b797d5c71fe03c317ffeeab289404f0db0d635ff7e021da5c5c README.md
2
+ d69d22d439f0f1eb1f82b197fb2695e708660b8f0da66e7334a198629259faf5 data/corpus/corpus.jsonl
3
+ ed06dae52c96c84c662714a5adb6a7f23d740937c37b2a89867a97fffeb99786 data/default/dev.jsonl
4
+ 6a196337d7f156f260e181841a125c78d998f115b48de4d50c365d2e7646a05f data/default/test.jsonl
5
+ 5f4767e04e3d7ae589cb3f8fa2866b2b033ede42838397f485abb3d317834fc7 data/queries/dev.jsonl
6
+ 51d4bb5f7ab10678b5a618a27bf6103aaacc49fdaa277d6c12fd0cee701a87cf data/queries/test.jsonl
7
+ 8f27cf4b7281ece34585abf969b6dcb76c8ab719dea80b3b0d16fdae20d58643 dataset_statistics.json
README.md CHANGED
@@ -1,3 +1,84 @@
1
  ---
2
- license: apache-2.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - en
4
+ license: other
5
+ license_name: github-terms-of-service
6
+ task_categories:
7
+ - question-answering
8
+ - information-retrieval
9
+ tags:
10
+ - rag
11
+ - github-issues
12
+ - cross-issue-reasoning
13
+ - silver-labels
14
+ pretty_name: MetaRAG Cross-Issue OSSQA
15
+ size_categories:
16
+ - 10K<n<100K
17
+ configs:
18
+ - config_name: default
19
+ default: true
20
+ data_files:
21
+ - split: dev
22
+ path: data/default/dev.jsonl
23
+ - split: test
24
+ path: data/default/test.jsonl
25
+ - config_name: queries
26
+ data_files:
27
+ - split: dev
28
+ path: data/queries/dev.jsonl
29
+ - split: test
30
+ path: data/queries/test.jsonl
31
+ - config_name: corpus
32
+ data_files:
33
+ - split: corpus
34
+ path: data/corpus/corpus.jsonl
35
  ---
36
+
37
+ # MetaRAG Cross-Issue OSSQA
38
+
39
+ MetaRAG Cross-Issue OSSQA is an English open-source software issue question-answering and retrieval benchmark. Each example asks a question grounded in one GitHub issue and requires evidence from a related issue. The data contains explicit cross-issue references and a three-document silver evidence path.
40
+
41
+ ## Dataset configurations
42
+
43
+ | Configuration | Splits | Rows | Purpose |
44
+ | --- | --- | ---: | --- |
45
+ | `default` | `dev`, `test` | 100 / 400 | Complete evaluation records, including embedded issue fragments and silver labels. |
46
+ | `queries` | `dev`, `test` | 100 / 400 | Retrieval and QA queries with answer and evidence-path supervision. |
47
+ | `corpus` | `corpus` | 9,536 | Deduplicated issue-description and issue-comment fragments for retrieval. This is a knowledge corpus, not a training split. |
48
+
49
+ ## Loading
50
+
51
+ ```python
52
+ from datasets import load_dataset
53
+
54
+ evaluation = load_dataset("<namespace>/metarag-cross-issue-ossqa")
55
+ queries = load_dataset("<namespace>/metarag-cross-issue-ossqa", "queries")
56
+ corpus = load_dataset("<namespace>/metarag-cross-issue-ossqa", "corpus", split="corpus")
57
+ ```
58
+
59
+ ## Main fields
60
+
61
+ `default` includes the query, its known context, answer, source and target issue metadata, `silver_evidence_path`, quality signals, and the ordered `fragments` supporting each example. `queries` is the compact query-level representation. `corpus` contains one searchable fragment per `document_id`, plus issue, repository, author, timestamp, and cross-issue-link metadata.
62
+
63
+ The fields `answer_document_id` and `silver_evidence_path` refer to `corpus.document_id`. `known_context_document_ids` identifies documents supplied as query context; these are excluded from the gold evidence path. `split` is repository-disjoint between `dev` and `test`.
64
+
65
+ ## Data creation
66
+
67
+ The dataset was constructed from public GitHub event data via OpenDigger / GH Archive, from 2022-01-01 through 2025-12-31. It contains 500 qualified cross-issue samples from 468 repositories. The sampling procedure requires an explicit cross-issue reference, a path spanning at least two distinct issues, English-language filtering, deterministic diversity sampling, and repository-disjoint development/test partitions.
68
+
69
+ See `dataset_statistics.json` for the complete sampling settings, quality distribution, year distribution, and leakage audit result.
70
+
71
+ ## Labels and limitations
72
+
73
+ `reference_answer` and `silver_evidence_path` are heuristic silver annotations. They should not be treated as human-validated gold labels without additional review. Source text may contain stale links, personal identifiers visible in public GitHub content, inaccurate technical claims, or other artifacts of public issue discussions.
74
+
75
+ The data is intended for research and evaluation. Users are responsible for ensuring their use complies with the applicable [GitHub Terms of Service](https://docs.github.com/en/site-policy/github-terms/github-terms-of-service), the source platforms' policies, and their own privacy, legal, and ethical requirements.
76
+
77
+ ## Provenance
78
+
79
+ - OpenDigger: <https://github.com/X-lab2017/open-digger>
80
+ - GH Archive: <https://www.gharchive.org/>
81
+
82
+ ## Repository integrity
83
+
84
+ `MANIFEST.sha256` contains SHA-256 checksums for every data file and `dataset_statistics.json` in this package. To regenerate the package from the accompanying source files, remove this output directory and run `python3 prepare_hf_dataset.py`.
data/corpus/corpus.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
data/default/dev.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
data/default/test.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
data/queries/dev.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
data/queries/test.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
dataset_statistics.json ADDED
@@ -0,0 +1,150 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "generated_at": "2026-08-19T16:47:49.148769",
3
+ "source": "OpenDigger / GH Archive public GitHub event log",
4
+ "database": "opensource",
5
+ "time_range": {
6
+ "start": "2022-01-01",
7
+ "end_exclusive": "2026-01-01"
8
+ },
9
+ "candidate_issue_count": 28105,
10
+ "qualified_before_diversity": 950,
11
+ "final_sample_count": 500,
12
+ "repository_count": 468,
13
+ "corpus_fragment_count": 9536,
14
+ "random_seed": 20260820,
15
+ "sampling_strategy": "explicit-reference cross-issue qualification followed by year-quality stratified deterministic random round-robin",
16
+ "path_length_distribution": {
17
+ "3": 500
18
+ },
19
+ "sample_year_distribution": {
20
+ "2016": 2,
21
+ "2017": 3,
22
+ "2018": 3,
23
+ "2019": 2,
24
+ "2020": 9,
25
+ "2021": 38,
26
+ "2022": 116,
27
+ "2023": 121,
28
+ "2024": 111,
29
+ "2025": 95
30
+ },
31
+ "split_distribution": {
32
+ "dev": 100,
33
+ "test": 400
34
+ },
35
+ "cross_repository_sample_count": 105,
36
+ "cross_issue_sample_count": 500,
37
+ "leakage_audit_violations": 0,
38
+ "quality_score": {
39
+ "minimum": 70.0,
40
+ "maximum": 96.0,
41
+ "mean": 88.919,
42
+ "median": 88.0
43
+ },
44
+ "valid_comments_per_sample": {
45
+ "minimum": 3,
46
+ "maximum": 250,
47
+ "mean": 17.072
48
+ },
49
+ "top_repositories": [
50
+ [
51
+ "microsoft/vscode",
52
+ 8
53
+ ],
54
+ [
55
+ "flutter/flutter",
56
+ 5
57
+ ],
58
+ [
59
+ "quarkusio/quarkus",
60
+ 3
61
+ ],
62
+ [
63
+ "microsoft/TypeScript",
64
+ 3
65
+ ],
66
+ [
67
+ "godotengine/godot",
68
+ 3
69
+ ],
70
+ [
71
+ "python/cpython",
72
+ 2
73
+ ],
74
+ [
75
+ "WordPress/gutenberg",
76
+ 2
77
+ ],
78
+ [
79
+ "home-assistant/core",
80
+ 2
81
+ ],
82
+ [
83
+ "vmware-tanzu/velero",
84
+ 2
85
+ ],
86
+ [
87
+ "FlutterFlow/flutterflow-issues",
88
+ 2
89
+ ],
90
+ [
91
+ "wagtail/wagtail",
92
+ 2
93
+ ],
94
+ [
95
+ "sourcegraph/cody",
96
+ 2
97
+ ],
98
+ [
99
+ "open-telemetry/opentelemetry-collector-contrib",
100
+ 2
101
+ ],
102
+ [
103
+ "apache/shardingsphere",
104
+ 2
105
+ ],
106
+ [
107
+ "rails/rails",
108
+ 2
109
+ ],
110
+ [
111
+ "microsoft/vscode-cpptools",
112
+ 2
113
+ ],
114
+ [
115
+ "llvm/llvm-project",
116
+ 2
117
+ ],
118
+ [
119
+ "darthcloud/BlueRetro",
120
+ 2
121
+ ],
122
+ [
123
+ "dotnet/maui",
124
+ 2
125
+ ],
126
+ [
127
+ "gitpod-io/gitpod",
128
+ 2
129
+ ]
130
+ ],
131
+ "selection_rules": {
132
+ "target_samples": 500,
133
+ "candidate_pool_size": 30000,
134
+ "minimum_quality_score": 62.0,
135
+ "max_samples_per_repository": 8,
136
+ "maintainer_associations": [
137
+ "COLLABORATOR",
138
+ "MEMBER",
139
+ "OWNER"
140
+ ],
141
+ "english_only": true,
142
+ "minimum_english_ratio": 0.65,
143
+ "random_seed": 20260820,
144
+ "explicit_reference_required": true,
145
+ "minimum_distinct_issue_ids_in_path": 2,
146
+ "known_query_context_excluded_from_gold_path": true,
147
+ "repository_disjoint_dev_test_split": true
148
+ },
149
+ "annotation_notice": "reference_answer and silver_evidence_path are heuristic silver labels. Human validation is required before reporting gold path metrics."
150
+ }
upload_to_huggingface.py ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from pathlib import Path
2
+
3
+ from huggingface_hub import login, upload_folder
4
+
5
+
6
+ REPO_ID = "MapleBi/MetaRAG_Cross-Issue_OSSQA"
7
+ DATASET_FOLDER = Path(__file__).resolve().parent
8
+
9
+
10
+ def main() -> None:
11
+ login()
12
+ upload_folder(
13
+ folder_path=str(DATASET_FOLDER),
14
+ repo_id=REPO_ID,
15
+ repo_type="dataset",
16
+ )
17
+
18
+
19
+ if __name__ == "__main__":
20
+ main()