Mbpp/88

✅ 完美通过 Base: PASS Plus: PASS
测试评估
指标结果
Base 测试PASS
Plus 测试PASS
代码长度394 字符
模型生成的代码 (394 字符)
from collections import Counter
from typing import List, Dict, Any
def freq_count(lst: List[Any]) -> Dict[Any, int]:
    """
    Returns the frequency of all elements in a list as a dictionary.
    
    Args:
        lst: A list of elements.
        
    Returns:
        A dictionary where keys are elements from the list and values are their frequencies.
    """
    return dict(Counter(lst))
Base 失败测试用例
  • 无失败测试
Plus 失败测试用例
  • 无失败测试