humanevalpack-spec-match
semantic linting · software engineering · 164 items · primary question type noul. Source bigcode/humanevalpack (MIT); labels are verifier labels, never an LLM judge. Download these samples (JSON).
| System | DecisionScore | Accuracy (top pick) | Answered |
|---|---|---|---|
| Jev | 82.8 | 89.0% | 164 / 164 |
| OpenJev | 80.5 | 88.4% | 164 / 164 |
| System One Scorer | 73.2 | 65.8% | 164 / 164 |
| JevFish | 71.6 | 62.8% | 164 / 164 |
| decider-2b | 71.4 | 65.2% | 164 / 164 |
| NanoJev | 68.1 | 50.3% | 163 / 164 |
safety-and-quality:heval-Python-163-ok · 175 state tokens (common tier)Turn 1 — the request (identical for every system)
State (JSON)
{
"file": "solution.py",
"function": "def generate_integers(a, b):\n \"\"\"\n Given two positive integers a and b, return the even digits between a\n and b, in ascending order.\n\n For example:\n generate_integers(2, 8) => [2, 4, 6, 8]\n generate_integers(8, 2) => [2, 4, 6, 8]\n generate_integers(10, 14) => []\n \"\"\"\n lower = max(2, min(a, b))\n upper = min(8, max(a, b))\n\n return [i for i in range(lower, upper+1) if i % 2 == 0]"
}Question implements_spec · noul · primary (ranked)
The state holds a Python function whose docstring states the required behaviour, followed by its body. Does the body correctly implement the docstring for all valid inputs (it would pass a hidden test suite written from the docstring)?
2 options
yesno
Turn 2 — each system's response · Turn 3 — the grade
Expected answer: yes
| System | Top pick | Grade | P(expected) | Proper score | Distribution |
|---|---|---|---|---|---|
| Jev | no | wrong | 29.0% | 0.496 |
|
| OpenJev | no | wrong | 23.8% | 0.419 |
|
| System One Scorer | yes | correct | 65.3% | 0.879 |
|
| JevFish | yes | correct | 62.0% | 0.856 |
|
| decider-2b | yes | correct | 62.9% | 0.863 |
|
| NanoJev | yes | correct | 64.8% | 0.876 |
|
Question defect_type · choice
Which single kind of defect does the body have relative to its docstring? Pick no_bug if it is correct.
7 options
no_bug— The body implements the docstring correctly.missing_logic— A needed step, condition or case is absent.excess_logic— An extra step or condition changes the result.value_misuse— A wrong literal, constant or initial value is used.operator_misuse— A wrong operator or comparison is used.variable_misuse— The wrong variable is read or written.function_misuse— The wrong function or method is called.
Turn 2 — each system's response · Turn 3 — the grade
Expected answer: no_bug
| System | Top pick | Grade | P(expected) | Proper score | Distribution |
|---|---|---|---|---|---|
| Jev | value_misuse | wrong | 22.0% | 0.597 |
|
| OpenJev | missing_logic | wrong | 10.8% | 0.481 |
|
| System One Scorer | no_bug | correct | 69.5% | 0.942 |
|
| JevFish | no_bug | correct | 51.9% | 0.856 |
|
| decider-2b | no_bug | correct | 41.5% | 0.786 |
|
| NanoJev | no_bug | correct | 33.5% | 0.739 |
|
safety-and-quality:heval-Python-27-ok · 67 state tokens (common tier)Turn 1 — the request (identical for every system)
State (JSON)
{
"file": "solution.py",
"function": "def flip_case(string: str) -> str:\n \"\"\" For a given string, flip lowercase characters to uppercase and uppercase to lowercase.\n >>> flip_case('Hello')\n 'hELLO'\n \"\"\"\n return string.swapcase()"
}Question implements_spec · noul · primary (ranked)
The state holds a Python function whose docstring states the required behaviour, followed by its body. Does the body correctly implement the docstring for all valid inputs (it would pass a hidden test suite written from the docstring)?
2 options
yesno
Turn 2 — each system's response · Turn 3 — the grade
Expected answer: yes
| System | Top pick | Grade | P(expected) | Proper score | Distribution |
|---|---|---|---|---|---|
| Jev | yes | correct | 98.0% | 1.000 |
|
| OpenJev | yes | correct | 100.0% | 1.000 |
|
| System One Scorer | yes | correct | 85.4% | 0.979 |
|
| JevFish | yes | correct | 85.7% | 0.980 |
|
| decider-2b | yes | correct | 78.5% | 0.954 |
|
| NanoJev | yes | correct | 60.9% | 0.847 |
|
Question defect_type · choice
Which single kind of defect does the body have relative to its docstring? Pick no_bug if it is correct.
7 options
no_bug— The body implements the docstring correctly.missing_logic— A needed step, condition or case is absent.excess_logic— An extra step or condition changes the result.value_misuse— A wrong literal, constant or initial value is used.operator_misuse— A wrong operator or comparison is used.variable_misuse— The wrong variable is read or written.function_misuse— The wrong function or method is called.
Turn 2 — each system's response · Turn 3 — the grade
Expected answer: no_bug
| System | Top pick | Grade | P(expected) | Proper score | Distribution |
|---|---|---|---|---|---|
| Jev | no_bug | correct | 100.0% | 1.000 |
|
| OpenJev | no_bug | correct | 100.0% | 1.000 |
|
| System One Scorer | no_bug | correct | 94.8% | 0.998 |
|
| JevFish | no_bug | correct | 84.4% | 0.984 |
|
| decider-2b | no_bug | correct | 74.6% | 0.959 |
|
| NanoJev | no_bug | correct | 36.0% | 0.759 |
|
safety-and-quality:heval-Python-68-ok · 329 state tokens (long tier)Turn 1 — the request (identical for every system)
State (JSON)
{
"file": "solution.py",
"function": "def pluck(arr):\n \"\"\"\n \"Given an array representing a branch of a tree that has non-negative integer nodes\n your task is to pluck one of the nodes and return it.\n The plucked node should be the node with the smallest even value.\n If multiple nodes with the same smallest even value are found return the node that has smallest index.\n\n The plucked node should be returned in a list, [ smalest_value, its index ],\n If there are no even values or the given array is empty, return [].\n\n Example 1:\n Input: [4,2,3]\n Output: [2, 1]\n Explanation: 2 has the smallest even value, and 2 has the smallest index.\n\n Example 2:\n Input: [1,2,3]\n Output: [2, 1]\n Explanation: 2 has the smallest even value, and 2 has the smallest index. \n\n Example 3:\n Input: []\n Output: []\n \n Example 4:\n Input: [5, 0, 3, 0, 4, 2]\n Output: [0, 1]\n Explanation: 0 is the smallest value, but there are two zeros,\n so we will choose the first zero, which has the smallest index.\n\n Constraints: …"
}Question implements_spec · noul · primary (ranked)
The state holds a Python function whose docstring states the required behaviour, followed by its body. Does the body correctly implement the docstring for all valid inputs (it would pass a hidden test suite written from the docstring)?
2 options
yesno
Turn 2 — each system's response · Turn 3 — the grade
Expected answer: yes
| System | Top pick | Grade | P(expected) | Proper score | Distribution |
|---|---|---|---|---|---|
| Jev | no | wrong | 34.0% | 0.564 |
|
| OpenJev | no | wrong | 5.2% | 0.101 |
|
| System One Scorer | yesinput truncated | correct | 67.7% | 0.895 |
|
| JevFish | no | wrong | 48.6% | 0.736 |
|
| decider-2b | yes | correct | 62.9% | 0.863 |
|
| NanoJev | yes | correct | 61.4% | 0.851 |
|
Question defect_type · choice
Which single kind of defect does the body have relative to its docstring? Pick no_bug if it is correct.
7 options
no_bug— The body implements the docstring correctly.missing_logic— A needed step, condition or case is absent.excess_logic— An extra step or condition changes the result.value_misuse— A wrong literal, constant or initial value is used.operator_misuse— A wrong operator or comparison is used.variable_misuse— The wrong variable is read or written.function_misuse— The wrong function or method is called.
Turn 2 — each system's response · Turn 3 — the grade
Expected answer: no_bug
| System | Top pick | Grade | P(expected) | Proper score | Distribution |
|---|---|---|---|---|---|
| Jev | missing_logic | wrong | 33.0% | 0.551 |
|
| OpenJev | missing_logic | wrong | 11.7% | 0.394 |
|
| System One Scorer | no_buginput truncated | correct | 66.4% | 0.928 |
|
| JevFish | no_bug | correct | 48.1% | 0.824 |
|
| decider-2b | no_bug | correct | 40.4% | 0.773 |
|
| NanoJev | no_bug | correct | 43.1% | 0.809 |
|
safety-and-quality:heval-Python-69-buggy · 254 state tokens (common tier)Turn 1 — the request (identical for every system)
State (JSON)
{
"file": "solution.py",
"function": "def search(lst):\n '''\n You are given a non-empty list of positive integers. Return the greatest integer that is greater than \n zero, and has a frequency greater than or equal to the value of the integer itself. \n The frequency of an integer is the number of times it appears in the list.\n If no such a value exist, return -1.\n Examples:\n search([4, 1, 2, 2, 3, 1]) == 2\n search([1, 2, 2, 3, 3, 3, 4, 4, 4]) == 3\n search([5, 5, 4, 4, 4]) == -1\n '''\n frq = [0] * (max(lst) + 1)\n for i in lst:\n frq[i] += 1;\n\n ans = 0\n for i in range(1, len(frq)):\n if frq[i] >= i:\n ans = i\n \n return ans"
}Question implements_spec · noul · primary (ranked)
The state holds a Python function whose docstring states the required behaviour, followed by its body. Does the body correctly implement the docstring for all valid inputs (it would pass a hidden test suite written from the docstring)?
2 options
yesno
Turn 2 — each system's response · Turn 3 — the grade
Expected answer: no
| System | Top pick | Grade | P(expected) | Proper score | Distribution |
|---|---|---|---|---|---|
| Jev | yes | wrong | 46.0% | 0.708 |
|
| OpenJev | no | correct | 99.5% | 1.000 |
|
| System One Scorer | yes | wrong | 21.0% | 0.376 |
|
| JevFish | yes | wrong | 14.7% | 0.273 |
|
| decider-2b | yes | wrong | 12.2% | 0.230 |
|
| NanoJev | yes | wrong | 37.1% | 0.605 |
|
Question defect_type · choice
Which single kind of defect does the body have relative to its docstring? Pick no_bug if it is correct.
7 options
no_bug— The body implements the docstring correctly.missing_logic— A needed step, condition or case is absent.excess_logic— An extra step or condition changes the result.value_misuse— A wrong literal, constant or initial value is used.operator_misuse— A wrong operator or comparison is used.variable_misuse— The wrong variable is read or written.function_misuse— The wrong function or method is called.
Turn 2 — each system's response · Turn 3 — the grade
Expected answer: value_misuse
| System | Top pick | Grade | P(expected) | Proper score | Distribution |
|---|---|---|---|---|---|
| Jev | value_misuse | correct | 63.0% | 0.899 |
|
| OpenJev | value_misuse | correct | 88.6% | 0.992 |
|
| System One Scorer | no_bug | wrong | 2.1% | 0.168 |
|
| JevFish | no_bug | wrong | 2.7% | 0.184 |
|
| decider-2b | no_bug | wrong | 3.5% | 0.238 |
|
| NanoJev | no_bug | wrong | 10.3% | 0.503 |
|
safety-and-quality:heval-Python-80-ok · 206 state tokens (common tier)Turn 1 — the request (identical for every system)
State (JSON)
{
"file": "solution.py",
"function": "def is_happy(s):\n \"\"\"You are given a string s.\n Your task is to check if the string is happy or not.\n A string is happy if its length is at least 3 and every 3 consecutive letters are distinct\n For example:\n is_happy(a) => False\n is_happy(aa) => False\n is_happy(abcd) => True\n is_happy(aabb) => False\n is_happy(adb) => True\n is_happy(xyy) => False\n \"\"\"\n if len(s) < 3:\n return False\n\n for i in range(len(s) - 2):\n \n if s[i] == s[i+1] or s[i+1] == s[i+2] or s[i] == s[i+2]:\n return False\n return True"
}Question implements_spec · noul · primary (ranked)
The state holds a Python function whose docstring states the required behaviour, followed by its body. Does the body correctly implement the docstring for all valid inputs (it would pass a hidden test suite written from the docstring)?
2 options
yesno
Turn 2 — each system's response · Turn 3 — the grade
Expected answer: yes
| System | Top pick | Grade | P(expected) | Proper score | Distribution |
|---|---|---|---|---|---|
| Jev | yes | correct | 94.0% | 0.996 |
|
| OpenJev | yes | correct | 98.9% | 1.000 |
|
| System One Scorer | yes | correct | 64.5% | 0.874 |
|
| JevFish | yes | correct | 70.5% | 0.913 |
|
| decider-2b | yes | correct | 82.3% | 0.969 |
|
| NanoJev | yes | correct | 64.1% | 0.872 |
|
Question defect_type · choice
Which single kind of defect does the body have relative to its docstring? Pick no_bug if it is correct.
7 options
no_bug— The body implements the docstring correctly.missing_logic— A needed step, condition or case is absent.excess_logic— An extra step or condition changes the result.value_misuse— A wrong literal, constant or initial value is used.operator_misuse— A wrong operator or comparison is used.variable_misuse— The wrong variable is read or written.function_misuse— The wrong function or method is called.
Turn 2 — each system's response · Turn 3 — the grade
Expected answer: no_bug
| System | Top pick | Grade | P(expected) | Proper score | Distribution |
|---|---|---|---|---|---|
| Jev | no_bug | correct | 100.0% | 1.000 |
|
| OpenJev | no_bug | correct | 99.5% | 1.000 |
|
| System One Scorer | no_bug | correct | 85.5% | 0.987 |
|
| JevFish | no_bug | correct | 72.2% | 0.951 |
|
| decider-2b | no_bug | correct | 66.0% | 0.928 |
|
| NanoJev | no_bug | correct | 35.0% | 0.749 |
|
safety-and-quality:heval-Python-98-ok · 127 state tokens (common tier)Turn 1 — the request (identical for every system)
State (JSON)
{
"file": "solution.py",
"function": "def count_upper(s):\n \"\"\"\n Given a string s, count the number of uppercase vowels in even indices.\n \n For example:\n count_upper('aBCdEf') returns 1\n count_upper('abcdefg') returns 0\n count_upper('dBBE') returns 0\n \"\"\"\n count = 0\n for i in range(0,len(s),2):\n if s[i] in \"AEIOU\":\n count += 1\n return count"
}Question implements_spec · noul · primary (ranked)
The state holds a Python function whose docstring states the required behaviour, followed by its body. Does the body correctly implement the docstring for all valid inputs (it would pass a hidden test suite written from the docstring)?
2 options
yesno
Turn 2 — each system's response · Turn 3 — the grade
Expected answer: yes
| System | Top pick | Grade | P(expected) | Proper score | Distribution |
|---|---|---|---|---|---|
| Jev | yes | correct | 90.0% | 0.990 |
|
| OpenJev | yes | correct | 98.6% | 1.000 |
|
| System One Scorer | yes | correct | 75.6% | 0.940 |
|
| JevFish | yes | correct | 68.8% | 0.902 |
|
| decider-2b | yes | correct | 81.6% | 0.966 |
|
| NanoJev | yes | correct | 67.9% | 0.897 |
|
Question defect_type · choice
Which single kind of defect does the body have relative to its docstring? Pick no_bug if it is correct.
7 options
no_bug— The body implements the docstring correctly.missing_logic— A needed step, condition or case is absent.excess_logic— An extra step or condition changes the result.value_misuse— A wrong literal, constant or initial value is used.operator_misuse— A wrong operator or comparison is used.variable_misuse— The wrong variable is read or written.function_misuse— The wrong function or method is called.
Turn 2 — each system's response · Turn 3 — the grade
Expected answer: no_bug
| System | Top pick | Grade | P(expected) | Proper score | Distribution |
|---|---|---|---|---|---|
| Jev | no_bug | correct | 98.0% | 1.000 |
|
| OpenJev | no_bug | correct | 99.9% | 1.000 |
|
| System One Scorer | no_bug | correct | 89.7% | 0.993 |
|
| JevFish | no_bug | correct | 70.5% | 0.944 |
|
| decider-2b | no_bug | correct | 67.8% | 0.935 |
|
| NanoJev | no_bug | correct | 43.6% | 0.812 |
|