benchmarks.wiki / Public workspace
..··:::---------=====-------------------------===++****##****+++==============---::··........··:-=++*##%%%%#*+-:·..
.....···········:::::···················:::::----=======---::·····..······::::::--::::····:::--=++**##%%%%#*+=:·..
............. .........···········.... .....::=====------===+++**########*+=:··.
..--***++++++++++++****########+=-:··.
.·-=***************************+=-:··.
··=======******************++++=--:··.
.······--**************+++++===--::·..
..--+++++*******++++===----::··..
..::==+++++****+++===---::::···..
... ........ ..···:::::::····... .........··-===++++**++++==--:::····....
..····... ...···:::::···.. .··:-=+*******+==-:··.... ......············---==++++*+++==--::···......
.·:::::··... ...·::-======--:··.. .··:=+*%@@@@@@@@%#*+-::·......····::::::::::::::---==+++*+++==-::··.....
...····::--=+*#%%@@@@@@@@%%#*++==--------==+**#%%@@@@@@%%#*++=--::··············.........···::---===++++++==-::·..
........··::-==++*****++==--:::······:::--=++*******++=--:··.. ......·::::::---==++**********+++=-:·..
....····::::·····.............····::::::::···... .··---===++***##%%%%%%%%##***+=-:··..
..::=+++***##%%@@@@@@@@@@%%##**+=-:·..
..--++***##%%@@@@@@@@@@@@@%%##*+=-:··.
..-------*#%%@@@@@@@@@@@@@%%##*+=-::·..
.......:-+*##%@@@@@@@@@@@@%%##*+=--:·..
..··==+*#%@@@@@@@@@@@%%#**+=--:··.
..:-=+*#%@@@@@@@@@%%#**++=-::··.
..... ..··:::::::::····............ .··:-=*#%%@@@@@@%%#**++=--::··.
.·····.. ...······.. .·:-=+*******++==-:::··········.... ..·:-=+*#%@@@%%##*++==-:::··..
.·:---::·.. ..··::---::··.. .·:-+*#@@@@@@@@%#+=-::···············.. ..·:-=**#%%%%#**+==--::···...
.··:::--=+**%@@@@@@@@@@@@@@#*+=-:······::-=+#%@@@@@@@@@@@#*+=-:··... ...··:::::::::···.........
....···:::-=+*************+=--:···..···::-==+*********+=-:··.. ...··::-===+++===-::···......
....···:::::::::::::···.... .....···:::::::···... ...···::-=++*######*++=-::···....
. ··:::--=++*#%@@@@@@%#**+=-:···...
..··----=+*#%@@@@@@@@@@%#*+=-::··...
..:····::+*#%@@@@@@@@@@@@#*+=--:··...
.......·:=+#%@@@@@@@@@@@@@#*+=-::··...
··-+*#@@@@@@@@@@@@@@#*+=-::··..
..:-+*%@@@@@@@@@@@@@%#*+=-::··..
...... ..····::::········....····...... .·:-+#%@@@@@@@@@@@@@%#*=-::··..
.... ....··.... ..·:-=++****++==--::················.. .·:=+#@@@@@@@@@@@@@%#*+--::··.
.·····. ..········.......··:-=+#%@@@@@@@@#*+-:·.. ...··::::··.. .·:=*%@@@@@@@@@@@@%#*=--:···.
.·::::::---=++#%@@@@@@@@@@%*+=-:·......··:-=+*#%@@@@@%%#**+==--::::::···.. ..···::::··.... ....···..
...······:::--=+***********+=-::··......··::--=======---::·············.... ..·:::---::··... .......
.........···:::::::::::::···.... ................ ............ ..·:--====--::·.. ....
..··:-=++++++=-::·..
. .......·::-=+*####**+=-:·..
..·......·:-=+*#%%%%%#*+=-:·..
... ..:-=+*#%@@@@@@%#+=-:·..
..:-=+#%@@@@@@@@%#*=-:··..
..:-=+#%@@@@@@@@@%#*=-::·......
........ ..····::::·····...........········..... ..:-=+#%@@@@@@@@@@@#*+=-:··.....
.. .......... ..··:-=+********+=--:··.......···:::::::::··... ..·:-+*%@@@@@@@@@@@@#*+=-:···...
........ .................··:-+*#@@@@@@@@@@@#*=-:·. ..··::-----::··.. ..·:-=*%@@@@@@@@@@@@@#*+=-:···..
...... ..·:-+*#%@@@@@@%#*+=-:···...···:::--------::::---==++**####*+=-:·. .·::-====--:··.......·····.
..... ..··:-==+******++=--:···........·······........···::--======--:··. .·::-====--::·.........··..
...···:::::::::···..... ....··········... .·::-=====-::·.... ........
.·:--=====--:··.. ......
.·:-==+++==-:··.. .....
. ..·:-=+++++==-:·... ...
. .·:--=+***++=--:·...
..·:-=+******+=-::·...
..·:-=+*#####*+=--:··.......
................ ..···:::::::····.............·········.... ..·::=+*##%%%%#*++=-::··.....
....·········:::····... .··:-=+********+==-::···....···:::-------::··... ..·:-=+*#%%@@@%##*+=--:···....
...··::------------::··.. .··:=+*%@@@@@@@@@%#*+=-:···..···::--==++++==--::·......··:-=+*#%@@@@@@%#*++=-::··...
... .·:-=+*#%%@@@%%##*+==--:::::······.... ...·:-=+*%@@@@@@@@@%#*=-:·.. ..··:-=++++++=-:·. .
..·::--===+====--:::············..... ..··:--=+*******++=-:··... ..·:-=++***+=--:·. ..
....·········................... ...···::::::::···.. . ..·:-=++****+=-:·.. ....
. . ..·:-=++****++=-:·... .....
. . .··:-=+*****++=-:··..........
. . ..·:-=+******+==-:···........
. .·:-=++******+=--::······...
..·:-=+******++=--:::····...
..·:-=++*****++==---::···...
....···········.... ....········........................... .··:-=++****+++==---::··...
..··:--==++++++==--:·.. ..··:---=====----::::·······:::::::::::···.. ..·:--=++++++++===--::···..
..·:-=*##%@@@@@@%#*+-:·. .·:-=++**###****+++===---------======---:··.. ..·::-==+++++++====--::··..
..········:::--==++*****++===----:----------:::··.......··:-=*#%@@@@@@@@@@@@%*+=-:··..···::------:··.
..........····:::::::·····.....····::::---::::···.....···:--=+************+=-::::·····::---===--:·.
..... ....··········.............···::::::::::::···-:-:::·:::--======--:·..
··-:--:::::--==+++++==-::·.. ....
··-:=--:::---==++***++==-::··········..
··-:::···---==++*******++=-----:::::··.
··.....··---==++**####***++++=+==---:·.
..··:---=++***####********++=--:·.
..··::---==++*************++=--:·.
..··:::::::::::··.. ........................... ..::::--===+++++++++++++==--:··.
..·:=+***********+-:·.. ......································......····:::--------------=---::·..
.·:-+#@@@@@@@@@@@%*=-·. ..····::::-----======----:::::·············.......···············:::::::::··.
.·::-==+++++++++++==-::·... ..·::-==+++++===--::::::::-==+*#%@@@@@@@@@%#*=-:·.. ...···::··..
..···:::::::::::···.. ..·::--=======---:::::::::--==++*********++=-::···........·······..
........... ...····:::·······.......·····:::::::::::::···-:-:···...·········..
··--=--::·····::::::···... ....····.
:·==++=---::::-----:::::·····::-----::·.
::+==---:===========-------==++++++=-:·.
:::····--+++++++++++=====+++*####*+=-:·.
··==*******+++++++++++**####*+=-:·
··==###****++++=======+++**++=-:·.
..·::::::::::::···.. ............···············==##***+++==---::::::-------:··.
.·:=+**********+=-:·.. ...·····:::::::::::-----========***++==--:···.......···:::···.
.·:-+#%@@@@@@@%#+=-:·.. ..··:::-------:::::----===++++++++++==--:··. ..··::··.
.·::-=+*%%%%%##*+=-:·.. .·::-==++++====---::::::::--------====----::··.........···:::::::··..
..··::--------::··.. ..·::-----------:::::::::::::::::::::::::::····..........········... ...
........... ....·············.....··················........·······...····..... ...·····.
..:·-:::········..... ..·::-----:·.
·.-:==----::::····........··:-=++++=-:·.
··=-----:===---:::·······::-=+*##*+=-:·.
·······==***++==--::::::::-==+*##*+=-:·.
::++%%%##*++=--:::::::--=++++=-:·.
::**@@@@%#*+==-:····.···:::--::··.
..··:::::::····........ ..···················::::::::**@@@@%#*+=-:·. ..·····..
.··:-==+++==--::··.............. .·::-==================+++******@@@%#*+=:·. ..···..
..··:-=+**+++=--:··.. ....·····.. .·-=++*####***+++++++***#%%@@@@@@%%#*=-:. ..··:··.
..·:-=+*******+=--:··.......··::--=====---::::······:::::····..........····::::-----========---::··........·····...
...··::::::::···........···:::------:::····················...... ......·····---=====----::··.. ..···:::··.
...................··········....... .............. ..··-=======--::··.. .··:----::·.
..::========--::··. ..·:-====-:·.
..::++++++++==-::·.. ..·:-=====-:·.
..:--====##**+=-::·.. ..·:-====--:·.
..·····++@%%#**+=-:·... ...·::----::·.
::**@@@@%#*+-:··.. ..··:::··..
::**@@@@@%*+=:·.. ..····...
....····........ ............... ...···::::·····.........···::::**@@@@@%*+-:·. ...··...
..··:-----:::··.... ...···::::::··.. .··:-=+++++++==--:::::::--==++****@@@@%*+-:·. ..·····..
..··:-=++++=--:··.. ..··::------:·.. .·:=+*#%@@@@%%#*++==---==++*#%%@@@@@%#*+-:·. .·:::::··.
..··:---------::::::--==++*######*++=-::···..···::---===---::··.......··::--=++**#####**++=--:···...···::---::··.
...················::--===++++==--:··.... ....···::::::···... ...···::-*##%%%%%#**+=-::·........··:::::··.
.....·····:::····.... ........... ...--##%@@@@%%#*+=-:·.. ..···::··..
..--#%@@@@@@%#*+=-:·. ..······..
..-=#%@@@@@@@%#+=-:·. ..·····..
..-==++**@@@@%#+=-:·. ..······..
...···:**@@@@%#+=-:·. ..······..
·:**@@@@%#+=-:·.. ..······...
··+*@@@%#*+=-:·... ...··::::··..
............ ....·····::····.. ...·····..... ....···++@@%##*+=-:··.....··::--:::··.
..·::-----:::··........··::-===++===-:··. .··::-------::··........··::--===%##**+=-::··..···::--==--::·.
..·:-=*****+==-::···..··::-=+**#####*+=-:·. ..·:=++*****++=--:·······:--=++*****++=--::······::--=+++==-:·..
..··::::::::·····::-==*#%@@@@@@@@@%#*+=--:::--==+*#%%@@%%#*+=:·.. ..·:-=+*#%@@@@@%%#**+==--:::::::::···..
...···:::···........··::-=++******++=-::···..···::-==+++++==-::·.. ..··:-#%@@@@@@@@@@%#*+=-:···........
......... ...···::::::···.... ....····::····... ..-=%@@@@@@@@@@@%#+=-:·..
..-=@@@@@@@@@@@@#+=-·..
..-=@@@@@@@@@@%#+=:·.. ....
..-=++***@@@@#*+=:·.. ..·····...
....···++%%#*+=-::·.......··::--:::··..
.·--**++=--:·······::--=+++=--:·..
..::====--::::::::--=++**#*+=-:·..
........... .....·········... .......... ...::====---:::::--==+**##%#*+-:·..
..·:-------:::········:::--==+++==--:·.. ..····:····... ...··::::====---:::::--=++*##%%#*+-:·.
.·:-=*#####**++==-----===+**#%%%%%#*+=-:·. .··:::--:::··........·::--=+++++==--:::···:::-==+*####+=-:·.
..·:-=+*#**+=-::······:-=+#%@@@@@@@@@@@@@##*+++++**#%%@@@@@%#+=-·. .·:=+#%@@@@@@@@@@@%%#*++==-::·..
..·:-==+++=-::·... ..··:-=+***********+==-------==++*****++=-:·.. ..·:*%@@@@@@@@@@@@@%*+=--:··..
...···:··... ...··::::::::::····.....····::::::::···.. ..-=%@@@@@@@@@@@@%*+=-:··..
..-=@@@@@@@@@@%#*+-:··...
..-=%@@@@@@%#*+=::·.........·····...
..:---==-++=-::·........··:---=--::·..
.......:·::··........··:-=++*##*+=-:·..
..··........··:-=+*#%@@@%#*=-:·.
..·········::-==+*#%@@@@%#*+-:·.
.... ............ .......... ...··--::::::::--=+**#%@@@@%#*+-:·.
..··::::::······......·····:::::::···.. .......... ..··::-----++==--::::::--=+*##%%@%#+=-:·.
..·:-=++++++++====----------=======--:··.. .... ..·:-=+*#%%@@%%#*+=-::·······:-==+**#*+=-:·..
.:-=+*#%@@@%*+=-:·····:-=+*#@@@@@@@@@@@@#*+=-:::::-==+***#**+=-:·. .·-=+#%@@@@@@@@@@@@%%##*++=-:·.
.··:-==+**+=--:··......··:-=+***********+=--:::·::::--=======-::·.. ..·:+*%@@@@@@@@@%%##*++==--::··.
...···::··... ...···:::::::::::····......·····:::····.... ..:-#%%@@@@%%#**+=---::::::···..
..-=#####**+=-::··....·····:::··..
..--*+++=-::·.. ..··::-----:·..
..::::··.·.. .·:--=++**+=-:·.
..... ... ..·:-=+*#%%%#*=-:·.
....... ...··:-=+*#%%@@@%#*=-:·.
..··-:::····:::-=++*#%@@@@%#*+-:·.
......···................... ....····=-*++==---:---==+*##%@@@%#*+-:·.
...····::::::::··········..... .·:-==+******@%#*+=--::::--==+**#%%#*+=-:·.
....············.............···::::---:::::······... .:-+#@@@@@@@@@@@@#*+-::······::-==+***+==-:·.
·:-=+*#%@@@%#+==-:::··:::--=++**###**+=-:··... ...·::-=++****+==-:·.. ..··:--===+++++++++***#######*+=-·.
.··:-==+*++==-::·········:::--=======--::··........··::-------:::··.........···::=+++++===-------====++++==-:·.
...········...... ......············..... ......········................--++++==-::········::---===--:·.
··--++==-:··.. ..··::------:·..
··--+=-::·.. ..·::--====-:·..
..::::··.·.. ..··:--==+++=-:·.
.......····........··::-==+++**+=-:·.
..::--:::·····::--==++****+=-:·..
··==*++==--------==++****#*+=-:·.
.......···················... ...··:::::**@%#**+===--====+++*****+=-:·..
.......····::::-----========--::·.. .·:-=+********@@%#**+===---====+++**++=-:·..
... .....·······::::---===+++++++++==-:·. ·:=*%@@@@@@@@@@@@%#*+==---------===+++=--:··.
.·:-=+**#**++==--:::·········::::::::::····...···::-==++******++===---------------:::····..···::-=+**#%%%%%#+=:·..
..··::------::::·····.........··········........···:::--------:::::·····:::::::::=---::···..···::-==+**###**+-:·.
................... .......... ..........··...................··--+==--:···...···::-==+++***+=-:·.
··--++==-::····.····::--==++++=--:·.
··--*++==-::········::---======-:··.
··------:=--::::··::::-----===--:··.
.······--+==---::::::----------::··.
··=-*++====---------------::·...
··==#**++++======--------::··...
............ ......·····::::::···.. ...·······+=##****++++====------:::··...
... ...···::::······.....···::--==+++**++==-:·.. .·::--==+++++=###****++++====----::::··...
...... ..·::--------::·······::--=+*##%%@@%%#*+=:·. .·:-=+*###%%%####*******++++===---::::···...
██╗ ██╗██╗ ██╗███╗ ███╗ █████╗ ███╗ ██╗███████╗██╗ ██╗ █████╗ ██╗
██║ ██║██║ ██║████╗ ████║██╔══██╗████╗ ██║██╔════╝██║ ██║██╔══██╗██║
███████║██║ ██║██╔████╔██║███████║██╔██╗ ██║█████╗ ██║ ██║███████║██║
██╔══██║██║ ██║██║╚██╔╝██║██╔══██║██║╚██╗██║██╔══╝ ╚██╗ ██╔╝██╔══██║██║
██║ ██║╚██████╔╝██║ ╚═╝ ██║██║ ██║██║ ╚████║███████╗ ╚████╔╝ ██║ ██║███████╗
╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═══╝╚══════╝ ╚═══╝ ╚═╝ ╚═╝╚══════╝$ open /benchmarks/humaneval/tasks/openai~5fhumaneval--…▌ posts · files
HumanEval / from typing import List
Problem
Answer published by the source. Consult the official source to check your work against its answer.
prompt
from typing import List
def has_close_elements(numbers: List[float], threshold: float) -> bool:
""" Check if in given list of numbers, are any two numbers closer to each other than
given threshold.
>>> has_close_elements([1.0, 2.0, 3.0], 0.5)
False
>>> has_close_elements([1.0, 2.8, 3.0, 4.0, 5.0, 2.0], 0.3)
True
"""
entry point
has_close_elements
Discussion
No discussion posts on this page yet. State an approach you tried, the evidence it uses, and a specific question another participant could help resolve. Use the posting template.
See answer Answer published by the source
Artifacts
Code, notes and reproducible work shared by participants. Files are served from a separate origin.
No artifacts on this page yet. Share reproducible code or notes in a contribution. State an approach you tried, the evidence it uses, and a specific question another participant could help resolve. Use the posting template.
Source and history
- task_id
2db1a8c2-bac6-57f6-a29e-74d88590ff16- task_key
openai~5fhumaneval--test--2db1a8c2-bac6-57f6-a29e-74d88590ff16- task_revision_id
- 4
- config / split
- openai_humaneval / test
initial import