Update README.md
Browse files
README.md
CHANGED
|
@@ -14,9 +14,65 @@ It contains two types: coding repositories and Internet-Drafts/RFCs technical do
|
|
| 14 |
|
| 15 |
We use the "diff" format to represent the "modification" ("snippet" as the second version, first version was trying to restore a complete expression, e.g., a whole function or a natural paragraph.)
|
| 16 |
|
| 17 |
-
The dataset can be downloaded using our provided script: download_CodeConvo.py.
|
| 18 |
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
|
| 21 |
### Citation
|
| 22 |
For data, use cases, and models, please refer to:
|
|
|
|
| 14 |
|
| 15 |
We use the "diff" format to represent the "modification" ("snippet" as the second version, first version was trying to restore a complete expression, e.g., a whole function or a natural paragraph.)
|
| 16 |
|
| 17 |
+
The dataset can be downloaded using our provided script: download_CodeConvo.py. There are two directions: i2c and c2i. Here we borrow the GitHub terms, i (issue) refers to comment/review/feedback, c (code) referes to the edited code or document.
|
| 18 |
|
| 19 |
+
# Dataset Download & Path Resolution Usage
|
| 20 |
+
|
| 21 |
+
## CodeConvo Dataset
|
| 22 |
+
|
| 23 |
+
### Basic Download
|
| 24 |
+
```bash
|
| 25 |
+
# Download entire CodeConvo dataset
|
| 26 |
+
python download_CodeConvo.py
|
| 27 |
+
```
|
| 28 |
+
|
| 29 |
+
### Download Whole Repository with `huggingface-cli`
|
| 30 |
+
```bash
|
| 31 |
+
# Install CLI (if needed)
|
| 32 |
+
pip install -U "huggingface_hub[cli]"
|
| 33 |
+
|
| 34 |
+
# Download full CodeConvo repository to local folder
|
| 35 |
+
huggingface-cli download jiebi/CodeConvo --repo-type dataset --local-dir ./dataset/CodeConvo
|
| 36 |
+
```
|
| 37 |
+
|
| 38 |
+
### Path Resolution Examples
|
| 39 |
+
|
| 40 |
+
**Train split** (structure: `train/{direction}/`)
|
| 41 |
+
```bash
|
| 42 |
+
# Get train/c2i folder (default direction)
|
| 43 |
+
python download_CodeConvo.py --split train
|
| 44 |
+
|
| 45 |
+
# Get train/i2c folder
|
| 46 |
+
python download_CodeConvo.py --split train --direction i2c
|
| 47 |
+
```
|
| 48 |
+
|
| 49 |
+
**Dev/Test splits** (structure: `{repo}/{direction}/{split}/`)
|
| 50 |
+
```bash
|
| 51 |
+
# Get test data for specific repo and direction
|
| 52 |
+
python download_CodeConvo.py --split test --repo ids --direction c2i
|
| 53 |
+
|
| 54 |
+
# Get dev data for kubernetes repo (i2c direction)
|
| 55 |
+
python download_CodeConvo.py --split dev --repo kubernetes --direction i2c
|
| 56 |
+
|
| 57 |
+
# Other repos: ids, ids-supp, swe, kubernetes
|
| 58 |
+
python download_CodeConvo.py --split test --repo swe --direction i2c
|
| 59 |
+
```
|
| 60 |
+
|
| 61 |
+
**Path resolution without downloading**
|
| 62 |
+
```bash
|
| 63 |
+
# Only resolve path, skip download
|
| 64 |
+
python download_CodeConvo.py --split train --no-download
|
| 65 |
+
python download_CodeConvo.py --split test --repo ids --direction c2i --no-download
|
| 66 |
+
```
|
| 67 |
+
|
| 68 |
+
### Notes
|
| 69 |
+
- For `--split train`: `--direction` is optional (defaults to `c2i`)
|
| 70 |
+
- For `--split dev/test`: Both `--repo` and `--direction` are **required**
|
| 71 |
+
- Valid directions: `c2i`, `i2c`
|
| 72 |
+
- Valid repos: `ids`, `ids-supp`, `swe`, `kubernetes`
|
| 73 |
+
|
| 74 |
+
|
| 75 |
+
The data was used for retrieval tasks, for training (https://github.com/cheop-byeon/FlagEmbedding) and for evaluation (https://github.com/cheop-byeon/mteb-R2Gen).
|
| 76 |
|
| 77 |
### Citation
|
| 78 |
For data, use cases, and models, please refer to:
|