Mbpp/722

✅ 完美通过 Base: PASS Plus: PASS
测试评估
指标结果
Base 测试PASS
Plus 测试PASS
代码长度590 字符
模型生成的代码 (590 字符)
def filter_data(students, min_height, min_weight):
    """
    Filter students with height >= min_height and weight >= min_weight.

    Args:
        students (dict): dict with student name as key and (height, weight) tuple as value.
        min_height (float): minimal allowed height.
        min_weight (float): minimal allowed weight.

    Returns:
        dict: filtered dictionary of students meeting both criteria.
    """
    return {
        name: (height, weight)
        for name, (height, weight) in students.items()
        if height >= min_height and weight >= min_weight
    }
Base 失败测试用例
  • 无失败测试
Plus 失败测试用例
  • 无失败测试