query stringclasses 1
value | status stringclasses 1
value | extracted_code stringclasses 1
value | code_generator_response stringclasses 5
values | compiler_errors stringclasses 2
values | error_solver_response stringclasses 1
value | regenerated_code stringclasses 1
value | end_node_status stringclasses 1
value | unit_test_code stringclasses 3
values | static_analysis_success bool 1
class | static_analysis_errors stringclasses 1
value | dynamic_analysis_success bool 1
class | compiler_test_results stringclasses 3
values | execution_id stringclasses 3
values | result_summary stringclasses 6
values | generated_code stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Write a Python function to find the factorial of a number | success | def factorial(n):
if n < 0:
return None # Factorial is not defined for negative numbers
elif n == 0 or n == 1:
return 1
else:
result = 1
for i in range(2, n + 1):
result *= i
return result | {"code": "def factorial(n):\n if n < 0:\n return None # Factorial is not defined for negative numbers\n elif n == 0 or n == 1:\n return 1\n else:\n result = 1\n for i in range(2, n + 1):\n result *= i\n return result", "timestamp": "2025-03-16T03:11:28.045552", "l... | [] | {"solution": ""} | {"code": ""} | completed | import pytest
def test_factorial_negative():
assert factorial(-1) is None, \u201cFactorial of negative number should be None\u201d
def test_factorial_zero():
assert factorial(0) == 1, \u201cFactorial of 0 should be 1\u201d
def test_factorial_positive():
assert factorial(5) == 120, \u201cFactorial of 5 sh... | true | [] | true | {"static_analysis": {"success": true, "strategies": {"_validate_pycodestyle": {"success": true, "errors": [], "output": ""}}, "errors": [], "timestamp": "2025-03-16T03:11:28.051549"}, "dynamic_analysis": {"success": true, "details": {"unit_test_code": "import pytest\n\ndef test_factorial_negative():\n assert factori... | 20250316_031125 | {"query": "Write a Python function to find the factorial of a number", "code_generated": true, "code_length": 253, "unit_tests_generated": true, "unit_test_count": 3, "status": "success", "static_analysis_passed": true, "dynamic_analysis_passed": true, "completion_time": "2025-03-16T03:11:31.627104", "execution_id": "2... | def factorial(n):
if n < 0:
return None # Factorial is not defined for negative numbers
elif n == 0 or n == 1:
return 1
else:
result = 1
for i in range(2, n + 1):
result *= i
return result |
Write a Python function to find the factorial of a number | success | def factorial(n):
if n < 0:
return None # Factorial is not defined for negative numbers
elif n == 0 or n == 1:
return 1
else:
result = 1
for i in range(2, n + 1):
result *= i
return result | {"code": "def factorial(n):\n if n < 0:\n return None # Factorial is not defined for negative numbers\n elif n == 0 or n == 1:\n return 1\n else:\n result = 1\n for i in range(2, n + 1):\n result *= i\n return result", "timestamp": "2025-03-16T03:15:21.553568", "l... | [] | {"solution": ""} | {"code": ""} | completed | import pytest
def test_factorial_negative():
assert factorial(-1) is None, \u201cFactorial of negative number should be None\u201d
def test_factorial_zero():
assert factorial(0) == 1, \u201cFactorial of 0 should be 1\u201d
def test_factorial_positive():
assert factorial(5) == 120, \u201cFactorial of 5 sh... | true | [] | true | {"static_analysis": {"success": true, "strategies": {"_validate_pycodestyle": {"success": true, "errors": [], "output": ""}}, "errors": [], "timestamp": "2025-03-16T03:15:21.560869"}, "dynamic_analysis": {"success": true, "details": {"unit_test_code": "import pytest\n\ndef test_factorial_negative():\n assert factori... | 20250316_031519 | {"query": "Write a Python function to find the factorial of a number", "code_generated": true, "code_length": 253, "unit_tests_generated": true, "unit_test_count": 3, "status": "success", "static_analysis_passed": true, "dynamic_analysis_passed": true, "completion_time": "2025-03-16T03:15:25.582047", "execution_id": "2... | def factorial(n):
if n < 0:
return None # Factorial is not defined for negative numbers
elif n == 0 or n == 1:
return 1
else:
result = 1
for i in range(2, n + 1):
result *= i
return result |
Write a Python function to find the factorial of a number | success | def factorial(n):
if n < 0:
return None # Factorial is not defined for negative numbers
elif n == 0 or n == 1:
return 1
else:
result = 1
for i in range(2, n + 1):
result *= i
return result | {"code": "def factorial(n):\n if n < 0:\n return None # Factorial is not defined for negative numbers\n elif n == 0 or n == 1:\n return 1\n else:\n result = 1\n for i in range(2, n + 1):\n result *= i\n return result", "timestamp": "2025-03-16T03:17:07.132226", "l... | [] | {"solution": ""} | {"code": ""} | completed | import pytest
def test_factorial_negative():
assert factorial(-5) is None, 'Factorial of a negative number should be None'
def test_factorial_zero_one():
assert factorial(0) == 1, 'Factorial of 0 should be 1'
assert factorial(1) == 1, 'Factorial of 1 should be 1'
def test_factorial_positive():
assert... | true | [] | true | {"static_analysis": {"success": true, "strategies": {"_validate_pycodestyle": {"success": true, "errors": [], "output": ""}}, "errors": [], "timestamp": "2025-03-16T03:17:07.137726"}, "dynamic_analysis": {"success": true, "details": {"unit_test_code": "import pytest\n\ndef test_factorial_negative():\n assert factori... | 20250316_031705 | {"query": "Write a Python function to find the factorial of a number", "code_generated": true, "code_length": 253, "unit_tests_generated": true, "unit_test_count": 3, "status": "success", "static_analysis_passed": true, "dynamic_analysis_passed": true, "completion_time": "2025-03-16T03:17:10.869142", "execution_id": "2... | def factorial(n):
if n < 0:
return None # Factorial is not defined for negative numbers
elif n == 0 or n == 1:
return 1
else:
result = 1
for i in range(2, n + 1):
result *= i
return result |
Write a Python function to find the factorial of a number | success | null | {"code": "def factorial(n):\n if n == 0 or n == 1:\n return 1\n else:\n return n * factorial(n - 1)"} | {"solution": ""} | {"code": ""} | completed | null | null | null | null | null | null | {"query": "Write a Python function to find the factorial of a number", "code_generated": true, "code_length": 105, "status": "success", "static_analysis_passed": false, "dynamic_analysis_passed": false, "test_count": 0, "completion_time": "2025-03-16T03:40:24.959189"} | null | |
Write a Python function to find the factorial of a number | success | null | {"code": "def factorial(n):\n if n < 0:\n return None # Factorial is not defined for negative numbers\n elif n == 0 or n == 1:\n return 1\n else:\n result = 1\n for i in range(2, n + 1):\n result *= i\n return result"} | {"solution": ""} | {"code": ""} | completed | null | null | null | null | null | null | {"query": "Write a Python function to find the factorial of a number", "code_generated": true, "code_length": 253, "status": "success", "static_analysis_passed": false, "dynamic_analysis_passed": false, "test_count": 0, "completion_time": "2025-03-16T09:25:30.894739"} | null | |
Write a Python function to find the factorial of a number | success | null | {"code": "def factorial(n):\n if n < 0:\n return None # Factorial is not defined for negative numbers\n elif n == 0 or n == 1:\n return 1\n else:\n result = 1\n for i in range(2, n + 1):\n result *= i\n return result"} | {"solution": ""} | {"code": ""} | completed | null | null | null | null | null | null | {"query": "Write a Python function to find the factorial of a number", "code_generated": true, "code_length": 253, "status": "success", "static_analysis_passed": false, "dynamic_analysis_passed": false, "test_count": 0, "completion_time": "2025-03-16T09:31:27.756238"} | null |
SyntheticDataset
Synthetic code generation pipeline outputs. Each row captures the full lifecycle of an LLM-generated code solution: generation, error handling, static analysis, dynamic testing, and final results. Built from an automated code generation and verification pipeline.
Dataset Details
| Field | Value |
|---|---|
| Split | SyntheticDataset |
| Rows | 6 |
| Language | English / Python |
| Format | Parquet |
Schema
| Column | Type | Description |
|---|---|---|
query |
string | Natural language coding task description |
status |
string | Overall pipeline status (e.g. success, failure) |
extracted_code |
string | Code extracted from the LLM's raw response |
code_generator_response |
string | Full raw LLM generation output |
compiler_errors |
string | Compilation errors encountered, if any |
error_solver_response |
string | LLM response when asked to fix compilation errors |
regenerated_code |
string | Corrected code produced after error resolution |
end_node_status |
string | Final pipeline node status |
unit_test_code |
string | Auto-generated unit tests for the solution |
static_analysis_success |
bool | Whether static analysis (linting) passed |
static_analysis_errors |
string | Static analysis error details |
dynamic_analysis_success |
bool | Whether runtime/dynamic tests passed |
compiler_test_results |
string | Compiler and test runner output |
execution_id |
string | Unique pipeline run identifier |
result_summary |
string | Human-readable summary of the pipeline run |
generated_code |
string | Final code artifact |
Usage
from datasets import load_dataset
ds = load_dataset("shaafsalman/SyntheticDataset", split="SyntheticDataset")
print(ds[0]["query"])
print(ds[0]["status"])
print(ds[0]["generated_code"])
- Downloads last month
- 7