Dataset Viewer
Auto-converted to Parquet Duplicate
type
string
version
string
corpus
list
stats
dict
code_corpus
4
[{"code":"# This file is dual licensed under the terms of the Apache License, Version\n# 2.0, and th(...TRUNCATED)
{"total_files":17171,"crypto":8814,"non_crypto":8357,"sources":58,"by_language":{"python":{"files":8(...TRUNCATED)

Q-Trust Code Corpus v4

Labelled source-code corpus for cryptographic-code discovery (post-quantum migration).

  • 17,171 files / 58 source repositories / 8,814 crypto-labelled, 12 languages (C, C++, Java, Go, Rust, Python, JS/TS, Solidity, C#, PHP, Zig, Swift).
  • Sources include OpenSSL, BoringSSL, AWS-LC, wolfSSL, Mbed-TLS, GnuTLS, NSS, libsodium, Botan, PQClean, liboqs, Cloudflare CIRCL, RustCrypto, secp256k1, curve25519-dalek, google/tink, pyca/cryptography, and negative controls (numpy, express, svelte, serde, ...).
  • Labels are regex-derived (is_crypto = file contains a crypto keyword: RSA/ECC, AES/GCM/ ChaCha20, SHA/BLAKE, X.509, and PQC ML-KEM/Kyber, ML-DSA/Dilithium, SLH-DSA/SPHINCS+, Falcon, HQC). This is a weak label — see the model card's limitations.

Record schema

{"code": "...", "language": "python", "label": "RSA/ECC", "is_crypto": true,
 "source": "pyca/cryptography", "path": "src/.../rsa.py"}

Split: repo-disjoint, digest-keyed (SHA-256 source buckets), seed 42 — the same split used for the KRISHNAPURI/q-trust-crypto-detector evaluation (0% train/eval path overlap).

Downloads last month
-

Models trained or fine-tuned on KRISHNAPURI/q-trust-code-corpus-v4