exp_rle_detailed-v3
收藏资源简介:
exp_rle_detailed-v3数据集是laion/exp_rle_detailed-v2的过滤版本,专门设计用于解决代码执行环境中的依赖导入问题。它通过静态分析技术识别并移除了可能导致ImportError或ModuleNotFoundError的任务实例,特别是针对测试集合阶段的模块导入失败。数据集构建过程中实施了多项过滤机制,包括子模块黑名单(如pandas.util.testing、sklearn.utils.testing等路径)、本地名称导入检查、pytest插件标记检测、importorskip调用验证以及无条件跳过测试的识别。原始v2版本包含773个任务,经过过滤后保留413个任务,丢弃360个任务,丢弃原因分布为:子模块问题402例、顶级导入问题73例、插件问题25例、importorskip问题17例、测试跳过问题7例。该改进使得v3版本能够捕获v2版本中88%的导入错误失败案例。数据集适用于代码执行评估、自动化测试生成和依赖管理分析等任务场景。
The exp_rle_detailed-v3 dataset is a filtered version of laion/exp_rle_detailed-v2, specifically designed to address dependency import issues in code execution environments. It uses static analysis techniques to identify and remove task instances that may cause ImportError or ModuleNotFoundError, particularly focusing on module import failures during the test suite phase. The dataset construction involves multiple filtering mechanisms: submodule blacklists (including paths such as pandas.util.testing and sklearn.utils.testing), local name import checks, pytest plugin marker detection, importorskip call validation, and identification of unconditional test skips. The original v2 version contains 773 tasks, and after filtering, 413 tasks are retained while 360 are discarded. The distribution of discard reasons is: 402 cases of submodule issues, 73 cases of top-level import issues, 25 cases of plugin issues, 17 cases of importorskip issues, and 7 cases of test skip issues. This improvement allows the v3 version to capture 88% of the import error failure cases from the v2 version. The dataset is suitable for tasks such as code execution evaluation, automated test generation, and dependency management analysis.
数据集概述:exp_rle_detailed-v3
基本信息
- 数据集名称:exp_rle_detailed-v3
- 许可证:Apache-2.0
- 标签:daytona-tasks, rle, patched
- 来源:laion/exp_rle_detailed-v2
背景与改进
exp_rle_detailed-v3 是 laion/exp_rle_detailed-v2 的过滤版本。v2 版本包含 773 个任务,在烟雾测试中仅达到 6.0% 的解决率(12/200),其中 39% 的失败源于测试收集阶段的 ImportError / ModuleNotFoundError。
v3 在 v2 的补丁器基础上增加了以下四项检测机制:
- 子模块黑名单:拦截
pandas.util.testing、sklearn.utils.testing、tensorflow.python等私有或已移除路径。 - 裸本地名称导入:覆盖通用本地模块名(如
tests、helpers、main等)的导入豁免。 - pytest 插件标记:检测
pytest.mark.asyncio、pytest.mark.trio等未安装的插件标记。 pytest.importorskip("foo"):检查容器白名单外的模块跳过语句。- 无条件跳过机制:检测
pytestmark = pytest.mark.skip(...)或全部测试函数带有@pytest.mark.skip的情况。
数据集统计
| 类别 | 数量 |
|---|---|
| 输入(v2 任务) | 773 |
| 保留(本数据集) | 413 |
| 丢弃:子模块 | 402(总出现次数,任务可能包含多个) |
| 丢弃:顶层导入 | 73 |
| 丢弃:插件 | 25 |
| 丢弃:importorskip | 17 |
| 丢弃:橡皮图章 | 7 |
| 总丢弃任务数 | 360 |
性能提升
v3 评估器能够捕获 v2 中 78 个导入错误任务中的 69 个(88% 的捕获率)。剩余的 9 个案例属于运行时导入失败(如 from sklearn.utils import _IS_32BIT),无法通过静态检测可靠识别。




