Zreby commited on
Commit
91ed042
·
verified ·
1 Parent(s): 32f692a

Rewrite dataset card in English

Browse files
Files changed (1) hide show
  1. README.md +28 -22
README.md CHANGED
@@ -1,7 +1,6 @@
1
  ---
2
- pretty_name: Korpus Kode Keamanan Terkurasi — OWASP Juice Shop dan OpenZeppelin
3
  language:
4
- - id
5
  - en
6
  license: other
7
  size_categories:
@@ -20,21 +19,31 @@ tags:
20
  - yaml
21
  - solidity
22
  ---
 
23
 
24
- # Korpus Kode Keamanan Terkurasi — Non-Juliet
25
 
26
- Rilis ini berisi **88 rekaman non-Juliet** dari dua sumber yang lolos pemeriksaan lisensi untuk subset terpilih: **83 pasangan kandidat/perbaikan OWASP Juice Shop** dan **5 referensi Solidity OpenZeppelin**. **Tidak ada rekaman Juliet/NIST Juliet di repo ini.** Repo tetap privat; status privat tidak menghapus kewajiban lisensi atau atribusi.
27
 
28
- ## Isi rilis
29
-
30
- | Berkas | Rekaman | Isi |
31
  |---|---:|---|
32
- | `data/challenge_fix.jsonl` | 83 | 71 TypeScript dan 12 YAML dari 33 kelompok challenge Juice Shop. |
33
- | `data/reference.jsonl` | 5 | Berkas Solidity OpenZeppelin sebagai referensi, bukan label rentan/aman. |
 
 
 
 
 
 
 
 
 
34
 
35
- Semua rekaman memakai kolom seragam: `id`, `source`, `task_type`, `domain`, `language`, `instruction`, `input`, `output`, `split`, `labels_json`, dan `provenance_json`. Provenance menyimpan URL/path sumber, commit atau versi, lisensi, kebijakan seleksi, dan hash. `MANIFEST.json` mencatat jumlah, bahasa, split, dan SHA-256 berkas final.
36
 
37
- Contoh memuat data:
 
 
38
 
39
  ```python
40
  from datasets import load_dataset
@@ -45,18 +54,15 @@ data = load_dataset("json", data_files={
45
  })
46
  ```
47
 
48
- `challenge_fix` tidak dibagi menjadi train/test: pilihan alternatif dan solusi resmi berasal dari kelompok challenge yang sama, jadi tidak layak dianggap sebagai evaluasi independen. Split `reference` juga bukan data evaluasi keamanan.
49
-
50
- ## Batas label
51
-
52
- Juice Shop menyediakan beberapa alternatif code-fix dan file yang berakhiran `_correct`. Label hanya menyatakan bahwa upstream menandai satu alternatif sebagai benar dalam challenge tersebut. Alternatif lain diberi label `not_marked_correct`, **bukan** otomatis “vulnerable”; solusi challenge juga bukan jaminan keamanan universal. Penjelasan berasal dari metadata `.info.yml`, dan tidak ada CWE yang direka untuk sampel.
53
-
54
- Berkas OpenZeppelin adalah referensi komponen library, bukan contoh rentan, bukan aplikasi lengkap, dan bukan audit sistem yang mengintegrasikannya.
55
 
56
- ## Lisensi dan provenance
 
 
 
57
 
58
- OpenZeppelin Contracts v5.7.0 dan subset Juice Shop yang dipilih memakai MIT. Salinan teks MIT asli disertakan di `OPENZEPPELIN-MIT.txt` dan `LICENSES/OWASP-JUICE-SHOP-MIT.txt`. Companion guide OWASP Juice Shop tidak disalin karena memiliki lisensi berbeda. Tidak ada satu lisensi gabungan yang diterapkan ke semua subset; lihat `DATA_SOURCES.md`, `CURATION_DECISIONS.md`, `NON_JULIET_AUDIT.md`, dan metadata per rekaman sebelum memakai atau membagikan kode.
59
 
60
- ## Reproduksi
61
 
62
- Pipeline ini hanya mengambil sumber non-Juliet yang dipatok. Dari direktori rilis, jalankan `pip install -r requirements.txt`, lalu `python3 prepare_openzeppelin.py`, `python3 scrape_juice_shop.py`, dan `python3 build_release.py`. Hasil perantara ada di `staging/`, bukan bagian dari data final. Tautan sumber, lisensi, dan prosedur seleksi ada di `DATA_SOURCES.md`.
 
