8.9 KiB
8.9 KiB
| 1 | HumanEval/0,from typing import List\ |
|---|---|
| 2 | \ |
| 3 | \ |
| 4 | def has_close_elements(numbers: List[float]\, threshold: float) -> bool:\ |
| 5 | \ |
| 6 | ,\ |
| 7 | \ |
| 8 | METADATA = {\ |
| 9 | }\ |
| 10 | \ |
| 11 | \ |
| 12 | def check(candidate):\ |
| 13 | \ |
| 14 | HumanEval/1,from typing import List\ |
| 15 | \ |
| 16 | \ |
| 17 | def separate_paren_groups(paren_string: str) -> List[str]:\ |
| 18 | \ |
| 19 | \ |
| 20 | \ |
| 21 | ,\ |
| 22 | \ |
| 23 | METADATA = {\ |
| 24 | }\ |
| 25 | \ |
| 26 | \ |
| 27 | def check(candidate):\ |
| 28 | HumanEval/2,\ |
| 29 | \ |
| 30 | def truncate_number(number: float) -> float:\ |
| 31 | ,\ |
| 32 | \ |
| 33 | METADATA = {\ |
| 34 | }\ |
| 35 | \ |
| 36 | \ |
| 37 | def check(candidate):\ |
| 38 | HumanEval/3,from typing import List\ |
| 39 | \ |
| 40 | \ |
| 41 | def below_zero(operations: List[int]) -> bool:\ |
| 42 | \ |
| 43 | \ |
| 44 | ,\ |
| 45 | \ |
| 46 | METADATA = {\ |
| 47 | }\ |
| 48 | \ |
| 49 | \ |
| 50 | def check(candidate):\ |
| 51 | HumanEval/4,from typing import List\ |
| 52 | \ |
| 53 | \ |
| 54 | def mean_absolute_deviation(numbers: List[float]) -> float:\ |
| 55 | ,\ |
| 56 | \ |
| 57 | METADATA = {\ |
| 58 | }\ |
| 59 | \ |
| 60 | \ |
| 61 | def check(candidate):\ |
| 62 | \ |
| 63 | HumanEval/5,from typing import List\ |
| 64 | \ |
| 65 | \ |
| 66 | def intersperse(numbers: List[int]\, delimeter: int) -> List[int]:\ |
| 67 | \ |
| 68 | \ |
| 69 | \ |
| 70 | \ |
| 71 | ,\ |
| 72 | \ |
| 73 | METADATA = {\ |
| 74 | }\ |
| 75 | \ |
| 76 | \ |
| 77 | def check(candidate):\ |
| 78 | HumanEval/6,from typing import List\ |
| 79 | \ |
| 80 | \ |
| 81 | def parse_nested_parens(paren_string: str) -> List[int]:\ |
| 82 | \ |
| 83 | \ |
| 84 | ,\ |
| 85 | \ |
| 86 | METADATA = {\ |
| 87 | }\ |
| 88 | \ |
| 89 | \ |
| 90 | def check(candidate):\ |
| 91 | HumanEval/7,from typing import List\ |
| 92 | \ |
| 93 | \ |
| 94 | def filter_by_substring(strings: List[str]\, substring: str) -> List[str]:\ |
| 95 | ,\ |
| 96 | \ |
| 97 | METADATA = {\ |
| 98 | }\ |
| 99 | \ |
| 100 | \ |
| 101 | def check(candidate):\ |
| 102 | HumanEval/8,from typing import List\, Tuple\ |
| 103 | \ |
| 104 | \ |
| 105 | def sum_product(numbers: List[int]) -> Tuple[int\, int]:\ |
| 106 | \ |
| 107 | ,\ |
| 108 | \ |
| 109 | METADATA = {\ |
| 110 | }\ |
| 111 | \ |
| 112 | \ |
| 113 | def check(candidate):\ |
| 114 | HumanEval/9,from typing import List\, Tuple\ |
| 115 | \ |
| 116 | \ |
| 117 | def rolling_max(numbers: List[int]) -> List[int]:\ |
| 118 | \ |
| 119 | \ |
| 120 | \ |
| 121 | ,\ |
| 122 | \ |
| 123 | METADATA = {\ |
| 124 | }\ |
| 125 | \ |
| 126 | \ |
| 127 | def check(candidate):\ |