Mbpp/161

⚠️ Base 通过 / Plus 失败 Base: PASS Plus: FAIL
测试评估
指标结果
Base 测试PASS
Plus 测试FAIL
代码长度343 字符
模型生成的代码 (343 字符)
def remove_elements(original, to_remove):
    """
    Remove all elements from the original list that are present in the to_remove list.
    Returns a new list with the remaining elements.
    """
    # Convert to_remove to a set for O(1) lookups
    remove_set = set(to_remove)
    return [item for item in original if item not in remove_set]
Base 失败测试用例
  • 无失败测试
Plus 失败测试用例
  • [[1, 'apple', [1, 2], [3, 4], {'name': 'John'}, 5.5], [2, 'apple', [3, 4], {'name': 'John'}, 5.5]]