CoreCodeBench-Single
收藏魔搭社区2025-12-05 更新2025-07-19 收录
下载链接:
https://modelscope.cn/datasets/meituan-longcat/CoreCodeBench-Single
下载链接
链接失效反馈官方服务:
资源简介:
# Single Testcases for CoreCodeBench
## File Explanation
+ `CoreCodeBench_Single.jsonl`: CoreCodeBench single test cases.
+ `CoreCodeBench_Single_Verified.jsonl`: Human verified version for CoreCodeBench single test cases.
+ `CoreCodeBench_Single_en.jsonl`: English version for CoreCodeBench single test cases.
+ `CoreCodeBench_Function_Empty.jsonl `CoreCodeBench function_empty test cases.
## Key Explanation
| Key | Meaning/Description |
| --------------- | ------------------------------------------------------------ |
| **id** | The unique identifier for the function, usually in the format `module.path.function_name`. Here, it represents the full dotted path to the function in the codebase. |
| **project** | The name of the project or codebase where this function belongs. |
| **func** | The name of the function itself. |
| **origin_file** | The file path (relative to the project root) where the function is defined. |
| **test_list** | A list of test files (paths) that are related to or used for testing this function. |
| **prob_info** | A dictionary containing detailed information about the function, such as: - `func_start_lineno`: The line number where the function definition starts. - `func_end_lineno`: The line number where the function definition ends. - `key_block_start_lineno`: The line number where the key code block starts. - `key_block_end_lineno`: The line number where the key code block ends. - `new_func_code`: The source code of the function as a string, possibly with comments or explanations. |
| **pytest_info** | A dictionary with information about the pytest test results for this function: - `total_num`: Total number of related tests. - `base_passed_num`: Number of basic tests that passed. |
| **type** | The type or category of this entry (e.g., "Development"). |
| **language** | The programming language used (here, "Python"). |
| **model_info** | A dictionary containing information about the models used for code generation, rewriting, or debugging: - `gen_model`: The model used to generate this function. - `rewrite_model`: The model used for rewriting (if any). - `debug_gen_model`: The model used for debugging generation (if any). |
# CoreCodeBench 单测试用例集
## 文件说明
+ `CoreCodeBench_Single.jsonl`:CoreCodeBench 单测试用例文件。
+ `CoreCodeBench_Single_Verified.jsonl`:CoreCodeBench 单测试用例的人工校验版本。
+ `CoreCodeBench_Single_en.jsonl`:CoreCodeBench 单测试用例的英文版本。
+ `CoreCodeBench_Function_Empty.jsonl `:CoreCodeBench 空函数测试用例文件。
## 字段说明
| 字段名 | 含义/说明 |
| ---------------- | -------------------------------------------------------------------------- |
| **id** | 函数的唯一标识符,通常采用`module.path.function_name`格式,指代该函数在代码库中的完整点分隔路径。 |
| **project** | 该函数所属的项目或代码库名称。 |
| **func** | 函数本身的名称。 |
| **origin_file** | 函数定义所在的文件路径(相对于项目根目录的相对路径)。 |
| **test_list** | 与该函数相关或用于测试该函数的测试文件(路径)列表。 |
| **prob_info** | 包含该函数详细信息的字典,具体包含以下内容:<br>- `func_start_lineno`:函数定义的起始行号<br>- `func_end_lineno`:函数定义的结束行号<br>- `key_block_start_lineno`:关键代码块的起始行号<br>- `key_block_end_lineno`:关键代码块的结束行号<br>- `new_func_code`:以字符串形式呈现的函数源代码,可包含注释或说明文本 |
| **pytest_info** | 包含该函数的pytest测试结果信息的字典,具体包含以下内容:<br>- `total_num`:相关测试的总数量<br>- `base_passed_num`:通过的基础测试数量 |
| **type** | 该条目的类型或分类(例如“开发”)。 |
| **language** | 所用的编程语言,此处为“Python”。 |
| **model_info** | 包含用于代码生成、重写或调试的模型信息的字典,具体包含以下内容:<br>- `gen_model`:用于生成该函数的模型<br>- `rewrite_model`:用于重写的模型(若有)<br>- `debug_gen_model`:用于调试生成的模型(若有) |
提供机构:
maas
创建时间:
2025-11-07



