Datasets:

Modalities:
Text
Formats:
parquet
ArXiv:
DOI:
Libraries:
Datasets
pandas
License:
saridormi commited on
Commit
ee669e5
·
1 Parent(s): 9847ee9

add retrieval files and info

Browse files
.gitattributes CHANGED
@@ -53,3 +53,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
53
  *.jpg filter=lfs diff=lfs merge=lfs -text
54
  *.jpeg filter=lfs diff=lfs merge=lfs -text
55
  *.webp filter=lfs diff=lfs merge=lfs -text
 
 
53
  *.jpg filter=lfs diff=lfs merge=lfs -text
54
  *.jpeg filter=lfs diff=lfs merge=lfs -text
55
  *.webp filter=lfs diff=lfs merge=lfs -text
56
+ *.jsonl filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -54,6 +54,14 @@ configs:
54
  data_files:
55
  - split: test
56
  path: commitchronicle-py-long-labels/test-*
 
 
 
 
 
 
 
 
57
  license: apache-2.0
58
  ---
59
 
@@ -157,6 +165,32 @@ For convenience, we also provide a full list of files in [`paths.json`](https://
157
 
158
  After you download and extract the repositories, you can work with each repository either via Git or via Python libraries like [GitPython](https://github.com/gitpython-developers/GitPython) or [PyDriller](https://github.com/ishepard/pydriller).
159
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
160
  # 🏷️ Extra: commit labels
161
 
162
  To facilitate further research, we additionally provide the manual labels for all the 858 commits that made it through initial filtering. The final version of the dataset described above consists of commits labeled either 4 or 5.
@@ -166,7 +200,7 @@ To facilitate further research, we additionally provide the manual labels for al
166
  ```py
167
  from datasets import load_dataset
168
 
169
- dataset = load_dataset("JetBrains-Research/lca-cmg", "labels", split="test")
170
  ```
171
 
172
  Note that all the data we have is considered to be in the test split.
 
54
  data_files:
55
  - split: test
56
  path: commitchronicle-py-long-labels/test-*
57
+ - config_name: retrieval_bm25
58
+ data_files:
59
+ - split: 16k
60
+ path: retrieval/bm25_16k.jsonl
61
+ - split: 32k
62
+ path: retrieval/bm25_32k.jsonl
63
+ - split: 64k
64
+ path: retrieval/bm25_64k.jsonl
65
  license: apache-2.0
66
  ---
67
 
 
165
 
166
  After you download and extract the repositories, you can work with each repository either via Git or via Python libraries like [GitPython](https://github.com/gitpython-developers/GitPython) or [PyDriller](https://github.com/ishepard/pydriller).
167
 
168
+ # Extra: retrieval context
169
+
170
+ To facilitate further research, we additionally provide context for each commit as retrieved by BM25 retriever in `retrieval_bm25` dataset config. For each commit, we run BM25 over all `.py` files in the corresponding repository
171
+ at the state before the commit (excluding the files that were changed in this commit). We retrieve up to 50 files most relevant to the commit diff, and then, given the maximum allowed number of tokens n, we add files until the total context length (including diff)
172
+ in tokens returned by the [DeepSeek-V3 tokenizer](https://huggingface.co/deepseek-ai/DeepSeek-V3) exceeds n, possibly trunctating the last included file.
173
+
174
+ To access these, run the following:
175
+
176
+ ```py
177
+ from datasets import load_dataset
178
+
179
+ dataset = load_dataset("JetBrains-Research/lca-commit-message-generation",
180
+ "retrieval_bm25",
181
+ split="16k" # should be one of: '16k', '32k', '64k'
182
+ )
183
+ ```
184
+
185
+ Each example has the following fields:
186
+
187
+ * `repo`: commit repository
188
+ * `hash`: commit hash
189
+ * `mods`: commit modification (combined into a single diff)
190
+ * `context`: context retrieved for the current commit; a list of dictionaries, where each corresponds to a specific file and has the following keys:
191
+ * `source`: file path
192
+ * `content`: file content
193
+
194
  # 🏷️ Extra: commit labels
195
 
196
  To facilitate further research, we additionally provide the manual labels for all the 858 commits that made it through initial filtering. The final version of the dataset described above consists of commits labeled either 4 or 5.
 
200
  ```py
201
  from datasets import load_dataset
202
 
203
+ dataset = load_dataset("JetBrains-Research/lca-commit-message-generation", "labels", split="test")
204
  ```
205
 
206
  Note that all the data we have is considered to be in the test split.
retrieval/bm25_16k.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:53fc01c919bca0ececa2ccacef6bbc7724376a033cebb588ef2eff6abbd062c3
3
+ size 11163994
retrieval/bm25_32k.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:756303fbdf923f62c5bef944804c1d60a58cf87bc84fb2857e6218f98453a60e
3
+ size 22451962
retrieval/bm25_64k.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2722de392eeccd76c1cdb526aecef78348979018c864c069e70a4f38e990f24e
3
+ size 43690001