Dataset Viewer
The dataset viewer is not available for this dataset.
Cannot get the config names for the dataset.
Error code:   ConfigNamesError
Exception:    AttributeError
Message:      'int' object has no attribute 'items'
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/dataset/config_names.py", line 66, in compute_config_names_response
                  config_names = get_dataset_config_names(
                                 ^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/inspect.py", line 161, in get_dataset_config_names
                  dataset_module = dataset_module_factory(
                                   ^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/load.py", line 1207, in dataset_module_factory
                  raise e1 from None
                File "/usr/local/lib/python3.12/site-packages/datasets/load.py", line 1182, in dataset_module_factory
                  ).get_module()
                    ^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/load.py", line 690, in get_module
                  config_name: DatasetInfo.from_dict(dataset_info_dict)
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/info.py", line 284, in from_dict
                  return cls(**{k: v for k, v in dataset_info_dict.items() if k in field_names})
                                                 ^^^^^^^^^^^^^^^^^^^^^^^
              AttributeError: 'int' object has no attribute 'items'

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

VulnAI / VulnIA - Java Vulnerability Detection Dataset V3

Purpose

This dataset is designed exclusively for defensive Java vulnerability detection using CodeBERT fine-tuning.

Task

Multi-label classification of Java source code snippets into vulnerability families and fine-grained sub-types.

Labels

  • 0-65: V1 legacy labels (preserved, not modified)
  • 3: XXE_GENERAL (V1 replay)
  • 14: DESER_GENERAL (V1 replay)
  • 66: CRYPTO
  • 67: SAFE
  • 68-78: Fine-grained XXE labels
  • 79-88: Fine-grained Deserialization labels

Total labels: 89

Parent / Fine-grained relationship

  • Fine labels 68-78 → parent 3 (XXE)
  • Fine labels 79-88 → parent 14 (DESER)
  • Labels 66, 67 → parent = self

Splits

  • train: 1181
  • validation: 238
  • test: 236
  • total: 1655

Families

{'deserialization': 580, 'xxe': 575, 'crypto': 300, 'safe': 200}

Preprocessing

  • Anti-leakage cleaning (method/class names, comments)
  • Exact deduplication (SHA-256 on normalized code)
  • Near-duplicate grouping (n-gram Jaccard ≥ 0.85)
  • Token-length handling (max 512 tokens for CodeBERT)
  • Group-based split to prevent leakage

Ethical Use

  • This dataset is for defensive security research only.
  • Do NOT use to generate exploits, payloads, or malware.
  • All payloads and secrets have been removed or neutralized.

License

Apache-2.0

Generated by ML Intern

This dataset repository was generated by ML Intern, an agent for machine learning research and development on the Hugging Face Hub.

Usage

from datasets import load_dataset

dataset = load_dataset('MaryamEl/vulnai-java-v3-dataset')
Downloads last month
6