1
  ---
2
+ pretty_name: "Curated Secure-Coding Dataset: OWASP Juice Shop and OpenZeppelin"
3
  language:
 
4
  - en
5
  license: other
6
  size_categories:
 
19
  - yaml
20
  - solidity
21
  ---
22
+ # Curated Secure-Coding Dataset: OWASP Juice Shop and OpenZeppelin
23
 
24
+ This release contains **88 records** for secure-code review and code-fix research: **83 OWASP Juice Shop challenge records** across 33 challenge groups (71 TypeScript and 12 YAML), plus **5 Solidity reference records** from OpenZeppelin Contracts v5.7.0.
25
 
26
+ ## Files and splits
27
 
28
+ | File | Records | Contents |
 
 
29
  |---|---:|---|
30
+ | `data/challenge_fix.jsonl` | 83 | TypeScript and YAML candidate/fix records from OWASP Juice Shop code-fix challenges. |
31
+ | `data/reference.jsonl` | 5 | Solidity library components from OpenZeppelin Contracts v5.7.0. |
32
+
33
+ The `split` field uses `challenge_fix` and `reference` to identify these two record groups. These are **not** conventional train, validation, or test partitions.
34
+
35
+ ## Sources and selection
36
+
37
+ - **OWASP Juice Shop:** Selected first-party TypeScript and YAML code-fix challenge material with accompanying challenge metadata. The source is pinned to [commit `c9f99228d9d56afb5f5ca7925376292f7fa44b13`](https://github.com/juice-shop/juice-shop/tree/c9f99228d9d56afb5f5ca7925376292f7fa44b13). Challenge explanations and source paths are retained with the records.
38
+ - **OpenZeppelin Contracts:** Five Solidity components from [version v5.7.0](https://github.com/OpenZeppelin/openzeppelin-contracts/tree/v5.7.0): `ERC20.sol`, `Ownable.sol`, `AccessControl.sol`, `ReentrancyGuard.sol`, and `Pausable.sol`.
39
+
40
+ Each record includes source and provenance metadata. The `MANIFEST.json` file records dataset totals and SHA-256 checksums for the JSONL files.
41
 
42
+ ## Record format
43
 
44
+ Each JSONL record contains: `id`, `source`, `task_type`, `domain`, `language`, `instruction`, `input`, `output`, `split`, `labels_json`, and `provenance_json`. The label and provenance fields preserve structured challenge labels and source details.
45
+
46
+ To load the files locally with the `datasets` library:
47
 
48
  ```python
49
  from datasets import load_dataset
 
54
  })
55
  ```
56
 
57
+ ## Label interpretation and limitations
 
 
 
 
 
 
58
 
59
+ - In the Juice Shop records, an upstream `*_correct` solution is labeled as marked correct for its challenge. Other selected alternatives are labeled as not marked correct by that challenge; this does **not** assert that an alternative is vulnerable.
60
+ - Challenge labels are specific to their upstream exercises. They are not a universal security guarantee, and the reference components are not vulnerability labels or application audits.
61
+ - The challenge records do not have an independent train/test split. Related records from the same challenge group should not be treated as independent evaluation examples.
62
+ - The OpenZeppelin records are library-component references, not complete applications or labeled safe/unsafe examples.
63
 
64
+ ## Licensing and attribution
65
 
66
+ The selected OWASP Juice Shop files at the pinned source commit are covered by the upstream MIT license. The selected OpenZeppelin files identify MIT licensing in their source headers. The corresponding license texts are included as `LICENSES/OWASP-JUICE-SHOP-MIT.txt` and `OPENZEPPELIN-MIT.txt`. Retain the applicable copyright and permission notices when redistributing the corresponding code.
67
 
68
+ No single license is asserted for every file in this repository. Review the relevant source and per-record provenance before reusing or redistributing material. See the [OWASP Juice Shop license at the pinned commit](https://raw.githubusercontent.com/juice-shop/juice-shop/c9f99228d9d56afb5f5ca7925376292f7fa44b13/LICENSE) and the [OpenZeppelin v5.7.0 source](https://github.com/OpenZeppelin/openzeppelin-contracts/tree/v5.7.0).