Add labeled Juliet pilot without replacing source subset
Browse filesAdd the local labeled pilot under labeled/ and update the dataset card with both versions, label and split distributions, and documented limitations. Keep the repository private and preserve root-level source files.
- README.md +52 -46
- labeled/README.md +55 -0
- labeled/group_assignments.csv +0 -0
- labeled/juliet_files_labeled.jsonl +0 -0
- labeled/juliet_functions_labeled.jsonl +0 -0
- labeled/juliet_functions_review.jsonl +0 -0
- labeled/juliet_label_review.csv +0 -0
- labeled/manifest.json +105 -0
- labeled/split_summary.csv +40 -0
README.md
CHANGED
|
@@ -10,84 +10,90 @@ tags:
|
|
| 10 |
- Juliet
|
| 11 |
size_categories: n<1K
|
| 12 |
---
|
| 13 |
-
|
| 14 |
# NIST C/C++ Security Samples
|
| 15 |
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
> This repository is private. It contains synthetic test code, not production code. Samples were not compiled or executed during export.
|
| 19 |
-
|
| 20 |
-
## Dataset contents
|
| 21 |
-
|
| 22 |
-
There are **960 source files**: 80 samples for each of the following 12 CWE families:
|
| 23 |
|
| 24 |
-
|
| 25 |
-
|---|---:|
|
| 26 |
-
| CWE-121 | 80 |
|
| 27 |
-
| CWE-122 | 80 |
|
| 28 |
-
| CWE-134 | 80 |
|
| 29 |
-
| CWE-190 | 80 |
|
| 30 |
-
| CWE-191 | 80 |
|
| 31 |
-
| CWE-369 | 80 |
|
| 32 |
-
| CWE-400 | 80 |
|
| 33 |
-
| CWE-401 | 80 |
|
| 34 |
-
| CWE-415 | 80 |
|
| 35 |
-
| CWE-416 | 80 |
|
| 36 |
-
| CWE-457 | 80 |
|
| 37 |
-
| CWE-476 | 80 |
|
| 38 |
|
| 39 |
-
|
| 40 |
|
| 41 |
-
##
|
| 42 |
|
| 43 |
-
- `juliet_samples.jsonl`
|
| 44 |
-
- `sample_index.csv` — metadata index without duplicating the source code.
|
| 45 |
-
- `manifest.json` — selection method, distributions, quality checks, and checksums for the export and source archive.
|
| 46 |
-
- `README.md` — this dataset card.
|
| 47 |
|
| 48 |
-
|
| 49 |
|
| 50 |
-
|
| 51 |
|
| 52 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 53 |
|
| 54 |
## Load in Google Colab
|
| 55 |
|
| 56 |
-
|
| 57 |
|
| 58 |
```python
|
| 59 |
from huggingface_hub import notebook_login
|
| 60 |
notebook_login()
|
| 61 |
```
|
| 62 |
|
| 63 |
-
|
| 64 |
|
| 65 |
```python
|
| 66 |
from datasets import load_dataset
|
| 67 |
-
|
| 68 |
-
ds = load_dataset(
|
| 69 |
"Zreby/nist-c-cpp-security-samples",
|
| 70 |
data_files="juliet_samples.jsonl",
|
| 71 |
split="train",
|
| 72 |
)
|
| 73 |
-
print(ds[0]["cwe_id"], ds[0]["archive_member"])
|
| 74 |
```
|
| 75 |
|
| 76 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 77 |
|
| 78 |
-
`
|
| 79 |
|
| 80 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 81 |
|
| 82 |
-
|
| 83 |
|
| 84 |
-
|
| 85 |
|
| 86 |
-
##
|
| 87 |
|
| 88 |
-
-
|
| 89 |
-
-
|
|
|
|
|
|
|
|
|
|
| 90 |
|
| 91 |
-
NIST’s notice identifies material for which NIST holds the rights as public domain in the United States and CC0 1.0 to the extent applicable rights are held by NIST outside the United States. This
|
| 92 |
|
| 93 |
-
The manifest records the SHA-256 checksum of
|
|
|
|
| 10 |
- Juliet
|
| 11 |
size_categories: n<1K
|
| 12 |
---
|
|
|
|
| 13 |
# NIST C/C++ Security Samples
|
| 14 |
|
| 15 |
+
This **private** dataset repository contains two related exports from the official **NIST SARD Juliet C/C++ 1.3** test suite. “Juliet” identifies the source provenance, not the repository name. The original source subset remains at the repository root; the additional labeled pilot is stored separately in `labeled/`.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
|
| 17 |
+
The code is synthetic test code, not production code. No sample was compiled or executed during preparation.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
|
| 19 |
+
## Two dataset versions
|
| 20 |
|
| 21 |
+
### Original source subset (repository root)
|
| 22 |
|
| 23 |
+
The root-level `juliet_samples.jsonl` and `sample_index.csv` contain **960 source files**, selected as the first 80 eligible files for each of 12 CWE families in upstream ZIP order. This selection is deterministic, not random, and is not representative of the full Juliet suite or all C/C++ code. In the original export, `split` is `unassigned`.
|
|
|
|
|
|
|
|
|
|
| 24 |
|
| 25 |
+
### Labeled pilot (`labeled/`)
|
| 26 |
|
| 27 |
+
This folder contains a function-level label export and the corresponding file-level records, review artifacts, group assignments, split summaries, and manifest. It is derived from the same 960-file pilot; root-level files were not replaced.
|
| 28 |
|
| 29 |
+
| File under `labeled/` | Contents |
|
| 30 |
+
|---|---|
|
| 31 |
+
| `juliet_functions_labeled.jsonl` | Recommended supervised-learning table: one row per labeled function, with `good` or `bad` label and an explicit group split. |
|
| 32 |
+
| `juliet_files_labeled.jsonl` | Source-file records with group/split metadata and observed function labels; `file_label` is null by design. |
|
| 33 |
+
| `juliet_functions_review.jsonl` | Partial helper functions intentionally left unlabeled for review. |
|
| 34 |
+
| `juliet_label_review.csv` | Files with partial helper roles or no confidently labeled function. |
|
| 35 |
+
| `group_assignments.csv` | Auditable assignment of normalized Juliet case families to splits. |
|
| 36 |
+
| `split_summary.csv` | File and labeled-function counts by CWE and split. |
|
| 37 |
+
| `manifest.json` | Source checksum, annotation and split policies, counts, quality checks, and output checksums. |
|
| 38 |
+
| `README.md` | Usage notes and details for the labeled pilot. |
|
| 39 |
|
| 40 |
## Load in Google Colab
|
| 41 |
|
| 42 |
+
For this private repository, authenticate with an account that has access:
|
| 43 |
|
| 44 |
```python
|
| 45 |
from huggingface_hub import notebook_login
|
| 46 |
notebook_login()
|
| 47 |
```
|
| 48 |
|
| 49 |
+
Load the original source export:
|
| 50 |
|
| 51 |
```python
|
| 52 |
from datasets import load_dataset
|
| 53 |
+
source = load_dataset(
|
|
|
|
| 54 |
"Zreby/nist-c-cpp-security-samples",
|
| 55 |
data_files="juliet_samples.jsonl",
|
| 56 |
split="train",
|
| 57 |
)
|
|
|
|
| 58 |
```
|
| 59 |
|
| 60 |
+
Load the labeled functions. The records include a `split` field; filter it to obtain the intended partitions:
|
| 61 |
+
|
| 62 |
+
```python
|
| 63 |
+
functions = load_dataset(
|
| 64 |
+
"Zreby/nist-c-cpp-security-samples",
|
| 65 |
+
data_files="labeled/juliet_functions_labeled.jsonl",
|
| 66 |
+
split="train",
|
| 67 |
+
)
|
| 68 |
+
train = functions.filter(lambda row: row["split"] == "train")
|
| 69 |
+
validation = functions.filter(lambda row: row["split"] == "validation")
|
| 70 |
+
test = functions.filter(lambda row: row["split"] == "test")
|
| 71 |
+
```
|
| 72 |
+
|
| 73 |
+
## Labels and split distribution
|
| 74 |
+
|
| 75 |
+
Labels in the pilot come only from explicit Juliet function or class role names, not from the parent CWE directory. Terminal `bad` / `_bad` role tokens map to `bad`; terminal `good`, `goodG2B`, and `goodB2G` tokens map to `good`. In C++ cases, a class role can label its `action` method. These are Juliet’s intended path labels, not proof that real-world code is exploitable or secure.
|
| 76 |
|
| 77 |
+
Partial helpers such as `badSink`, `goodG2BSink`, `badSource`, and `goodB2GSource` are not forced into a binary label because their function body alone may not reveal the end-to-end path. The pilot has **2,759 labeled function rows** and **758 review-only helper-function rows**. **233 files** have no confidently labeled function. In the file-level JSONL, `file_label` is null by design; `file_label_summary` (`mixed`, `good_only_observed`, `bad_only_observed`, or `no_confident_function_label`) is descriptive, not a training target.
|
| 78 |
|
| 79 |
+
| Split | Files | Good functions | Bad functions | Mixed files | Files without confident labels |
|
| 80 |
+
|---|---:|---:|---:|---:|---:|
|
| 81 |
+
| train | 672 | 1,562 | 341 | 317 | 171 |
|
| 82 |
+
| validation | 144 | 332 | 75 | 71 | 32 |
|
| 83 |
+
| test | 144 | 370 | 79 | 75 | 30 |
|
| 84 |
|
| 85 |
+
Across all splits, file summaries are: 463 mixed, 232 good-only observed, 32 bad-only observed, and 233 with no confident function label. Function counts count labeled definitions, not unique files or real-world prevalence. A file can contain multiple functions, and function rows are not statistically independent.
|
| 86 |
|
| 87 |
+
Splits are grouped by Juliet case family to reduce leakage: archive `/sNN/` path segments and terminal flow-variant suffixes are normalized, extensions are ignored, and all files/functions in a family share one `group_id` and split. Groups are assigned separately within each CWE to approximate a 70/15/15 file-count target (56/12/12 files per CWE); indivisible groups mean exact totals can differ from the targets. No family is split across train, validation, and test.
|
| 88 |
|
| 89 |
+
## Important limitations and safe use
|
| 90 |
|
| 91 |
+
- The subset is a deterministic selection of the first 80 eligible source files per CWE in upstream ZIP order, not a random or representative sample.
|
| 92 |
+
- Juliet is synthetic. CWE identifies a test-case family; it is not a file-level vulnerability label.
|
| 93 |
+
- Labels are inferred from names and intended Juliet paths, not from semantic analysis, compilation, or runtime behavior. The extractor is a lightweight source-text scanner, not a C/C++ AST or compiler; unusual declarations may be missed, so unresolved cases should be reviewed before expanding the set.
|
| 94 |
+
- Function identifiers and inline `FLAW` / `FIX` comments may reveal the label. If evaluating a model, remove or normalize such cues in a separate derived copy while retaining this provenance-preserving export.
|
| 95 |
+
- Do not compile, execute, or deploy the samples outside a properly isolated test environment. Results on this pilot alone do not establish detection capability or system security.
|
| 96 |
|
| 97 |
+
The complete upstream archive is not included. Source and rights references: [NIST SARD Juliet C/C++ 1.3 — test suite 112](https://samate.nist.gov/SARD/test-suites/112) and [NIST SARD acknowledgements and test suite descriptions](https://www.nist.gov/itl/csd/secure-systems-and-applications/sard-acknowledgments-and-test-suites-descriptions). NIST’s notice identifies material for which NIST holds the rights as public domain in the United States and CC0 1.0 to the extent applicable rights are held by NIST outside the United States. This does **not** establish that every component or third-party provenance in this copy has the same license; preserve notices and review relevant component rights before redistribution or other use. The dataset card does not claim unconditional CC0 coverage for the entire dataset.
|
| 98 |
|
| 99 |
+
The original source export manifest records the SHA-256 checksum of its upstream archive as `ada9d7e1c323d283446df3f55bdee0d00bda1fed786785fe98764d58688f38eb`.
|
labeled/README.md
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# NIST SARD Juliet C/C++ 1.3 — local labeled subset
|
| 2 |
+
|
| 3 |
+
This directory contains a Colab-ready annotation of the existing 960-file pilot subset. The original source export remains unchanged. No Juliet source was compiled or executed. The files in this directory are published under `labeled/` in the private Hugging Face dataset repository; the root-level source export remains intact.
|
| 4 |
+
|
| 5 |
+
## Use the function-level data in Colab
|
| 6 |
+
|
| 7 |
+
`juliet_functions_labeled.jsonl` is the recommended supervised-learning table: each row is one extracted Juliet function, with `label` (`good` or `bad`) and `code`. Files with several functions contribute several rows; the function records are not statistically independent.
|
| 8 |
+
|
| 9 |
+
```python
|
| 10 |
+
from datasets import load_dataset
|
| 11 |
+
|
| 12 |
+
ds = load_dataset("json", data_files="juliet_functions_labeled.jsonl", split="train")
|
| 13 |
+
print(ds[0]["label"], ds[0]["cwe_id"], ds[0]["split"])
|
| 14 |
+
train = ds.filter(lambda row: row["split"] == "train")
|
| 15 |
+
valid = ds.filter(lambda row: row["split"] == "validation")
|
| 16 |
+
test = ds.filter(lambda row: row["split"] == "test")
|
| 17 |
+
```
|
| 18 |
+
|
| 19 |
+
## What was labeled—and what was not
|
| 20 |
+
|
| 21 |
+
Labels come from explicit Juliet function/class role names, not from the parent folder’s CWE. Terminal `bad` / `_bad` roles map to `bad`; terminal `good`, `goodG2B`, and `goodB2G` roles map to `good`. For C++ cases, a class name ending in one of those roles can label its `action` method. These are Juliet’s intended path labels, not a claim that a production program is exploitable or secure.
|
| 22 |
+
|
| 23 |
+
Partial helpers such as `badSink`, `goodG2BSink`, `badSource`, and `goodB2GSource` are **not** forced into a binary label: their function body alone may not determine the end-to-end path. In this pilot, 758 partial helper functions are left unlabeled, and 233 files have no confidently labeled function; see `juliet_functions_review.jsonl` and `juliet_label_review.csv`. The file-level export has `file_label: null` by design. `file_label_summary` (`mixed`, `good_only_observed`, `bad_only_observed`, or `no_confident_function_label`) is a descriptive summary only, not a training target.
|
| 24 |
+
|
| 25 |
+
The extractor is a lightweight source-text scanner, not a C/C++ AST or compiler. It handles ordinary Juliet function definitions and brace matching while ignoring comments and strings; unusual declarations may be missed. A reviewer should inspect unresolved cases before expanding the labeled set.
|
| 26 |
+
|
| 27 |
+
## Leakage-safe split
|
| 28 |
+
|
| 29 |
+
The grouping unit is a Juliet case family: the archive path with `/sNN/` removed, and the basename’s terminal flow-variant token (for example `_11`, `_63b`, `_82_bad`, or `_82_goodG2B`) removed. Extensions are ignored, so language variants stay together. Every file and extracted function in a family has one shared `group_id` and split. Groups are assigned separately within each CWE to approximate 70/15/15 file-level train/validation/test targets; a family is never split across partitions. Exact file counts can differ from targets because groups are indivisible. `group_assignments.csv` makes the assignment auditable.
|
| 30 |
+
|
| 31 |
+
### Distribution by split
|
| 32 |
+
|
| 33 |
+
| Split | Files | Good functions | Bad functions | Mixed files | Files without confident labels |
|
| 34 |
+
|---|---:|---:|---:|---:|---:|
|
| 35 |
+
| train | 672 | 1562 | 341 | 317 | 171 |
|
| 36 |
+
| validation | 144 | 332 | 75 | 71 | 32 |
|
| 37 |
+
| test | 144 | 370 | 79 | 75 | 30 |
|
| 38 |
+
|
| 39 |
+
`split_summary.csv` also reports the same counts for each CWE and split. Function counts are counts of labeled function definitions, not unique files or real-world prevalence.
|
| 40 |
+
|
| 41 |
+
## Files
|
| 42 |
+
|
| 43 |
+
- `juliet_functions_labeled.jsonl` — function-level `good`/`bad` dataset recommended for Colab.
|
| 44 |
+
- `juliet_files_labeled.jsonl` — original full source files plus group, split, observed function labels, and a non-target file summary.
|
| 45 |
+
- `juliet_functions_review.jsonl` — function code for partial Juliet helpers intentionally left unlabeled.
|
| 46 |
+
- `juliet_label_review.csv` — files with partial helper roles or no confidently labeled function.
|
| 47 |
+
- `group_assignments.csv` — normalized case-family keys and their one-split assignments.
|
| 48 |
+
- `split_summary.csv` — per-CWE and total file/function label counts by split.
|
| 49 |
+
- `manifest.json` — source checksum, policies, counts, verification results, and output checksums.
|
| 50 |
+
|
| 51 |
+
## Important limits
|
| 52 |
+
|
| 53 |
+
The pilot is a deterministic selection of the first 80 eligible source files per CWE in upstream ZIP order, not a random or representative sample. Juliet code is synthetic. Function identifiers and inline `FLAW`/`FIX` comments can reveal the label; remove or normalize those cues in a separate derived copy if evaluating a model, while retaining this provenance-preserving source. Do not compile, execute, or deploy the samples outside a properly isolated test environment.
|
| 54 |
+
|
| 55 |
+
Source: [NIST SARD Juliet C/C++ 1.3](https://samate.nist.gov/SARD/test-suites/112). License/provenance notes: [NIST acknowledgements and test suite descriptions](https://www.nist.gov/itl/csd/secure-systems-and-applications/sard-acknowledgments-and-test-suites-descriptions).
|
labeled/group_assignments.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
labeled/juliet_files_labeled.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
labeled/juliet_functions_labeled.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
labeled/juliet_functions_review.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
labeled/juliet_label_review.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
labeled/manifest.json
ADDED
|
@@ -0,0 +1,105 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"dataset": "NIST SARD Juliet C/C++ 1.3 local labeled pilot",
|
| 3 |
+
"generated_by": "scripts/label_juliet_colab.py",
|
| 4 |
+
"source_file": "/workspace/code_security_dataset_pilot/data/juliet/colab_ready/juliet_samples.jsonl",
|
| 5 |
+
"source_sha256": "0893875b9ceef7b7151ef09964018df0ca25752813ff484e684996c8ea2f76f0",
|
| 6 |
+
"records": {
|
| 7 |
+
"source_files": 960,
|
| 8 |
+
"labeled_function_rows": 2759,
|
| 9 |
+
"review_function_rows": 758,
|
| 10 |
+
"files_by_summary": {
|
| 11 |
+
"bad_only_observed": 32,
|
| 12 |
+
"good_only_observed": 232,
|
| 13 |
+
"mixed": 463,
|
| 14 |
+
"no_confident_function_label": 233
|
| 15 |
+
}
|
| 16 |
+
},
|
| 17 |
+
"label_policy": {
|
| 18 |
+
"basis": "Explicit Juliet function/class name role tokens only; not inferred from CWE folder.",
|
| 19 |
+
"bad": "terminal bad or _bad role token",
|
| 20 |
+
"good": "terminal good, goodG2B, or goodB2G role token",
|
| 21 |
+
"unresolved": "Partial source/sink helper functions remain unlabeled; file_label stays null.",
|
| 22 |
+
"caveat": "Name-based intended Juliet paths; not semantic, compiler, or runtime validation."
|
| 23 |
+
},
|
| 24 |
+
"group_policy": {
|
| 25 |
+
"unit": "case family derived from archive path; remove /sNN/ and terminal flow variant suffix; ignore extension",
|
| 26 |
+
"split_targets_per_cwe_files": {
|
| 27 |
+
"train": 56,
|
| 28 |
+
"validation": 12,
|
| 29 |
+
"test": 12
|
| 30 |
+
},
|
| 31 |
+
"method": "deterministic dynamic-programming assignment of indivisible groups to minimize squared file-count deviation per CWE",
|
| 32 |
+
"variant_suffix_coverage": {
|
| 33 |
+
"variant_suffix_removed": 960
|
| 34 |
+
},
|
| 35 |
+
"groups": 168,
|
| 36 |
+
"groups_by_split": {
|
| 37 |
+
"test": 27,
|
| 38 |
+
"train": 113,
|
| 39 |
+
"validation": 28
|
| 40 |
+
}
|
| 41 |
+
},
|
| 42 |
+
"split_totals": {
|
| 43 |
+
"train": {
|
| 44 |
+
"files": 672,
|
| 45 |
+
"good_functions": 1562,
|
| 46 |
+
"bad_functions": 341,
|
| 47 |
+
"mixed_files": 317,
|
| 48 |
+
"files_without_confident_label": 171
|
| 49 |
+
},
|
| 50 |
+
"validation": {
|
| 51 |
+
"files": 144,
|
| 52 |
+
"good_functions": 332,
|
| 53 |
+
"bad_functions": 75,
|
| 54 |
+
"mixed_files": 71,
|
| 55 |
+
"files_without_confident_label": 32
|
| 56 |
+
},
|
| 57 |
+
"test": {
|
| 58 |
+
"files": 144,
|
| 59 |
+
"good_functions": 370,
|
| 60 |
+
"bad_functions": 79,
|
| 61 |
+
"mixed_files": 75,
|
| 62 |
+
"files_without_confident_label": 30
|
| 63 |
+
}
|
| 64 |
+
},
|
| 65 |
+
"quality_checks": {
|
| 66 |
+
"all_source_files_preserved": true,
|
| 67 |
+
"no_variant_family_crosses_splits": true,
|
| 68 |
+
"all_three_splits_nonempty": true,
|
| 69 |
+
"source_compiled_or_executed": false,
|
| 70 |
+
"labeled_data_uploaded_to_huggingface": false,
|
| 71 |
+
"remote_existing_dataset_card_update": "README.md translated into English only; dataset files and visibility unchanged.",
|
| 72 |
+
"output_jsonl_reopened_and_counts_verified": true,
|
| 73 |
+
"group_split_leakage_check": "passed"
|
| 74 |
+
},
|
| 75 |
+
"artifacts": {
|
| 76 |
+
"juliet_files_labeled.jsonl": {
|
| 77 |
+
"bytes": 5434550,
|
| 78 |
+
"sha256": "80f1cb4f7a0169d3ad92c091f016a8f96d0ccd9940b7205a6fb8b4ccf49595f2"
|
| 79 |
+
},
|
| 80 |
+
"juliet_functions_labeled.jsonl": {
|
| 81 |
+
"bytes": 4053524,
|
| 82 |
+
"sha256": "862a46419522450a896bd21d29e7a07d2cbd0041469f8f5851011cab26065fe7"
|
| 83 |
+
},
|
| 84 |
+
"juliet_functions_review.jsonl": {
|
| 85 |
+
"bytes": 780059,
|
| 86 |
+
"sha256": "acbd8a2d151f6dd28d3e5ae9a2b56b57525368e7dd1e34f38e0e935ad277130e"
|
| 87 |
+
},
|
| 88 |
+
"juliet_label_review.csv": {
|
| 89 |
+
"bytes": 138694,
|
| 90 |
+
"sha256": "b05c2c71e8d739b36e65b67d2ba1a219f951ea3d0aa11aa5ee1a93cfede047d7"
|
| 91 |
+
},
|
| 92 |
+
"group_assignments.csv": {
|
| 93 |
+
"bytes": 118084,
|
| 94 |
+
"sha256": "a8b6a1c7fce6316f63bd7d0b75024d81c0769f6315bab57a017c175a2da84dcf"
|
| 95 |
+
},
|
| 96 |
+
"split_summary.csv": {
|
| 97 |
+
"bytes": 1175,
|
| 98 |
+
"sha256": "93b51480e53aadb15755c14742781581af91ec1851dad91e559518b6f0587d64"
|
| 99 |
+
},
|
| 100 |
+
"README.md": {
|
| 101 |
+
"bytes": 5030,
|
| 102 |
+
"sha256": "6014c833a8884d78c0b2cf305b35757522b8245c1575c4601d9ef146ade185df"
|
| 103 |
+
}
|
| 104 |
+
}
|
| 105 |
+
}
|
labeled/split_summary.csv
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
split,cwe_id,files,good_functions,bad_functions,mixed_files,files_without_confident_label
|
| 2 |
+
train,CWE121,56,79,22,19,18
|
| 3 |
+
train,CWE122,56,83,36,33,17
|
| 4 |
+
train,CWE134,56,100,23,20,20
|
| 5 |
+
train,CWE190,56,113,29,22,14
|
| 6 |
+
train,CWE191,56,130,23,22,11
|
| 7 |
+
train,CWE369,56,122,28,26,16
|
| 8 |
+
train,CWE400,56,134,26,25,16
|
| 9 |
+
train,CWE401,56,95,17,15,23
|
| 10 |
+
train,CWE415,56,135,26,24,15
|
| 11 |
+
train,CWE416,56,219,43,43,5
|
| 12 |
+
train,CWE457,56,205,36,36,5
|
| 13 |
+
train,CWE476,56,147,32,32,11
|
| 14 |
+
train,ALL,672,1562,341,317,171
|
| 15 |
+
validation,CWE121,12,21,6,6,3
|
| 16 |
+
validation,CWE122,12,22,10,9,2
|
| 17 |
+
validation,CWE134,12,22,7,7,4
|
| 18 |
+
validation,CWE190,12,25,5,4,2
|
| 19 |
+
validation,CWE191,12,31,7,7,3
|
| 20 |
+
validation,CWE369,12,25,6,6,2
|
| 21 |
+
validation,CWE400,12,21,4,4,3
|
| 22 |
+
validation,CWE401,12,21,4,4,5
|
| 23 |
+
validation,CWE415,12,30,8,7,1
|
| 24 |
+
validation,CWE416,12,43,8,8,1
|
| 25 |
+
validation,CWE457,12,39,6,6,3
|
| 26 |
+
validation,CWE476,12,32,4,3,3
|
| 27 |
+
validation,ALL,144,332,75,71,32
|
| 28 |
+
test,CWE121,12,22,5,5,3
|
| 29 |
+
test,CWE122,12,22,12,10,0
|
| 30 |
+
test,CWE134,12,26,7,7,5
|
| 31 |
+
test,CWE190,12,24,6,6,3
|
| 32 |
+
test,CWE191,12,26,4,4,4
|
| 33 |
+
test,CWE369,12,31,6,5,2
|
| 34 |
+
test,CWE400,12,24,6,5,3
|
| 35 |
+
test,CWE401,12,43,6,6,1
|
| 36 |
+
test,CWE415,12,22,5,5,5
|
| 37 |
+
test,CWE416,12,50,10,10,0
|
| 38 |
+
test,CWE457,12,54,7,7,0
|
| 39 |
+
test,CWE476,12,26,5,5,4
|
| 40 |
+
test,ALL,144,370,79,75,30
|