data_source
stringclasses
1 value
prompt
listlengths
2
2
ability
stringclasses
1 value
reward_model
dict
extra_info
dict
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a multi-select question listing several CWE (Common Weakness Enumeration) categories. Your task is to identify which of the listed CWEs are present in the code.\n\nOUTPUT FORMAT: Respond with the letter(s) of...
code_security
{ "ground_truth": "E", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-20" ], "filename": "exercises.py", "index": 16400, "language": "python", "options": [ "CWE-78", "CWE-113", "CWE-312", "CWE-614", "CWE-20", "CWE-79" ], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a catalog of candidate CWE (Common Weakness Enumeration) categories with their official MITRE names. Your task is to list every distinct CWE from that catalog that is actually present in the code. The catalog...
code_security
{ "ground_truth": "CWE-20", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-20" ], "filename": "exercises.py", "index": 16401, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/03-processing-raw-text/exercises.py", "source_repo": "SolangeUG/nltk-book", ...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a multiple-choice question listing several function or class names from that file. Your task is to identify which one contains the specified CWE vulnerability.\n\nOUTPUT FORMAT: Respond with the single letter...
code_security
{ "ground_truth": "C", "style": "rule" }
{ "all_acceptable": [ "print_wh_word_types" ], "cwe": "CWE-20", "cwes_present": [], "filename": "exercises.py", "index": 16402, "language": "python", "options": [ "unknown", "convert_to_celsius", "print_wh_word_types", "print_weather_forecast" ], "source_dataset": "OctoReasoner/c...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file. Your task is to name the single function or class that contains the specified CWE vulnerability.\n\nOUTPUT FORMAT: Respond with the exact function or class name (no parentheses, no qualifiers, no module prefixes), wrap...
code_security
{ "ground_truth": "print_wh_word_types", "style": "rule" }
{ "all_acceptable": [ "print_wh_word_types" ], "cwe": "CWE-20", "cwes_present": [], "filename": "exercises.py", "index": 16403, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/03-processing-raw-text/exercises.py", "source_repo": "Solan...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a multi-select question listing several CWE (Common Weakness Enumeration) categories. Your task is to identify which of the listed CWEs are present in the code.\n\nOUTPUT FORMAT: Respond with the letter(s) of...
code_security
{ "ground_truth": "B", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-312" ], "filename": "php.py", "index": 16404, "language": "python", "options": [ "CWE-78", "CWE-312", "CWE-776", "CWE-943", "CWE-377", "CWE-611" ], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_pat...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a catalog of candidate CWE (Common Weakness Enumeration) categories with their official MITRE names. Your task is to list every distinct CWE from that catalog that is actually present in the code. The catalog...
code_security
{ "ground_truth": "CWE-312", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-312" ], "filename": "php.py", "index": 16405, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/exploit/listen/php.py", "source_repo": "Qmeimei10086/T-BOX", "split": "train", ...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a multi-select question listing several CWE (Common Weakness Enumeration) categories. Your task is to identify which of the listed CWEs are present in the code.\n\nOUTPUT FORMAT: Respond with the letter(s) of...
code_security
{ "ground_truth": "F", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-20" ], "filename": "web_scraper.py", "index": 16406, "language": "python", "options": [ "CWE-89", "CWE-22", "CWE-200", "CWE-611", "CWE-943", "CWE-20" ], "source_dataset": "OctoReasoner/codeql2_aggressive", "sourc...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a catalog of candidate CWE (Common Weakness Enumeration) categories with their official MITRE names. Your task is to list every distinct CWE from that catalog that is actually present in the code. The catalog...
code_security
{ "ground_truth": "CWE-20", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-20" ], "filename": "web_scraper.py", "index": 16407, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/code/web/scraper/web_scraper.py", "source_repo": "aakriti0fnu/cheapBuy", "...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a multiple-choice question listing several function or class names from that file. Your task is to identify which one contains the specified CWE vulnerability.\n\nOUTPUT FORMAT: Respond with the single letter...
code_security
{ "ground_truth": "D", "style": "rule" }
{ "all_acceptable": [ "scraper" ], "cwe": "CWE-20", "cwes_present": [], "filename": "web_scraper.py", "index": 16408, "language": "python", "options": [ "set_results", "search_walmart", "search_amazon", "scraper" ], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_p...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file. Your task is to name the single function or class that contains the specified CWE vulnerability.\n\nOUTPUT FORMAT: Respond with the exact function or class name (no parentheses, no qualifiers, no module prefixes), wrap...
code_security
{ "ground_truth": "scraper", "style": "rule" }
{ "all_acceptable": [ "scraper" ], "cwe": "CWE-20", "cwes_present": [], "filename": "web_scraper.py", "index": 16409, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/code/web/scraper/web_scraper.py", "source_repo": "aakriti0fnu/cheapBu...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a multi-select question listing several CWE (Common Weakness Enumeration) categories. Your task is to identify which of the listed CWEs are present in the code.\n\nOUTPUT FORMAT: Respond with the letter(s) of...
code_security
{ "ground_truth": "F", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-79" ], "filename": "api.py", "index": 16410, "language": "python", "options": [ "CWE-943", "CWE-215", "CWE-90", "CWE-611", "CWE-732", "CWE-79" ], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path"...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a catalog of candidate CWE (Common Weakness Enumeration) categories with their official MITRE names. Your task is to list every distinct CWE from that catalog that is actually present in the code. The catalog...
code_security
{ "ground_truth": "CWE-79", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-79" ], "filename": "api.py", "index": 16411, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/api/api.py", "source_repo": "imbush/course2career", "split": "train", "target_fu...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a multiple-choice question listing several function or class names from that file. Your task is to identify which one contains the specified CWE vulnerability.\n\nOUTPUT FORMAT: Respond with the single letter...
code_security
{ "ground_truth": "C", "style": "rule" }
{ "all_acceptable": [ "create_comment" ], "cwe": "CWE-79", "cwes_present": [], "filename": "api.py", "index": 16412, "language": "python", "options": [ "homePage", "get_comments", "create_comment", "get_course" ], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_pat...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file. Your task is to name the single function or class that contains the specified CWE vulnerability.\n\nOUTPUT FORMAT: Respond with the exact function or class name (no parentheses, no qualifiers, no module prefixes), wrap...
code_security
{ "ground_truth": "create_comment", "style": "rule" }
{ "all_acceptable": [ "create_comment" ], "cwe": "CWE-79", "cwes_present": [], "filename": "api.py", "index": 16413, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/api/api.py", "source_repo": "imbush/course2career", "split": "train"...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a multi-select question listing several CWE (Common Weakness Enumeration) categories. Your task is to identify which of the listed CWEs are present in the code.\n\nOUTPUT FORMAT: Respond with the letter(s) of...
code_security
{ "ground_truth": "B", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-79" ], "filename": "template.py", "index": 16414, "language": "python", "options": [ "CWE-295", "CWE-79", "CWE-1004", "CWE-312", "CWE-20", "CWE-601" ], "source_dataset": "OctoReasoner/codeql2_aggressive", "source...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a catalog of candidate CWE (Common Weakness Enumeration) categories with their official MITRE names. Your task is to list every distinct CWE from that catalog that is actually present in the code. The catalog...
code_security
{ "ground_truth": "CWE-79", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-79" ], "filename": "template.py", "index": 16415, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/shingetsu/template.py", "source_repo": "shingetsu/saku", "split": "train", ...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a multiple-choice question listing several function or class names from that file. Your task is to identify which one contains the specified CWE vulnerability.\n\nOUTPUT FORMAT: Respond with the single letter...
code_security
{ "ground_truth": "C", "style": "rule" }
{ "all_acceptable": [ "__init__" ], "cwe": "CWE-79", "cwes_present": [], "filename": "template.py", "index": 16416, "language": "python", "options": [ "Template", "load_bytecode", "__init__", "CachedTemplate" ], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path"...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file. Your task is to name the single function or class that contains the specified CWE vulnerability.\n\nOUTPUT FORMAT: Respond with the exact function or class name (no parentheses, no qualifiers, no module prefixes), wrap...
code_security
{ "ground_truth": "__init__", "style": "rule" }
{ "all_acceptable": [ "__init__" ], "cwe": "CWE-79", "cwes_present": [], "filename": "template.py", "index": 16417, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/shingetsu/template.py", "source_repo": "shingetsu/saku", "split": "tr...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a multi-select question listing several CWE (Common Weakness Enumeration) categories. Your task is to identify which of the listed CWEs are present in the code.\n\nOUTPUT FORMAT: Respond with the letter(s) of...
code_security
{ "ground_truth": "D", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-22" ], "filename": "tsc_wrapper.py", "index": 16418, "language": "python", "options": [ "CWE-74", "CWE-20", "CWE-1333", "CWE-22", "CWE-730", "CWE-89" ], "source_dataset": "OctoReasoner/codeql2_aggressive", "sourc...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a catalog of candidate CWE (Common Weakness Enumeration) categories with their official MITRE names. Your task is to list every distinct CWE from that catalog that is actually present in the code. The catalog...
code_security
{ "ground_truth": "CWE-22", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-22" ], "filename": "tsc_wrapper.py", "index": 16419, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/build/plugins/lib/nots/typescript/tsc_wrapper.py", "source_repo": "david-wat...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a multiple-choice question listing several function or class names from that file. Your task is to identify which one contains the specified CWE vulnerability.\n\nOUTPUT FORMAT: Respond with the single letter...
code_security
{ "ground_truth": "D", "style": "rule" }
{ "all_acceptable": [ "_unpack_node_modules" ], "cwe": "CWE-22", "cwes_present": [], "filename": "tsc_wrapper.py", "index": 16420, "language": "python", "options": [ "get_or_create_compiler_options", "_prepare_dependencies", "write", "_unpack_node_modules" ], "source_dataset": "O...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file. Your task is to name the single function or class that contains the specified CWE vulnerability.\n\nOUTPUT FORMAT: Respond with the exact function or class name (no parentheses, no qualifiers, no module prefixes), wrap...
code_security
{ "ground_truth": "_unpack_node_modules", "style": "rule" }
{ "all_acceptable": [ "_unpack_node_modules" ], "cwe": "CWE-22", "cwes_present": [], "filename": "tsc_wrapper.py", "index": 16421, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/build/plugins/lib/nots/typescript/tsc_wrapper.py", "sour...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a multi-select question listing several CWE (Common Weakness Enumeration) categories. Your task is to identify which of the listed CWEs are present in the code.\n\nOUTPUT FORMAT: Respond with the letter(s) of...
code_security
{ "ground_truth": "B", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-327" ], "filename": "mini-server-dimz.py", "index": 16422, "language": "python", "options": [ "CWE-215", "CWE-327", "CWE-918", "CWE-601", "CWE-732", "CWE-502" ], "source_dataset": "OctoReasoner/codeql2_aggressive",...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a catalog of candidate CWE (Common Weakness Enumeration) categories with their official MITRE names. Your task is to list every distinct CWE from that catalog that is actually present in the code. The catalog...
code_security
{ "ground_truth": "CWE-327", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-327" ], "filename": "mini-server-dimz.py", "index": 16423, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/2-latihan-https/mini-server-dimz.py", "source_repo": "dimzignas/latiha...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a multi-select question listing several CWE (Common Weakness Enumeration) categories. Your task is to identify which of the listed CWEs are present in the code.\n\nOUTPUT FORMAT: Respond with the letter(s) of...
code_security
{ "ground_truth": "F", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-209" ], "filename": "routes.py", "index": 16424, "language": "python", "options": [ "CWE-730", "CWE-327", "CWE-1333", "CWE-200", "CWE-20", "CWE-209" ], "source_dataset": "OctoReasoner/codeql2_aggressive", "source...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a catalog of candidate CWE (Common Weakness Enumeration) categories with their official MITRE names. Your task is to list every distinct CWE from that catalog that is actually present in the code. The catalog...
code_security
{ "ground_truth": "CWE-209", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-209" ], "filename": "routes.py", "index": 16425, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/extractors/refextract/extract/routes.py", "source_repo": "arXiv/arxiv-references...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a multiple-choice question listing several function or class names from that file. Your task is to identify which one contains the specified CWE vulnerability.\n\nOUTPUT FORMAT: Respond with the single letter...
code_security
{ "ground_truth": "B", "style": "rule" }
{ "all_acceptable": [ "extract" ], "cwe": "CWE-209", "cwes_present": [], "filename": "routes.py", "index": 16426, "language": "python", "options": [ "handle_upload", "extract", "getLogger", "cleanup_upload" ], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": ...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file. Your task is to name the single function or class that contains the specified CWE vulnerability.\n\nOUTPUT FORMAT: Respond with the exact function or class name (no parentheses, no qualifiers, no module prefixes), wrap...
code_security
{ "ground_truth": "extract", "style": "rule" }
{ "all_acceptable": [ "extract" ], "cwe": "CWE-209", "cwes_present": [], "filename": "routes.py", "index": 16427, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/extractors/refextract/extract/routes.py", "source_repo": "arXiv/arxiv-ref...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a multi-select question listing several CWE (Common Weakness Enumeration) categories. Your task is to identify which of the listed CWEs are present in the code.\n\nOUTPUT FORMAT: Respond with the letter(s) of...
code_security
{ "ground_truth": "A", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-327" ], "filename": "securefile.py", "index": 16428, "language": "python", "options": [ "CWE-327", "CWE-79", "CWE-326", "CWE-601", "CWE-200", "CWE-78" ], "source_dataset": "OctoReasoner/codeql2_aggressive", "sour...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a catalog of candidate CWE (Common Weakness Enumeration) categories with their official MITRE names. Your task is to list every distinct CWE from that catalog that is actually present in the code. The catalog...
code_security
{ "ground_truth": "CWE-327", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-327" ], "filename": "securefile.py", "index": 16429, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/gunnery/backend/securefile.py", "source_repo": "dholdaway/gunnery", "split...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a multiple-choice question listing several function or class names from that file. Your task is to identify which one contains the specified CWE vulnerability.\n\nOUTPUT FORMAT: Respond with the single letter...
code_security
{ "ground_truth": "D", "style": "rule" }
{ "all_acceptable": [ "__init__" ], "cwe": "CWE-327", "cwes_present": [], "filename": "securefile.py", "index": 16430, "language": "python", "options": [ "get_file_name", "remove", "PublicKey", "__init__" ], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file. Your task is to name the single function or class that contains the specified CWE vulnerability.\n\nOUTPUT FORMAT: Respond with the exact function or class name (no parentheses, no qualifiers, no module prefixes), wrap...
code_security
{ "ground_truth": "__init__", "style": "rule" }
{ "all_acceptable": [ "__init__" ], "cwe": "CWE-327", "cwes_present": [], "filename": "securefile.py", "index": 16431, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/gunnery/backend/securefile.py", "source_repo": "dholdaway/gunnery", ...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a multi-select question listing several CWE (Common Weakness Enumeration) categories. Your task is to identify which of the listed CWEs are present in the code.\n\nOUTPUT FORMAT: Respond with the letter(s) of...
code_security
{ "ground_truth": "A", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-20" ], "filename": "web.py", "index": 16432, "language": "python", "options": [ "CWE-20", "CWE-918", "CWE-601", "CWE-377", "CWE-116", "CWE-327" ], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a catalog of candidate CWE (Common Weakness Enumeration) categories with their official MITRE names. Your task is to list every distinct CWE from that catalog that is actually present in the code. The catalog...
code_security
{ "ground_truth": "CWE-20", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-20" ], "filename": "web.py", "index": 16433, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/astrocoffee/web.py", "source_repo": "abhimat/astrocoffee3", "split": "train", "t...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a multiple-choice question listing several function or class names from that file. Your task is to identify which one contains the specified CWE vulnerability.\n\nOUTPUT FORMAT: Respond with the single letter...
code_security
{ "ground_truth": "A", "style": "rule" }
{ "all_acceptable": [ "get_paper" ], "cwe": "CWE-20", "cwes_present": [], "filename": "web.py", "index": 16434, "language": "python", "options": [ "get_paper", "_set_science_info", "_set_arxiv_info", "_set_vixra_info" ], "source_dataset": "OctoReasoner/codeql2_aggressive", "sou...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file. Your task is to name the single function or class that contains the specified CWE vulnerability.\n\nOUTPUT FORMAT: Respond with the exact function or class name (no parentheses, no qualifiers, no module prefixes), wrap...
code_security
{ "ground_truth": "get_paper", "style": "rule" }
{ "all_acceptable": [ "get_paper" ], "cwe": "CWE-20", "cwes_present": [], "filename": "web.py", "index": 16435, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/astrocoffee/web.py", "source_repo": "abhimat/astrocoffee3", "split": "tra...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a multi-select question listing several CWE (Common Weakness Enumeration) categories. Your task is to identify which of the listed CWEs are present in the code.\n\nOUTPUT FORMAT: Respond with the letter(s) of...
code_security
{ "ground_truth": "D", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-312" ], "filename": "6-作业_返回字典.py", "index": 16436, "language": "python", "options": [ "CWE-20", "CWE-117", "CWE-377", "CWE-312", "CWE-79", "CWE-113" ], "source_dataset": "OctoReasoner/codeql2_aggressive", "sourc...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a catalog of candidate CWE (Common Weakness Enumeration) categories with their official MITRE names. Your task is to list every distinct CWE from that catalog that is actually present in the code. The catalog...
code_security
{ "ground_truth": "CWE-312", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-312" ], "filename": "6-作业_返回字典.py", "index": 16437, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/pycharm_wenjian/L10-数据库基础和sqlite/6-作业_返回字典.py", "source_repo": "limanmana/pyt...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a multi-select question listing several CWE (Common Weakness Enumeration) categories. Your task is to identify which of the listed CWEs are present in the code.\n\nOUTPUT FORMAT: Respond with the letter(s) of...
code_security
{ "ground_truth": "B,D,F", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-215", "CWE-22", "CWE-79" ], "filename": "web.py", "index": 16438, "language": "python", "options": [ "CWE-20", "CWE-215", "CWE-90", "CWE-22", "CWE-94", "CWE-79" ], "source_dataset": "OctoReasoner/codeql2_ag...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a catalog of candidate CWE (Common Weakness Enumeration) categories with their official MITRE names. Your task is to list every distinct CWE from that catalog that is actually present in the code. The catalog...
code_security
{ "ground_truth": "CWE-22,CWE-79,CWE-215", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-22", "CWE-79", "CWE-215" ], "filename": "web.py", "index": 16439, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/web.py", "source_repo": "mohtalam89/log-parser", "spl...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a multiple-choice question listing several function or class names from that file. Your task is to identify which one contains the specified CWE vulnerability.\n\nOUTPUT FORMAT: Respond with the single letter...
code_security
{ "ground_truth": "C", "style": "rule" }
{ "all_acceptable": [ "report" ], "cwe": "CWE-22", "cwes_present": [], "filename": "web.py", "index": 16440, "language": "python", "options": [ "list_log_files", "index", "report" ], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/web.py", "source_repo": "mo...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file. Your task is to name the single function or class that contains the specified CWE vulnerability.\n\nOUTPUT FORMAT: Respond with the exact function or class name (no parentheses, no qualifiers, no module prefixes), wrap...
code_security
{ "ground_truth": "report", "style": "rule" }
{ "all_acceptable": [ "report" ], "cwe": "CWE-22", "cwes_present": [], "filename": "web.py", "index": 16441, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/web.py", "source_repo": "mohtalam89/log-parser", "split": "train", "target...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a multi-select question listing several CWE (Common Weakness Enumeration) categories. Your task is to identify which of the listed CWEs are present in the code.\n\nOUTPUT FORMAT: Respond with the letter(s) of...
code_security
{ "ground_truth": "A", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-312" ], "filename": "day2.py", "index": 16442, "language": "python", "options": [ "CWE-312", "CWE-943", "CWE-377", "CWE-116", "CWE-918", "CWE-1333" ], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a catalog of candidate CWE (Common Weakness Enumeration) categories with their official MITRE names. Your task is to list every distinct CWE from that catalog that is actually present in the code. The catalog...
code_security
{ "ground_truth": "CWE-312", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-312" ], "filename": "day2.py", "index": 16443, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/day2.py", "source_repo": "Stitch07/aoc2020", "split": "train", "target_functio...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a multi-select question listing several CWE (Common Weakness Enumeration) categories. Your task is to identify which of the listed CWEs are present in the code.\n\nOUTPUT FORMAT: Respond with the letter(s) of...
code_security
{ "ground_truth": "B", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-327" ], "filename": "cexapi.py", "index": 16444, "language": "python", "options": [ "CWE-78", "CWE-327", "CWE-89", "CWE-116", "CWE-117", "CWE-943" ], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_p...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a catalog of candidate CWE (Common Weakness Enumeration) categories with their official MITRE names. Your task is to list every distinct CWE from that catalog that is actually present in the code. The catalog...
code_security
{ "ground_truth": "CWE-327", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-327" ], "filename": "cexapi.py", "index": 16445, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/cexapi.py", "source_repo": "marcellinamichie291/cex-bot", "split": "train", ...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a multiple-choice question listing several function or class names from that file. Your task is to identify which one contains the specified CWE vulnerability.\n\nOUTPUT FORMAT: Respond with the single letter...
code_security
{ "ground_truth": "C", "style": "rule" }
{ "all_acceptable": [ "add_security" ], "cwe": "CWE-327", "cwes_present": [], "filename": "cexapi.py", "index": 16446, "language": "python", "options": [ "cancel_order", "__init__", "add_security", "get_trade_hist" ], "source_dataset": "OctoReasoner/codeql2_aggressive", "source...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file. Your task is to name the single function or class that contains the specified CWE vulnerability.\n\nOUTPUT FORMAT: Respond with the exact function or class name (no parentheses, no qualifiers, no module prefixes), wrap...
code_security
{ "ground_truth": "add_security", "style": "rule" }
{ "all_acceptable": [ "add_security" ], "cwe": "CWE-327", "cwes_present": [], "filename": "cexapi.py", "index": 16447, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/cexapi.py", "source_repo": "marcellinamichie291/cex-bot", "split":...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a multi-select question listing several CWE (Common Weakness Enumeration) categories. Your task is to identify which of the listed CWEs are present in the code.\n\nOUTPUT FORMAT: Respond with the letter(s) of...
code_security
{ "ground_truth": "D,F", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-215", "CWE-79" ], "filename": "server.py", "index": 16448, "language": "python", "options": [ "CWE-295", "CWE-78", "CWE-730", "CWE-215", "CWE-312", "CWE-79" ], "source_dataset": "OctoReasoner/codeql2_aggressive...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a catalog of candidate CWE (Common Weakness Enumeration) categories with their official MITRE names. Your task is to list every distinct CWE from that catalog that is actually present in the code. The catalog...
code_security
{ "ground_truth": "CWE-79,CWE-215", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-79", "CWE-215" ], "filename": "server.py", "index": 16449, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/blackbird/server.py", "source_repo": "lorentzlasson/beam", "spli...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a multi-select question listing several CWE (Common Weakness Enumeration) categories. Your task is to identify which of the listed CWEs are present in the code.\n\nOUTPUT FORMAT: Respond with the letter(s) of...
code_security
{ "ground_truth": "C", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-502" ], "filename": "policy_server.py", "index": 16450, "language": "python", "options": [ "CWE-113", "CWE-377", "CWE-502", "CWE-90", "CWE-79", "CWE-611" ], "source_dataset": "OctoReasoner/codeql2_aggressive", "s...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a catalog of candidate CWE (Common Weakness Enumeration) categories with their official MITRE names. Your task is to list every distinct CWE from that catalog that is actually present in the code. The catalog...
code_security
{ "ground_truth": "CWE-502", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-502" ], "filename": "policy_server.py", "index": 16451, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/rllib/utils/policy_server.py", "source_repo": "stephanie-wang/ray", "sp...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a multiple-choice question listing several function or class names from that file. Your task is to identify which one contains the specified CWE vulnerability.\n\nOUTPUT FORMAT: Respond with the single letter...
code_security
{ "ground_truth": "D", "style": "rule" }
{ "all_acceptable": [ "do_POST" ], "cwe": "CWE-502", "cwes_present": [], "filename": "policy_server.py", "index": 16452, "language": "python", "options": [ "Handler", "__init__", "PolicyServer", "do_POST" ], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file. Your task is to name the single function or class that contains the specified CWE vulnerability.\n\nOUTPUT FORMAT: Respond with the exact function or class name (no parentheses, no qualifiers, no module prefixes), wrap...
code_security
{ "ground_truth": "do_POST", "style": "rule" }
{ "all_acceptable": [ "do_POST" ], "cwe": "CWE-502", "cwes_present": [], "filename": "policy_server.py", "index": 16453, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/rllib/utils/policy_server.py", "source_repo": "stephanie-wang/ray"...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a multi-select question listing several CWE (Common Weakness Enumeration) categories. Your task is to identify which of the listed CWEs are present in the code.\n\nOUTPUT FORMAT: Respond with the letter(s) of...
code_security
{ "ground_truth": "C", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-327" ], "filename": "supp.py", "index": 16454, "language": "python", "options": [ "CWE-90", "CWE-117", "CWE-327", "CWE-312", "CWE-326", "CWE-74" ], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_pat...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a catalog of candidate CWE (Common Weakness Enumeration) categories with their official MITRE names. Your task is to list every distinct CWE from that catalog that is actually present in the code. The catalog...
code_security
{ "ground_truth": "CWE-327", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-327" ], "filename": "supp.py", "index": 16455, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/supp.py", "source_repo": "wanero13/PRIR-rainbow", "split": "train", "target_fu...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a multi-select question listing several CWE (Common Weakness Enumeration) categories. Your task is to identify which of the listed CWEs are present in the code.\n\nOUTPUT FORMAT: Respond with the letter(s) of...
code_security
{ "ground_truth": "C", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-327" ], "filename": "set2_challenge12.py", "index": 16456, "language": "python", "options": [ "CWE-78", "CWE-611", "CWE-327", "CWE-20", "CWE-377", "CWE-74" ], "source_dataset": "OctoReasoner/codeql2_aggressive", ...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a catalog of candidate CWE (Common Weakness Enumeration) categories with their official MITRE names. Your task is to list every distinct CWE from that catalog that is actually present in the code. The catalog...
code_security
{ "ground_truth": "CWE-327", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-327" ], "filename": "set2_challenge12.py", "index": 16457, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/Cryptopals Set 2/set2_challenge12.py", "source_repo": "rajKarra69420/C...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a multiple-choice question listing several function or class names from that file. Your task is to identify which one contains the specified CWE vulnerability.\n\nOUTPUT FORMAT: Respond with the single letter...
code_security
{ "ground_truth": "B", "style": "rule" }
{ "all_acceptable": [ "oracle" ], "cwe": "CWE-327", "cwes_present": [], "filename": "set2_challenge12.py", "index": 16458, "language": "python", "options": [ "byte_at_a_time", "oracle" ], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/Cryptopals Set 2/set2_challe...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file. Your task is to name the single function or class that contains the specified CWE vulnerability.\n\nOUTPUT FORMAT: Respond with the exact function or class name (no parentheses, no qualifiers, no module prefixes), wrap...
code_security
{ "ground_truth": "oracle", "style": "rule" }
{ "all_acceptable": [ "oracle" ], "cwe": "CWE-327", "cwes_present": [], "filename": "set2_challenge12.py", "index": 16459, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/Cryptopals Set 2/set2_challenge12.py", "source_repo": "rajKarra6...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a multi-select question listing several CWE (Common Weakness Enumeration) categories. Your task is to identify which of the listed CWEs are present in the code.\n\nOUTPUT FORMAT: Respond with the letter(s) of...
code_security
{ "ground_truth": "C", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-327" ], "filename": "RPCserver.py", "index": 16460, "language": "python", "options": [ "CWE-1004", "CWE-113", "CWE-327", "CWE-776", "CWE-502", "CWE-20" ], "source_dataset": "OctoReasoner/codeql2_aggressive", "sou...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a catalog of candidate CWE (Common Weakness Enumeration) categories with their official MITRE names. Your task is to list every distinct CWE from that catalog that is actually present in the code. The catalog...
code_security
{ "ground_truth": "CWE-327", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-327" ], "filename": "RPCserver.py", "index": 16461, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/RPC calculator/RPCserver.py", "source_repo": "leiverandres/distributed-system...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a multi-select question listing several CWE (Common Weakness Enumeration) categories. Your task is to identify which of the listed CWEs are present in the code.\n\nOUTPUT FORMAT: Respond with the letter(s) of...
code_security
{ "ground_truth": "B,C", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-215", "CWE-79" ], "filename": "app.py", "index": 16462, "language": "python", "options": [ "CWE-502", "CWE-215", "CWE-79", "CWE-377", "CWE-89", "CWE-200" ], "source_dataset": "OctoReasoner/codeql2_aggressive", ...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a catalog of candidate CWE (Common Weakness Enumeration) categories with their official MITRE names. Your task is to list every distinct CWE from that catalog that is actually present in the code. The catalog...
code_security
{ "ground_truth": "CWE-79,CWE-215", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-79", "CWE-215" ], "filename": "app.py", "index": 16463, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/app.py", "source_repo": "fischtank44/flask-brython-example", "split...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a multiple-choice question listing several function or class names from that file. Your task is to identify which one contains the specified CWE vulnerability.\n\nOUTPUT FORMAT: Respond with the single letter...
code_security
{ "ground_truth": "C", "style": "rule" }
{ "all_acceptable": [ "reverse_string" ], "cwe": "CWE-79", "cwes_present": [], "filename": "app.py", "index": 16464, "language": "python", "options": [ "predict", "form_display", "reverse_string", "home" ], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/a...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file. Your task is to name the single function or class that contains the specified CWE vulnerability.\n\nOUTPUT FORMAT: Respond with the exact function or class name (no parentheses, no qualifiers, no module prefixes), wrap...
code_security
{ "ground_truth": "reverse_string", "style": "rule" }
{ "all_acceptable": [ "reverse_string" ], "cwe": "CWE-79", "cwes_present": [], "filename": "app.py", "index": 16465, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/app.py", "source_repo": "fischtank44/flask-brython-example", "split"...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a multi-select question listing several CWE (Common Weakness Enumeration) categories. Your task is to identify which of the listed CWEs are present in the code.\n\nOUTPUT FORMAT: Respond with the letter(s) of...
code_security
{ "ground_truth": "B", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-312" ], "filename": "Samarati.py", "index": 16466, "language": "python", "options": [ "CWE-20", "CWE-312", "CWE-74", "CWE-614", "CWE-209", "CWE-601" ], "source_dataset": "OctoReasoner/codeql2_aggressive", "source...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a catalog of candidate CWE (Common Weakness Enumeration) categories with their official MITRE names. Your task is to list every distinct CWE from that catalog that is actually present in the code. The catalog...
code_security
{ "ground_truth": "CWE-312", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-312" ], "filename": "Samarati.py", "index": 16467, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/src/algorithms/Samarati.py", "source_repo": "quintus0505/K-Anonymity", "spli...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a multiple-choice question listing several function or class names from that file. Your task is to identify which one contains the specified CWE vulnerability.\n\nOUTPUT FORMAT: Respond with the single letter...
code_security
{ "ground_truth": "A", "style": "rule" }
{ "all_acceptable": [ "process" ], "cwe": "CWE-312", "cwes_present": [], "filename": "Samarati.py", "index": 16468, "language": "python", "options": [ "process", "judge", "__init__", "compute_loss_metric" ], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file. Your task is to name the single function or class that contains the specified CWE vulnerability.\n\nOUTPUT FORMAT: Respond with the exact function or class name (no parentheses, no qualifiers, no module prefixes), wrap...
code_security
{ "ground_truth": "process", "style": "rule" }
{ "all_acceptable": [ "process" ], "cwe": "CWE-312", "cwes_present": [], "filename": "Samarati.py", "index": 16469, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/src/algorithms/Samarati.py", "source_repo": "quintus0505/K-Anonymity", ...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a multi-select question listing several CWE (Common Weakness Enumeration) categories. Your task is to identify which of the listed CWEs are present in the code.\n\nOUTPUT FORMAT: Respond with the letter(s) of...
code_security
{ "ground_truth": "A,C,D,E,F", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-209", "CWE-215", "CWE-22", "CWE-79", "CWE-918" ], "filename": "main.py", "index": 16470, "language": "python", "options": [ "CWE-22", "CWE-312", "CWE-918", "CWE-215", "CWE-79", "CWE-209" ], "source_...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a catalog of candidate CWE (Common Weakness Enumeration) categories with their official MITRE names. Your task is to list every distinct CWE from that catalog that is actually present in the code. The catalog...
code_security
{ "ground_truth": "CWE-22,CWE-79,CWE-209,CWE-215,CWE-918", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-22", "CWE-79", "CWE-209", "CWE-215", "CWE-918" ], "filename": "main.py", "index": 16471, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/app_python/main.py", "so...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a multiple-choice question listing several function or class names from that file. Your task is to identify which one contains the specified CWE vulnerability.\n\nOUTPUT FORMAT: Respond with the single letter...
code_security
{ "ground_truth": "B", "style": "rule" }
{ "all_acceptable": [ "audio" ], "cwe": "CWE-209", "cwes_present": [], "filename": "main.py", "index": 16472, "language": "python", "options": [ "download_online_file", "audio", "gcp_storage_upload_filename", "speech_to_text_short" ], "source_dataset": "OctoReasoner/codeql2_aggre...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file. Your task is to name the single function or class that contains the specified CWE vulnerability.\n\nOUTPUT FORMAT: Respond with the exact function or class name (no parentheses, no qualifiers, no module prefixes), wrap...
code_security
{ "ground_truth": "audio", "style": "rule" }
{ "all_acceptable": [ "audio" ], "cwe": "CWE-209", "cwes_present": [], "filename": "main.py", "index": 16473, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/app_python/main.py", "source_repo": "zaratsian/speech-to-text-container", "...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a multiple-choice question listing several function or class names from that file. Your task is to identify which one contains the specified CWE vulnerability.\n\nOUTPUT FORMAT: Respond with the single letter...
code_security
{ "ground_truth": "B", "style": "rule" }
{ "all_acceptable": [ "download_online_file" ], "cwe": "CWE-22", "cwes_present": [], "filename": "main.py", "index": 16474, "language": "python", "options": [ "speech_to_text_short", "download_online_file", "gcp_storage_upload_string", "gcp_storage_upload_filename" ], "source_dat...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file. Your task is to name the single function or class that contains the specified CWE vulnerability.\n\nOUTPUT FORMAT: Respond with the exact function or class name (no parentheses, no qualifiers, no module prefixes), wrap...
code_security
{ "ground_truth": "download_online_file", "style": "rule" }
{ "all_acceptable": [ "download_online_file" ], "cwe": "CWE-22", "cwes_present": [], "filename": "main.py", "index": 16475, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/app_python/main.py", "source_repo": "zaratsian/speech-to-text-c...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a multiple-choice question listing several function or class names from that file. Your task is to identify which one contains the specified CWE vulnerability.\n\nOUTPUT FORMAT: Respond with the single letter...
code_security
{ "ground_truth": "A", "style": "rule" }
{ "all_acceptable": [ "audio" ], "cwe": "CWE-79", "cwes_present": [], "filename": "main.py", "index": 16476, "language": "python", "options": [ "audio", "speech_to_text_short", "gcp_storage_upload_string", "gcp_storage_upload_filename" ], "source_dataset": "OctoReasoner/codeql2_a...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file. Your task is to name the single function or class that contains the specified CWE vulnerability.\n\nOUTPUT FORMAT: Respond with the exact function or class name (no parentheses, no qualifiers, no module prefixes), wrap...
code_security
{ "ground_truth": "audio", "style": "rule" }
{ "all_acceptable": [ "audio" ], "cwe": "CWE-79", "cwes_present": [], "filename": "main.py", "index": 16477, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/app_python/main.py", "source_repo": "zaratsian/speech-to-text-container", "s...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a multiple-choice question listing several function or class names from that file. Your task is to identify which one contains the specified CWE vulnerability.\n\nOUTPUT FORMAT: Respond with the single letter...
code_security
{ "ground_truth": "D", "style": "rule" }
{ "all_acceptable": [ "audio" ], "cwe": "CWE-918", "cwes_present": [], "filename": "main.py", "index": 16478, "language": "python", "options": [ "speech_to_text_short", "gcp_storage_upload_filename", "download_online_file", "audio" ], "source_dataset": "OctoReasoner/codeql2_aggre...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file. Your task is to name the single function or class that contains the specified CWE vulnerability.\n\nOUTPUT FORMAT: Respond with the exact function or class name (no parentheses, no qualifiers, no module prefixes), wrap...
code_security
{ "ground_truth": "audio", "style": "rule" }
{ "all_acceptable": [ "audio" ], "cwe": "CWE-918", "cwes_present": [], "filename": "main.py", "index": 16479, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/app_python/main.py", "source_repo": "zaratsian/speech-to-text-container", "...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a multi-select question listing several CWE (Common Weakness Enumeration) categories. Your task is to identify which of the listed CWEs are present in the code.\n\nOUTPUT FORMAT: Respond with the letter(s) of...
code_security
{ "ground_truth": "C", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-312" ], "filename": "liarbird.py", "index": 16480, "language": "python", "options": [ "CWE-326", "CWE-918", "CWE-312", "CWE-730", "CWE-732", "CWE-20" ], "source_dataset": "OctoReasoner/codeql2_aggressive", "sourc...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a catalog of candidate CWE (Common Weakness Enumeration) categories with their official MITRE names. Your task is to list every distinct CWE from that catalog that is actually present in the code. The catalog...
code_security
{ "ground_truth": "CWE-312", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-312" ], "filename": "liarbird.py", "index": 16481, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/liarbird.py", "source_repo": "timo-quinn/avian-rpi", "split": "train", "ta...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a multi-select question listing several CWE (Common Weakness Enumeration) categories. Your task is to identify which of the listed CWEs are present in the code.\n\nOUTPUT FORMAT: Respond with the letter(s) of...
code_security
{ "ground_truth": "D", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-295" ], "filename": "worker.py", "index": 16482, "language": "python", "options": [ "CWE-918", "CWE-776", "CWE-732", "CWE-295", "CWE-116", "CWE-78" ], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a catalog of candidate CWE (Common Weakness Enumeration) categories with their official MITRE names. Your task is to list every distinct CWE from that catalog that is actually present in the code. The catalog...
code_security
{ "ground_truth": "CWE-295", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-295" ], "filename": "worker.py", "index": 16483, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/mlcycle/worker.py", "source_repo": "cemizm/mlcycle-pyclient", "split": "train"...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a multi-select question listing several CWE (Common Weakness Enumeration) categories. Your task is to identify which of the listed CWEs are present in the code.\n\nOUTPUT FORMAT: Respond with the letter(s) of...
code_security
{ "ground_truth": "D", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-327" ], "filename": "imagestenographer.py", "index": 16484, "language": "python", "options": [ "CWE-20", "CWE-943", "CWE-200", "CWE-327", "CWE-89", "CWE-611" ], "source_dataset": "OctoReasoner/codeql2_aggressive", ...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a catalog of candidate CWE (Common Weakness Enumeration) categories with their official MITRE names. Your task is to list every distinct CWE from that catalog that is actually present in the code. The catalog...
code_security
{ "ground_truth": "CWE-327", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-327" ], "filename": "imagestenographer.py", "index": 16485, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/imagestenographer.py", "source_repo": "chruffins/image-steganographer...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a multi-select question listing several CWE (Common Weakness Enumeration) categories. Your task is to identify which of the listed CWEs are present in the code.\n\nOUTPUT FORMAT: Respond with the letter(s) of...
code_security
{ "ground_truth": "E", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-312" ], "filename": "shodan.py", "index": 16486, "language": "python", "options": [ "CWE-89", "CWE-116", "CWE-918", "CWE-1333", "CWE-312", "CWE-90" ], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a catalog of candidate CWE (Common Weakness Enumeration) categories with their official MITRE names. Your task is to list every distinct CWE from that catalog that is actually present in the code. The catalog...
code_security
{ "ground_truth": "CWE-312", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-312" ], "filename": "shodan.py", "index": 16487, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/ioc_analyzer/shodan/shodan.py", "source_repo": "devciscode/ioc-analyzer", "spl...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a multiple-choice question listing several function or class names from that file. Your task is to identify which one contains the specified CWE vulnerability.\n\nOUTPUT FORMAT: Respond with the single letter...
code_security
{ "ground_truth": "D", "style": "rule" }
{ "all_acceptable": [ "get_ip_data" ], "cwe": "CWE-312", "cwes_present": [], "filename": "shodan.py", "index": 16488, "language": "python", "options": [ "__init__", "test_connectivity", "get_type_mapping", "get_ip_data" ], "source_dataset": "OctoReasoner/codeql2_aggressive", "s...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file. Your task is to name the single function or class that contains the specified CWE vulnerability.\n\nOUTPUT FORMAT: Respond with the exact function or class name (no parentheses, no qualifiers, no module prefixes), wrap...
code_security
{ "ground_truth": "get_ip_data", "style": "rule" }
{ "all_acceptable": [ "get_ip_data" ], "cwe": "CWE-312", "cwes_present": [], "filename": "shodan.py", "index": 16489, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/ioc_analyzer/shodan/shodan.py", "source_repo": "devciscode/ioc-analyz...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a multi-select question listing several CWE (Common Weakness Enumeration) categories. Your task is to identify which of the listed CWEs are present in the code.\n\nOUTPUT FORMAT: Respond with the letter(s) of...
code_security
{ "ground_truth": "C,F", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-215", "CWE-601" ], "filename": "flinventory.py", "index": 16490, "language": "python", "options": [ "CWE-117", "CWE-377", "CWE-215", "CWE-732", "CWE-94", "CWE-601" ], "source_dataset": "OctoReasoner/codeql2_agg...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a catalog of candidate CWE (Common Weakness Enumeration) categories with their official MITRE names. Your task is to list every distinct CWE from that catalog that is actually present in the code. The catalog...
code_security
{ "ground_truth": "CWE-215,CWE-601", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-215", "CWE-601" ], "filename": "flinventory.py", "index": 16491, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/flinventory.py", "source_repo": "zgf2022/Flinventory", "sp...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a multi-select question listing several CWE (Common Weakness Enumeration) categories. Your task is to identify which of the listed CWEs are present in the code.\n\nOUTPUT FORMAT: Respond with the letter(s) of...
code_security
{ "ground_truth": "C", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-295" ], "filename": "allocate_vol_requests_sys_arg.py", "index": 16492, "language": "python", "options": [ "CWE-601", "CWE-89", "CWE-295", "CWE-502", "CWE-732", "CWE-327" ], "source_dataset": "OctoReasoner/codeql2_...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a catalog of candidate CWE (Common Weakness Enumeration) categories with their official MITRE names. Your task is to list every distinct CWE from that catalog that is actually present in the code. The catalog...
code_security
{ "ground_truth": "CWE-295", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-295" ], "filename": "allocate_vol_requests_sys_arg.py", "index": 16493, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/allocate_vol_requests_sys_arg.py", "source_repo": "schubb...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a multi-select question listing several CWE (Common Weakness Enumeration) categories. Your task is to identify which of the listed CWEs are present in the code.\n\nOUTPUT FORMAT: Respond with the letter(s) of...
code_security
{ "ground_truth": "A", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-327" ], "filename": "utils.py", "index": 16494, "language": "python", "options": [ "CWE-327", "CWE-326", "CWE-200", "CWE-20", "CWE-1004", "CWE-215" ], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a catalog of candidate CWE (Common Weakness Enumeration) categories with their official MITRE names. Your task is to list every distinct CWE from that catalog that is actually present in the code. The catalog...
code_security
{ "ground_truth": "CWE-327", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-327" ], "filename": "utils.py", "index": 16495, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/flaskext/auth/utils.py", "source_repo": "cundi/flask-auth", "split": "train", ...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a multiple-choice question listing several function or class names from that file. Your task is to identify which one contains the specified CWE vulnerability.\n\nOUTPUT FORMAT: Respond with the single letter...
code_security
{ "ground_truth": "C", "style": "rule" }
{ "all_acceptable": [ "get_hexdigest" ], "cwe": "CWE-327", "cwes_present": [], "filename": "utils.py", "index": 16496, "language": "python", "options": [ "check_password", "encode_password", "get_hexdigest" ], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/fl...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file. Your task is to name the single function or class that contains the specified CWE vulnerability.\n\nOUTPUT FORMAT: Respond with the exact function or class name (no parentheses, no qualifiers, no module prefixes), wrap...
code_security
{ "ground_truth": "get_hexdigest", "style": "rule" }
{ "all_acceptable": [ "get_hexdigest" ], "cwe": "CWE-327", "cwes_present": [], "filename": "utils.py", "index": 16497, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/flaskext/auth/utils.py", "source_repo": "cundi/flask-auth", "split...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a multi-select question listing several CWE (Common Weakness Enumeration) categories. Your task is to identify which of the listed CWEs are present in the code.\n\nOUTPUT FORMAT: Respond with the letter(s) of...
code_security
{ "ground_truth": "D", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-209" ], "filename": "routes.py", "index": 16498, "language": "python", "options": [ "CWE-20", "CWE-113", "CWE-89", "CWE-209", "CWE-200", "CWE-326" ], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_p...
sast_cwe
[ { "content": "You are an expert security code reviewer. You will be shown a source code file along with a catalog of candidate CWE (Common Weakness Enumeration) categories with their official MITRE names. Your task is to list every distinct CWE from that catalog that is actually present in the code. The catalog...
code_security
{ "ground_truth": "CWE-209", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-209" ], "filename": "routes.py", "index": 16499, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/expertise/service/routes.py", "source_repo": "openreview/openreview-expertise", ...