Dataset Viewer
Auto-converted to Parquet Duplicate
id
stringlengths
64
64
license
dict
input
dict
add1b83d5ac8a86e8555b155302bc4bc7a902e4ca8d5184a3c77d5ce24f012ad
{ "spdx": [ "BSD-2-Clause" ], "repo": "sb-sb/telize", "path": "src/location.c", "repo_head_hexsha": "24ad093d7360edcb0ec0f9683fa1c987dd674b30", "stack_hexsha": "3c343ca67034bf91bec78f9ce5b75c5ef83f9e3c", "match": "repo_path" }
{ "fileExtension": ".c", "programmingLanguage": "C", "issueNameEn": "Use of non-static variable as argument of putenv", "issueDescriptionEn": "The Use of non-static variable as argument of putenv checker finds expressions that pass a pointer to an automatic variable to the putenv() function.\nProviding a pointe...
7fac9e647cc34c726939cf69fe4b0bf88545f3c191ddb24c710a916a0155fc2d
{ "spdx": [ "Apache-2.0" ], "repo": "alyptik/projects", "path": "hello/hello.c", "repo_head_hexsha": "87254e568edaac8f68d63cc6680023d1c222c288", "stack_hexsha": "fdb5e04e1b6b2a9b8420e1a6388b2f06e627776e", "match": "exact_blob" }
{ "fileExtension": ".c", "programmingLanguage": "C", "issueNameEn": "Hardcoded salt", "issueDescriptionEn": "The Hardcoded salt checker finds instances of using a hardcoded salt for hash calculation.\nNot only does a hardcoded salt allow all of the project's developers to view the salt, it also becomes extremel...
e68dcbb5144bbf59022eb17156ac391cce7d0de014ded7a68129a3f1d344539f
{ "spdx": [ "CC-BY-3.0" ], "repo": "grafoo/tapd", "path": "src/tapd.c", "repo_head_hexsha": "5270c59dd30274baf487a325ddc6150d0fdf707c", "stack_hexsha": "e4834575fe89d224d149a4d8f45d5868c8159e6a", "match": "exact_blob" }
{ "fileExtension": ".c", "programmingLanguage": "C", "issueNameEn": "Weak Server Certificate", "issueDescriptionEn": "The Weak Server Certificate checker finds code that fails to properly validate certificates.\nIt is required to validate X.509 certificates in order to create secure SSL/TLS sessions which are s...
ba79bc0f9bcb4d58e2c58683388bd64556d01ae0440936966d5cfbd441963e8d
{ "spdx": [ "MIT" ], "repo": "ishiura-compiler/CF3", "path": "testsuite/EXP_4/test67.c", "repo_head_hexsha": "0718aa176d0303a4ea8a46bd6c794997cbb8fabb", "stack_hexsha": "43da82405729cc80cbbf4afaaea014191c4b29e3", "match": "exact_blob" }
{ "fileExtension": ".c", "programmingLanguage": "C", "issueNameEn": "Remainder operation on negative value", "issueDescriptionEn": "The Remainder operation on negative value checker finds modulo operations performed on a negative number.\nA modulo operation on a negative number is an implementation-defined beha...
37a9a24263ab802fe1919983f817556fc996682638c63f235d82e065993f2379
{ "spdx": [ "BSD-2-Clause" ], "repo": "docfate111/dial-reference", "path": "server/mongoose.c", "repo_head_hexsha": "274787922a7656235ba3c01771120cef07f009e9", "stack_hexsha": "0edacc51d715bebabe2d59ed14fd46944aae39c4", "match": "repo_path" }
{ "fileExtension": ".c", "programmingLanguage": "C", "issueNameEn": "Dangerous casting of function pointer", "issueDescriptionEn": "The Dangerous casting of function pointer checker finds instances in which a function pointer is cast to have a conflicting signature or a different return type.\nThe checker also ...
7ebdcaf652473f3b2e4d5b52097217cd73e475a9edcd3a4e7141709ecee4db01
{ "spdx": [ "MIT" ], "repo": "bill-ms/waterslide", "path": "src/util/wsalias.c", "repo_head_hexsha": "c228689ec8680cf461d64843383ff08a97310345", "stack_hexsha": "d97e533e267e611598f840e2c87c790360e1d931", "match": "exact_blob" }
{ "fileExtension": ".c", "programmingLanguage": "C", "issueNameEn": "Returning freed memory", "issueDescriptionEn": "The Returning freed memory checker detects code that returns a variable pointing to memory that has already been freed.\nReturning an already freed variable often causes an unexpected program beh...
fbe150fa76bb58cd95081b8de5b7b1ee0eb817ecb7a5a0d39d1ab856bf4872b0
{"spdx":["ECL-2.0","Apache-2.0"],"repo":"mathstuf/ADIOS2","path":"thirdparty/ffs/ffs/fm/progs/server(...TRUNCATED)
{"fileExtension":".c","programmingLanguage":"C","issueNameEn":"TOCTOU race condition on filename","i(...TRUNCATED)
a26a347a4858bae3f2d4faf1b6a2e10ad0d66a83857465230420ccc0355f7ae3
{"spdx":["Apache-2.0"],"repo":"Serene-Innovations/Zephyr","path":"tests/lib/c_lib/src/main.c","repo_(...TRUNCATED)
{"fileExtension":".c","programmingLanguage":"C","issueNameEn":"Missing null termination character","(...TRUNCATED)
614b3b06feba2e9051f1bbd3d9ec4b90e13290ba0ba0bd8a4ce02b1c7948e97c
{"spdx":["Apache-2.0"],"repo":"lsht312/schism","path":"src/Utility/ACE/xmvis6/adcircwin.c","repo_hea(...TRUNCATED)
{"fileExtension":".c","programmingLanguage":"C","issueNameEn":"Mismatched buffer size","issueDescrip(...TRUNCATED)
1214f45af74c69a859e4e638dbf7d4db086722edf83938d503cf6a94f5d96e39
{"spdx":["Apache-2.0"],"repo":"theonlyzby/SmartCAN-RaspberryPi4-BalenaIO","path":"var/www/smartcan/b(...TRUNCATED)
{"fileExtension":".c","programmingLanguage":"C","issueNameEn":"Mismatched buffer size","issueDescrip(...TRUNCATED)
End of preview. Expand in Data Studio

SecLLM-Dataset

A static-analysis-based dataset of security vulnerability findings for LLM training and evaluation. It has 10,039 records from real open-source files in seven languages (Java, JavaScript, TypeScript, Python, Go, C, C++). Each record is one finding reported by Sparrow SAST, with the license of its source file; the records have no patches.

Composition

Language File Records
Java data/input_only/java.jsonl 3,823
C++ data/input_only/cpp.jsonl 2,741
C data/input_only/c.jsonl 1,282
Python data/input_only/python.jsonl 904
Go data/input_only/go.jsonl 623
JavaScript data/input_only/javascript.jsonl 432
TypeScript data/input_only/typescript.jsonl 234
Total 10,039

Each record has three top-level fields:

Field Type Description
id string SHA-256 identifier, unique per record
license object License and origin of the source file; fields below
input object The finding; fields below
license field Type Description
spdx array of string SPDX identifiers of the licenses of the source repository
repo string Source repository (owner/name)
path string Path of the file in that repository
repo_head_hexsha string Commit of the repository head recorded upstream
stack_hexsha string Identifier (hexsha) of the file in The Stack
match string How the file was matched to The Stack: exact_blob (same content, 8,017 records) or repo_path (repository and path, 2,022 records)
input field Type Description
fileExtension string Extension of the source file (e.g. .java)
programmingLanguage string Programming language (e.g. Java)
issueNameEn string Vulnerability type name
issueDescriptionEn string Vulnerability type description
issueLineNumber int Reported line (1-based, in entireCode)
entireCode string Full text of the source file
dangerousExampleEn string Predefined vulnerable example for the type (not taken from entireCode)
safeExampleEn string Predefined safe example for the type
contexts array Analyzer data-flow trace (source β†’ branch β†’ sink): lineNo, eventType, messageKey, params

All input fields are in English. Source files are unmodified, so 46 entireCode values contain Korean text. Most repo_path matches are files whose text differs from The Stack only by the upstream PII placeholders. The Hub shows the data as a single train split for loading convenience; there is no official train/validation/test split.

License

The compilation and annotations are licensed under CC BY 4.0. The source code in entireCode is not covered by CC BY 4.0 and keeps its original licenses; where a file's own header states a license, that header governs the file. Check the header before reusing or redistributing any entireCode.

license.spdx is the license of the source repository; all values are permissive licenses. The upstream corpus selected code by repository-level license, not by file, so a file can still carry a different notice. 351 records were removed for that reason or for embedded secrets: source files with GPL-family license text (GPL, LGPL, AGPL) anywhere in the file (308); with EPL (22), CDDL (8), MPL (3), CC NonCommercial (5), or "proprietary and confidential" (4) text in the first 60 lines; or with a private-key block (5). Some files match more than one of these.

Terms of Use for The Stack

The source files in entireCode come from bigcode/starcoderdata, which is distributed under the Terms of Use for The Stack. Those terms apply to the source files in this dataset, and you must agree to them to use it:

  1. The Stack is a collection of source code from repositories with various licenses. Any use of all or part of the code gathered in The Stack must abide by the terms of the original licenses, including attribution clauses when relevant. We facilitate this by providing provenance information for each data point.
  2. The Stack is regularly updated to enact validated data removal requests. By clicking on "Access repository", you agree to update your own version of The Stack to the most recent usable version specified by the maintainers in the following thread. If you have questions about dataset versions and allowed uses, please also ask them in the dataset's community discussions. We will also notify users via email when the latest usable version changes.
  3. To host, share, or otherwise provide access to The Stack dataset, you must include these Terms of Use and require users to agree to it.

Where to ask

The Hugging Face Community tab covers questions about a specific Hugging Face revision; Discord is for chat only and never makes decisions; vulnerabilities and personal data are never posted publicly on any of them.

  • Questions about this Hub revision: the Community tab of this repository.
  • Wrong labels or false positives: the Community tab of this repository.

When you ask in the Community tab, include:

  • The revision (commit) of this repository you loaded
  • Your datasets library, Python, and OS versions
  • The expected and actual result, with a minimal reproduction
  • The record file and 1-based line number, if a specific record is involved

Revision sync

Release HF dataset revision HF model revision Known issues
Set at upload Set at upload β€” Source files keep their original licenses (see License)

SHA-256 of the data files:

File SHA-256
data/input_only/c.jsonl 386de2485a8b6cc43aa16778ef175e3bceda729e62126cae0f378d33e1e89b04
data/input_only/cpp.jsonl 6df528d7d47824b30cf49e5ea7aa167e5a2f0e79b6c442a48ac3c2c74ffb107b
data/input_only/go.jsonl e2e445917e05a3c45fd33fba7744a6f53fc5eaaa893f3fd2858ffaa2e87c3e17
data/input_only/java.jsonl f1a415e349fada9cf142f18feeb470ada68dc3a8ab166b4057c5f37410892bcc
data/input_only/javascript.jsonl c90a4637513cacb8bee253ac3ce5b88d8e91b001222ef0254ef37f93f678c7c3
data/input_only/python.jsonl 71930af2f3b2c7ae751caee0ed3ee84ed9e56b6f26c8e4ac1671ed4d2fd56215
data/input_only/typescript.jsonl 6677a7289df8d67b3a371d54c525fc65ccd0e54d8f550a1e714b7a3d91082cfc

Citation

@misc{secllm_dataset,
  title        = {SecLLM-Dataset},
  author       = {{Sparrow Co., Ltd.}},
  year         = {2026},
  howpublished = {Hugging Face},
  url          = {https://huggingface.co/datasets/sparrow-co-ltd/SecLLM-Dataset}
}
Downloads last month
62