Datasets:

Languages:
code
ArXiv:
Tags:
code
License:

Data issue

#2
by ZhaofengWu - opened

One of the human eval instances contains an extra quotation mark so it can't be parsed correctly.

>>> ex = load_dataset("bigcode/humanevalpack", "python", trust_remote_code=True)["test"][142]
>>> print(ex["prompt"])



def sum_squares(lst):
    """"
    This function will take a list of integers. For all entries in the list, the function shall square the integer entry if its index is a 
    multiple of 3 and will cube the integer entry if its index is a multiple of 4 and not a multiple of 3. The function will not 
    change the entries in the list whose indexes are not a multiple of 3 or 4. The function shall then return the sum of all entries. 
    
    Examples:
    For lst = [1,2,3] the output should be 6
    For lst = []  the output should be 0
    For lst = [-1,-5,2,-1,-5]  the output should be -126
    """

>>> print(ex["declaration"])
def sum_squares(lst):
    "

BigCode org

Great find, do you want to submit a PR to fix it?

I'd be happy to, but wanted to confirm first: was this dataset automatically converted from the original github repo? If so, I worry that there might be a bug in the conversion code that led to this and which could lead to other errors too? But on the other hand if this was a one-off human error then it's probably fine.

BigCode org

Amazing merged! Now we just need to change it here: https://huggingface.co/datasets/bigcode/humanevalpack/blob/main/data/python/data/humanevalpack.jsonl
You can just upload the new humanevalpack.jsonl that you edited in the code via a PR here and we can merge that too!

BigCode org

Great all merged I think - should we close this?

Sounds good, thanks!

ZhaofengWu changed discussion status to closed

Sign up or log in to comment