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 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": [ "write_one_entry" ], "cwe": "CWE-312", "cwes_present": [], "filename": "export_dayone_entries.py", "index": 10500, "language": "python", "options": [ "convert_entry_to_str", "generate_slug_from_title", "main", "write_one_entry" ], "source_dataset": "OctoReas...
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": "write_one_entry", "style": "rule" }
{ "all_acceptable": [ "write_one_entry" ], "cwe": "CWE-312", "cwes_present": [], "filename": "export_dayone_entries.py", "index": 10501, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/export_dayone_entries.py", "source_repo": "edwinst...
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,B", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-312", "CWE-327" ], "filename": "genesis.py", "index": 10502, "language": "python", "options": [ "CWE-327", "CWE-312", "CWE-918", "CWE-776", "CWE-1333", "CWE-94" ], "source_dataset": "OctoReasoner/codeql2_aggres...
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,CWE-327", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-312", "CWE-327" ], "filename": "genesis.py", "index": 10503, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/CommomDataDatabases/code/genesis.py", "source_repo": "rf-peixoto...
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-918" ], "filename": "server.py", "index": 10504, "language": "python", "options": [ "CWE-209", "CWE-113", "CWE-502", "CWE-1004", "CWE-918", "CWE-117" ], "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-918", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-918" ], "filename": "server.py", "index": 10505, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/TensorFlow/server.py", "source_repo": "AlexGz9851/GuideMe", "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": "A", "style": "rule" }
{ "all_acceptable": [ "post" ], "cwe": "CWE-918", "cwes_present": [], "filename": "server.py", "index": 10506, "language": "python", "options": [ "post", "ImageData" ], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/TensorFlow/server.py", "source_repo": "AlexGz...
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": "post", "style": "rule" }
{ "all_acceptable": [ "post" ], "cwe": "CWE-918", "cwes_present": [], "filename": "server.py", "index": 10507, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/TensorFlow/server.py", "source_repo": "AlexGz9851/GuideMe", "split": "trai...
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": "Base.py", "index": 10508, "language": "python", "options": [ "CWE-200", "CWE-502", "CWE-312", "CWE-20", "CWE-89", "CWE-117" ], "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": "Base.py", "index": 10509, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/Base.py", "source_repo": "MohammedRashad/Github-Manger-CLI", "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-79" ], "filename": "renderers.py", "index": 10510, "language": "python", "options": [ "CWE-502", "CWE-90", "CWE-614", "CWE-215", "CWE-327", "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-79", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-79" ], "filename": "renderers.py", "index": 10511, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/kart/renderers.py", "source_repo": "giacomocaironi/Kart", "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": "D", "style": "rule" }
{ "all_acceptable": [ "__init__" ], "cwe": "CWE-79", "cwes_present": [], "filename": "renderers.py", "index": 10512, "language": "python", "options": [ "render_single", "DefaultSiteRenderer", "DefaultDirectoryRenderer", "__init__" ], "source_dataset": "OctoReasoner/codeql2_aggres...
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": "renderers.py", "index": 10513, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/kart/renderers.py", "source_repo": "giacomocaironi/Kart", "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": "类和对象.py", "index": 10514, "language": "python", "options": [ "CWE-116", "CWE-312", "CWE-79", "CWE-22", "CWE-918", "CWE-113" ], "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": "类和对象.py", "index": 10515, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/code/obj/类和对象.py", "source_repo": "JamesXia23/python", "split": "train", "targ...
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": [ "show_info" ], "cwe": "CWE-312", "cwes_present": [], "filename": "类和对象.py", "index": 10516, "language": "python", "options": [ "show_info", "FishMan", "swim", "Fish" ], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/code/obj/类和对象.py"...
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": "show_info", "style": "rule" }
{ "all_acceptable": [ "show_info" ], "cwe": "CWE-312", "cwes_present": [], "filename": "类和对象.py", "index": 10517, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/code/obj/类和对象.py", "source_repo": "JamesXia23/python", "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": "E,F", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-215", "CWE-79" ], "filename": "flask_server_template.py", "index": 10518, "language": "python", "options": [ "CWE-78", "CWE-943", "CWE-22", "CWE-502", "CWE-79", "CWE-215" ], "source_dataset": "OctoReasoner/code...
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": "flask_server_template.py", "index": 10519, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/flask_server_template.py", "source_repo": "mich2369...
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": "passwords_LinkedList.py", "index": 10520, "language": "python", "options": [ "CWE-377", "CWE-1004", "CWE-312", "CWE-200", "CWE-776", "CWE-113" ], "source_dataset": "OctoReasoner/codeql2_aggress...
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": "passwords_LinkedList.py", "index": 10521, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/passwords_LinkedList.py", "source_repo": "jllujan/Lab_2_Linked-Lis...
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": [ "print" ], "cwe": "CWE-312", "cwes_present": [], "filename": "passwords_LinkedList.py", "index": 10522, "language": "python", "options": [ "length", "print", "merge_and_sort", "solution_b" ], "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": "print", "style": "rule" }
{ "all_acceptable": [ "print" ], "cwe": "CWE-312", "cwes_present": [], "filename": "passwords_LinkedList.py", "index": 10523, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/passwords_LinkedList.py", "source_repo": "jllujan/Lab_2_Linke...
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": "birthday.py", "index": 10524, "language": "python", "options": [ "CWE-209", "CWE-74", "CWE-312", "CWE-78", "CWE-614", "CWE-117" ], "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": "birthday.py", "index": 10525, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/birthday.py", "source_repo": "boarpig/tidbits", "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": "C", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-312" ], "filename": "pull_addresses.py", "index": 10526, "language": "python", "options": [ "CWE-295", "CWE-209", "CWE-312", "CWE-732", "CWE-601", "CWE-215" ], "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-312", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-312" ], "filename": "pull_addresses.py", "index": 10527, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/projects/airbnb santa clara/pull_addresses.py", "source_repo": "altdeep/...
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": [ "generate_csv_data" ], "cwe": "CWE-312", "cwes_present": [], "filename": "pull_addresses.py", "index": 10528, "language": "python", "options": [ "pull_addresses_0320", "generate_csv_data", "pull_addresses_0719", "filter_dataframe" ], "source_dataset": "OctoR...
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": "generate_csv_data", "style": "rule" }
{ "all_acceptable": [ "generate_csv_data" ], "cwe": "CWE-312", "cwes_present": [], "filename": "pull_addresses.py", "index": 10529, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/projects/airbnb santa clara/pull_addresses.py", "source...
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-327" ], "filename": "encrypt.py", "index": 10530, "language": "python", "options": [ "CWE-943", "CWE-215", "CWE-312", "CWE-20", "CWE-94", "CWE-327" ], "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": "encrypt.py", "index": 10531, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/encrypt.py", "source_repo": "pyonghe/DInjector", "split": "train", "target_...
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": [ "__init__" ], "cwe": "CWE-327", "cwes_present": [], "filename": "encrypt.py", "index": 10532, "language": "python", "options": [ "encrypt", "__init__", "parse_args", "AES" ], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/encrypt.py"...
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": "encrypt.py", "index": 10533, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/encrypt.py", "source_repo": "pyonghe/DInjector", "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": "C", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-89" ], "filename": "services.py", "index": 10534, "language": "python", "options": [ "CWE-74", "CWE-78", "CWE-89", "CWE-732", "CWE-1004", "CWE-79" ], "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-89", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-89" ], "filename": "services.py", "index": 10535, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/services.py", "source_repo": "sugus-labs/M2More", "split": "train", "target...
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": [ "query_DB" ], "cwe": "CWE-89", "cwes_present": [], "filename": "services.py", "index": 10536, "language": "python", "options": [ "MainHandler", "query_DB", "dict_to_json", "get" ], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/servi...
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": "query_DB", "style": "rule" }
{ "all_acceptable": [ "query_DB" ], "cwe": "CWE-89", "cwes_present": [], "filename": "services.py", "index": 10537, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/services.py", "source_repo": "sugus-labs/M2More", "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": "E", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-312" ], "filename": "spoof-mac.py", "index": 10538, "language": "python", "options": [ "CWE-327", "CWE-20", "CWE-200", "CWE-116", "CWE-312", "CWE-79" ], "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": "spoof-mac.py", "index": 10539, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/scripts/spoof-mac.py", "source_repo": "Cx2H/SpoofMAC", "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": "A", "style": "rule" }
{ "all_acceptable": [ "main" ], "cwe": "CWE-312", "cwes_present": [], "filename": "spoof-mac.py", "index": 10540, "language": "python", "options": [ "main", "list_interfaces" ], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/scripts/spoof-mac.py", "source_repo"...
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": "main", "style": "rule" }
{ "all_acceptable": [ "main" ], "cwe": "CWE-312", "cwes_present": [], "filename": "spoof-mac.py", "index": 10541, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/scripts/spoof-mac.py", "source_repo": "Cx2H/SpoofMAC", "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-312" ], "filename": "main_n_dp.py", "index": 10542, "language": "python", "options": [ "CWE-377", "CWE-312", "CWE-90", "CWE-200", "CWE-943", "CWE-79" ], "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": "main_n_dp.py", "index": 10543, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/python3/hackerrank_leetcode/password_cracker/main_n_dp.py", "source_repo": "s...
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": "extract_links_osti_xml.py", "index": 10544, "language": "python", "options": [ "CWE-1333", "CWE-502", "CWE-78", "CWE-326", "CWE-312", "CWE-20" ], "source_dataset": "OctoReasoner/codeql2_aggressi...
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": "extract_links_osti_xml.py", "index": 10545, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/Python_Backend/1_Download_data/extract_links_osti_xml.py", "sourc...
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": [ "extract_links" ], "cwe": "CWE-20", "cwes_present": [], "filename": "extract_links_osti_xml.py", "index": 10546, "language": "python", "options": [ "file_opener", "extract_identifiers", "extract_links", "save_file" ], "source_dataset": "OctoReasoner/codeql2_...
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_links", "style": "rule" }
{ "all_acceptable": [ "extract_links" ], "cwe": "CWE-20", "cwes_present": [], "filename": "extract_links_osti_xml.py", "index": 10547, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/Python_Backend/1_Download_data/extract_links_osti_xml....
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,E", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-117", "CWE-79" ], "filename": "gateway.py", "index": 10548, "language": "python", "options": [ "CWE-377", "CWE-79", "CWE-776", "CWE-20", "CWE-117", "CWE-200" ], "source_dataset": "OctoReasoner/codeql2_aggressiv...
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-117", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-79", "CWE-117" ], "filename": "gateway.py", "index": 10549, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/gateway.py", "source_repo": "arterys/inference-sdk", "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": "B", "style": "rule" }
{ "all_acceptable": [ "_do_inference" ], "cwe": "CWE-117", "cwes_present": [], "filename": "gateway.py", "index": 10550, "language": "python", "options": [ "add_inference_route", "_do_inference", "_make_field_tuple", "__init__" ], "source_dataset": "OctoReasoner/codeql2_aggressiv...
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_inference", "style": "rule" }
{ "all_acceptable": [ "_do_inference" ], "cwe": "CWE-117", "cwes_present": [], "filename": "gateway.py", "index": 10551, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/gateway.py", "source_repo": "arterys/inference-sdk", "split": "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": "B", "style": "rule" }
{ "all_acceptable": [ "_do_inference" ], "cwe": "CWE-79", "cwes_present": [], "filename": "gateway.py", "index": 10552, "language": "python", "options": [ "_make_field_tuple", "_do_inference", "add_healthcheck_route", "add_inference_route" ], "source_dataset": "OctoReasoner/codeq...
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_inference", "style": "rule" }
{ "all_acceptable": [ "_do_inference" ], "cwe": "CWE-79", "cwes_present": [], "filename": "gateway.py", "index": 10553, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/gateway.py", "source_repo": "arterys/inference-sdk", "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": "E", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-312" ], "filename": "password_extract.py", "index": 10554, "language": "python", "options": [ "CWE-94", "CWE-117", "CWE-22", "CWE-78", "CWE-312", "CWE-116" ], "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-312", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-312" ], "filename": "password_extract.py", "index": 10555, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/password_extract.py", "source_repo": "andrealmeid/pony-password-extrac...
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": "lookup.py", "index": 10556, "language": "python", "options": [ "CWE-312", "CWE-89", "CWE-209", "CWE-90", "CWE-611", "CWE-918" ], "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-312", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-312" ], "filename": "lookup.py", "index": 10557, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/examples/lookup.py", "source_repo": "messagebird/python-rest-api", "split": "t...
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": "MyNBClassifier.py", "index": 10558, "language": "python", "options": [ "CWE-918", "CWE-94", "CWE-79", "CWE-312", "CWE-215", "CWE-601" ], "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-312", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-312" ], "filename": "MyNBClassifier.py", "index": 10559, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/MyNBClassifier.py", "source_repo": "Ankita-Das/Titanic-Survival-Predicti...
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-918" ], "filename": "proxy.py", "index": 10560, "language": "python", "options": [ "CWE-312", "CWE-730", "CWE-90", "CWE-918", "CWE-200", "CWE-1004" ], "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-918", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-918" ], "filename": "proxy.py", "index": 10561, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/scripts/proxy.py", "source_repo": "kmacrow/jquery.instagram.js", "split": "trai...
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": "pyinctaxuk.py", "index": 10562, "language": "python", "options": [ "CWE-94", "CWE-116", "CWE-312", "CWE-327", "CWE-79", "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": "pyinctaxuk.py", "index": 10563, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/pyinctaxuk.py", "source_repo": "edstu94/pyincometaxuk", "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": [ "output_annual_tax_results" ], "cwe": "CWE-312", "cwes_present": [], "filename": "pyinctaxuk.py", "index": 10564, "language": "python", "options": [ "get_net_adjusted_income", "get_annual_tax", "output_annual_tax_results", "output_monthly_tax_results" ], "so...
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": "output_annual_tax_results", "style": "rule" }
{ "all_acceptable": [ "output_annual_tax_results" ], "cwe": "CWE-312", "cwes_present": [], "filename": "pyinctaxuk.py", "index": 10565, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/pyinctaxuk.py", "source_repo": "edstu94/pyincometax...
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": "河北经融学院新闻采集.py", "index": 10566, "language": "python", "options": [ "CWE-614", "CWE-113", "CWE-295", "CWE-730", "CWE-200", "CWE-327" ], "source_dataset": "OctoReasoner/codeql2_aggressive", "so...
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": "河北经融学院新闻采集.py", "index": 10567, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/青灯VIP/day05/课后作业/河北经融学院新闻采集.py", "source_repo": "xzlmark/webspider", "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": [ "get_news_title_content" ], "cwe": "CWE-295", "cwes_present": [], "filename": "河北经融学院新闻采集.py", "index": 10568, "language": "python", "options": [ "get_news_title_content", "save_to_csv" ], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/青灯VIP...
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_news_title_content", "style": "rule" }
{ "all_acceptable": [ "get_news_title_content" ], "cwe": "CWE-295", "cwes_present": [], "filename": "河北经融学院新闻采集.py", "index": 10569, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/青灯VIP/day05/课后作业/河北经融学院新闻采集.py", "source_repo": "xzlma...
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-79" ], "filename": "kipoi_export.py", "index": 10570, "language": "python", "options": [ "CWE-116", "CWE-312", "CWE-79", "CWE-502", "CWE-601", "CWE-377" ], "source_dataset": "OctoReasoner/codeql2_aggressive", "so...
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": "kipoi_export.py", "index": 10571, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/manuscript/case2/3_kipoi_export/kipoi_export.py", "source_repo": "jorenrete...
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": [ "export_to_kipoi" ], "cwe": "CWE-79", "cwes_present": [], "filename": "kipoi_export.py", "index": 10572, "language": "python", "options": [ "remove_data_parallel_module", "export_to_kipoi", "save_model_state_dict_only" ], "source_dataset": "OctoReasoner/codeql2_...
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": "export_to_kipoi", "style": "rule" }
{ "all_acceptable": [ "export_to_kipoi" ], "cwe": "CWE-79", "cwes_present": [], "filename": "kipoi_export.py", "index": 10573, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/manuscript/case2/3_kipoi_export/kipoi_export.py", "source_re...
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": "script.py", "index": 10574, "language": "python", "options": [ "CWE-601", "CWE-116", "CWE-22", "CWE-327", "CWE-74", "CWE-732" ], "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": "script.py", "index": 10575, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/script.py", "source_repo": "AleksMVP/mitm-proxy", "split": "train", "target_...
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": [ "make_https_request" ], "cwe": "CWE-327", "cwes_present": [], "filename": "script.py", "index": 10576, "language": "python", "options": [ "check_query_params", "make_https_request", "check_body_params", "__init__" ], "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": "make_https_request", "style": "rule" }
{ "all_acceptable": [ "make_https_request" ], "cwe": "CWE-327", "cwes_present": [], "filename": "script.py", "index": 10577, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/script.py", "source_repo": "AleksMVP/mitm-proxy", "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": "C,E", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-209", "CWE-215" ], "filename": "main.py", "index": 10578, "language": "python", "options": [ "CWE-116", "CWE-94", "CWE-215", "CWE-776", "CWE-209", "CWE-78" ], "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-209,CWE-215", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-209", "CWE-215" ], "filename": "main.py", "index": 10579, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/main.py", "source_repo": "Neeologist/dialogflow_neo4j", "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": [ "webhook" ], "cwe": "CWE-209", "cwes_present": [], "filename": "main.py", "index": 10580, "language": "python", "options": [ "recommendation", "recharge", "webhook", "check_bill" ], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/main...
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": "webhook", "style": "rule" }
{ "all_acceptable": [ "webhook" ], "cwe": "CWE-209", "cwes_present": [], "filename": "main.py", "index": 10581, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/main.py", "source_repo": "Neeologist/dialogflow_neo4j", "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": "A", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-312" ], "filename": "metabase.py", "index": 10582, "language": "python", "options": [ "CWE-312", "CWE-326", "CWE-295", "CWE-377", "CWE-90", "CWE-601" ], "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": "metabase.py", "index": 10583, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/dbtmetabase/metabase.py", "source_repo": "venturehacks/dbt-metabase", "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": [ "api" ], "cwe": "CWE-312", "cwes_present": [], "filename": "metabase.py", "index": 10584, "language": "python", "options": [ "get_session_id", "export_column", "models_compatible", "api" ], "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": "api", "style": "rule" }
{ "all_acceptable": [ "api" ], "cwe": "CWE-312", "cwes_present": [], "filename": "metabase.py", "index": 10585, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/dbtmetabase/metabase.py", "source_repo": "venturehacks/dbt-metabase", "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": "B", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-601" ], "filename": "routes.py", "index": 10586, "language": "python", "options": [ "CWE-377", "CWE-601", "CWE-215", "CWE-918", "CWE-74", "CWE-776" ], "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-601", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-601" ], "filename": "routes.py", "index": 10587, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/flask_blog/flaskblog/routes.py", "source_repo": "corpsgeek/100-days-of-code", ...
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": [ "login" ], "cwe": "CWE-601", "cwes_present": [], "filename": "routes.py", "index": 10588, "language": "python", "options": [ "home", "register", "delete_post", "login" ], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/flask_blog/flas...
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": "login", "style": "rule" }
{ "all_acceptable": [ "login" ], "cwe": "CWE-601", "cwes_present": [], "filename": "routes.py", "index": 10589, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/flask_blog/flaskblog/routes.py", "source_repo": "corpsgeek/100-days-of-code...
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-89" ], "filename": "server.py", "index": 10590, "language": "python", "options": [ "CWE-89", "CWE-327", "CWE-377", "CWE-20", "CWE-1004", "CWE-113" ], "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-89", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-89" ], "filename": "server.py", "index": 10591, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/server.py", "source_repo": "jk2227/nba-hack", "split": "train", "target_funct...
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": [ "run_query" ], "cwe": "CWE-89", "cwes_present": [], "filename": "server.py", "index": 10592, "language": "python", "options": [ "object_as_dict", "load", "run_query", "query" ], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/server.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": "run_query", "style": "rule" }
{ "all_acceptable": [ "run_query" ], "cwe": "CWE-89", "cwes_present": [], "filename": "server.py", "index": 10593, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/server.py", "source_repo": "jk2227/nba-hack", "split": "train", "tar...
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": "multidevice_netmiko.py", "index": 10594, "language": "python", "options": [ "CWE-74", "CWE-117", "CWE-312", "CWE-79", "CWE-1004", "CWE-78" ], "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-312", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-312" ], "filename": "multidevice_netmiko.py", "index": 10595, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/multidevice_netmiko.py", "source_repo": "redashu/codes", "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-209", "CWE-79" ], "filename": "serv.py", "index": 10596, "language": "python", "options": [ "CWE-611", "CWE-113", "CWE-1004", "CWE-209", "CWE-326", "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-209", "style": "rule" }
{ "all_acceptable": [], "cwe": "", "cwes_present": [ "CWE-79", "CWE-209" ], "filename": "serv.py", "index": 10597, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/serv.py", "source_repo": "ArtemKar123/Kruzhok-games", "split": "tr...
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": [ "get_metrics" ], "cwe": "CWE-209", "cwes_present": [], "filename": "serv.py", "index": 10598, "language": "python", "options": [ "add_user", "get_metrics", "hello_world", "get_user" ], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/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_metrics", "style": "rule" }
{ "all_acceptable": [ "get_metrics" ], "cwe": "CWE-209", "cwes_present": [], "filename": "serv.py", "index": 10599, "language": "python", "options": [], "source_dataset": "OctoReasoner/codeql2_aggressive", "source_path": "/serv.py", "source_repo": "ArtemKar123/Kruzhok-games", "split": "train...