mopsa-dataset-debug-v10
收藏资源简介:
该数据集包含8,925个训练样本,专门用于代码分析与程序理解相关任务。数据集提供多个结构化字段:样本标识符(id)、来源数据集(dataset)、代码片段(code)及其原始版本(original_code)、程序输出(output)、输入参数赋值列表(input_assignments,包含变量名、类型和值)、输出类型(output_type)。核心特征为执行轨迹(trace),其中包含代码执行状态、错误检查结果(通过状态和类型)、执行过程、交错执行信息等。此外还提供自然语言描述的执行轨迹(trace_natural)、自然语言执行过程(trace_natural_execution)、原始错误信息(errors_raw)以及错误标识(has_error)。数据格式支持对代码行为、执行路径和错误模式的深入分析。
This dataset contains 8,925 training samples specifically designed for code analysis and program understanding tasks. It includes multiple structured fields: sample identifier (id), source dataset (dataset), code snippet (code) and its original version (original_code), program output (output), input assignment list (input_assignments, containing variable names, types, and values), and output type (output_type). The core feature is the execution trace (trace), which includes code execution status, error checking results (pass status and type), execution process, interleaved execution information, etc. Additionally, it provides natural language descriptions of the execution trace (trace_natural), natural language execution process (trace_natural_execution), raw error information (errors_raw), and error flag (has_error). The data format supports in-depth analysis of code behavior, execution paths, and error patterns.
数据集概述
数据集名称: mopsa-dataset-debug-v10
数据集地址: https://huggingface.co/datasets/giovannidemuri/mopsa-dataset-debug-v10
数据集规模:
- 总下载大小:16,774,519 字节(约16 MB)
- 数据集总大小:124,883,426 字节(约119 MB)
- 包含 1 个训练集(split: train)
- 样本数量:8,925 条
- 该分片大小:124,883,426 字节
数据特征
数据集包含以下字段:
| 字段名 | 数据类型 | 说明 |
|---|---|---|
| id | string | 样本唯一标识符 |
| dataset | string | 所属数据集名称 |
| code | string | 代码内容 |
| original_code | string | 原始代码 |
| output | string | 输出结果 |
| input_assignments | list of objects | 输入赋值列表,每个对象包含 type(类型)、value(值)、var(变量名) |
| output_type | string | 输出类型 |
| trace | list of objects | 执行追踪信息,每个对象包含 code(代码)、error_checks(错误检查列表,含 pass 和 type 字段)、execution(执行内容)、interleaved(交错内容)、interleaved_execution(交错执行内容)、static(静态内容) |
| trace_natural | string | 自然语言形式的追踪 |
| trace_natural_execution | string | 自然语言形式的执行追踪 |
| errors_raw | string | 原始错误信息 |
| has_error | bool | 是否存在错误 |
配置信息
- 配置名称:default
- 数据文件路径:
data/train-*(匹配所有以 train- 开头的文件)




