Skip to content

Some issues for the existing dataset #18

@feixiangdejiahao

Description

@feixiangdejiahao
  1. Examples (public tests) in requirement are incorrect.
    For example, in humaneval/47, the second example is incorrect and the output should be 8.
def median(l: list):
    """Return median of elements in the list l.
    >>> median([3, 1, 2, 4, 5])
    3
    >>> median([-10, 4, 6, 1000, 10, 20])
    15.0
    """
  1. The type of variables used in examples are conflict with the requirement.
    For example, in mbpp/2, the example uses tuple as inputs but the requirement mentions the inputs are list
def similar_elements(test_tup1: tuple, test_tup2: tuple) -> tuple:
"""
Write a function to find the shared elements from the given two lists.
assert set(similar_elements((3, 4, 5, 6),(5, 7, 4, 10))) == set((4, 5))
"""

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions