nvidia-livecodebench 25.8__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. core_evals/livecodebench/__init__.py +1 -0
  2. core_evals/livecodebench/framework.yml +233 -0
  3. core_evals/livecodebench/framework_entrypoint.py +28 -0
  4. core_evals/livecodebench/output.py +51 -0
  5. livecodebench/__init__.py +0 -0
  6. livecodebench/benchmarks/__init__.py +31 -0
  7. livecodebench/benchmarks/code_execution.py +85 -0
  8. livecodebench/benchmarks/code_generation.py +160 -0
  9. livecodebench/benchmarks/test_output_prediction.py +90 -0
  10. livecodebench/benchmarks/utils.py +50 -0
  11. livecodebench/evaluation/__init__.py +24 -0
  12. livecodebench/evaluation/compute_code_execution_metrics.py +73 -0
  13. livecodebench/evaluation/compute_code_generation_metrics.py +278 -0
  14. livecodebench/evaluation/compute_scores.py +172 -0
  15. livecodebench/evaluation/compute_test_output_prediction_metrics.py +125 -0
  16. livecodebench/evaluation/metric.py +28 -0
  17. livecodebench/evaluation/old_results_check.py +91 -0
  18. livecodebench/evaluation/pass_k_utils.py +84 -0
  19. livecodebench/evaluation/testing_util.py +574 -0
  20. livecodebench/evaluation/utils_execute.py +285 -0
  21. livecodebench/lm_styles.py +581 -0
  22. livecodebench/prompts/__init__.py +22 -0
  23. livecodebench/prompts/code_execution.py +201 -0
  24. livecodebench/prompts/code_generation.py +372 -0
  25. livecodebench/prompts/few_shot_examples/generation/func.json +12 -0
  26. livecodebench/prompts/few_shot_examples/generation/stdin.json +10 -0
  27. livecodebench/prompts/self_repair.py +370 -0
  28. livecodebench/prompts/test_output_prediction.py +327 -0
  29. livecodebench/runner/__init__.py +0 -0
  30. livecodebench/runner/base_runner.py +188 -0
  31. livecodebench/runner/claude3_runner.py +70 -0
  32. livecodebench/runner/claude_runner.py +69 -0
  33. livecodebench/runner/cohere_runner.py +71 -0
  34. livecodebench/runner/custom_evaluator.py +132 -0
  35. livecodebench/runner/deepseek_runner.py +87 -0
  36. livecodebench/runner/gemini_runner.py +111 -0
  37. livecodebench/runner/generic_oai_server_runner.py +104 -0
  38. livecodebench/runner/main.py +255 -0
  39. livecodebench/runner/mistral_runner.py +71 -0
  40. livecodebench/runner/oai_runner.py +93 -0
  41. livecodebench/runner/parser.py +174 -0
  42. livecodebench/runner/runner_utils.py +62 -0
  43. livecodebench/runner/scenario_router.py +239 -0
  44. livecodebench/runner/vllm_runner.py +82 -0
  45. livecodebench/utils/__init__.py +0 -0
  46. livecodebench/utils/extraction_utils.py +82 -0
  47. livecodebench/utils/multiprocess.py +250 -0
  48. livecodebench/utils/path_utils.py +58 -0
  49. livecodebench/utils/scenarios.py +26 -0
  50. livecodebench/utils/seed_generator.py +44 -0
  51. nvidia_livecodebench-25.8.dist-info/METADATA +518 -0
  52. nvidia_livecodebench-25.8.dist-info/RECORD +55 -0
  53. nvidia_livecodebench-25.8.dist-info/WHEEL +4 -0
  54. nvidia_livecodebench-25.8.dist-info/entry_points.txt +4 -0
  55. nvidia_livecodebench-25.8.dist-info/licenses/LICENSE +21 -0
@@ -0,0 +1,55 @@
1
+ core_evals/livecodebench/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
2
+ core_evals/livecodebench/framework.yml,sha256=Z7QETRXRonB4ng-OHZC_LoLTWXzlfMedJJCtML9XBus,8896
3
+ core_evals/livecodebench/framework_entrypoint.py,sha256=w6my_cTqz6n7e-zcz91XToUWthB9oxGA8sob6Krqqgw,1064
4
+ core_evals/livecodebench/output.py,sha256=tuvAS8nNGYoxX5oha7NmHd7klyPEkL2cr8QLza6mQQs,1870
5
+ livecodebench/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
+ livecodebench/lm_styles.py,sha256=5PoO0l9gKBjuS8St8586w5F_jGUtNDrTMJVPrEOZBVo,18271
7
+ livecodebench/benchmarks/__init__.py,sha256=7X1BgvluaQmGp5wmSflVyan626zzFXAKZplsvH9TxrY,1224
8
+ livecodebench/benchmarks/code_execution.py,sha256=NDnnwfoA8U2NDX1HaLO1UATBobAdjnt3fPWw4sQBNXo,2898
9
+ livecodebench/benchmarks/code_generation.py,sha256=q3D73t_P1tNGh-p7Wye4uPDAXDAjMY-4SchnoADkWYo,5429
10
+ livecodebench/benchmarks/test_output_prediction.py,sha256=j5rKoX90kvvJxgLCzW89MVX2V0MWf5NVfwN_BucI2jA,3109
11
+ livecodebench/benchmarks/utils.py,sha256=LdexfKNqAL-wI2J9dHPcsqXOtWJcxEHUKPthQHMHSDk,2056
12
+ livecodebench/evaluation/__init__.py,sha256=4Yot3mBrW5yXsppxehiK-au34fM752yFfgV682jX3Pg,1173
13
+ livecodebench/evaluation/compute_code_execution_metrics.py,sha256=--jTbHNNN7lIkn8tTnNWe8Wi7ZgfPReE_R410j4KOTw,2620
14
+ livecodebench/evaluation/compute_code_generation_metrics.py,sha256=hlorjJ-wmjo5A3JCM8QRUaB2VWVEnJvIEahFFidPTtg,11552
15
+ livecodebench/evaluation/compute_scores.py,sha256=VupfO7rJQ-LRZuQB7ZGxia8wIDOU07Mcf3fjff7KKbs,5773
16
+ livecodebench/evaluation/compute_test_output_prediction_metrics.py,sha256=y9_kshWBAfCeQ8lpRLEnqWpu3Y1M_BE714Wbu51mNb0,4004
17
+ livecodebench/evaluation/metric.py,sha256=6sdB7vpCoNww0L60FPz5sVYvInAK-W29n5Nx7ySbn20,932
18
+ livecodebench/evaluation/old_results_check.py,sha256=jU0andg9odNxgxC4nViDuCKOxx_MvRK-sGZ7sRi9vuI,2717
19
+ livecodebench/evaluation/pass_k_utils.py,sha256=FEYWYcLXqOyDP6K_W9Qwod1W-l7XQDxNJbPqiGK0og8,2880
20
+ livecodebench/evaluation/testing_util.py,sha256=zr4DgpCWbX90OSCG78A0-VKkC9FjKtizNfKwWQyV42o,18079
21
+ livecodebench/evaluation/utils_execute.py,sha256=e7JCm3UyIsRiGA4-gTMciP9IMJBzpgTteU9dMK-qV9w,8187
22
+ livecodebench/prompts/__init__.py,sha256=kRkApUe414nPRvUDg_uAWOcftkpLOeEasX36zu2kQtY,1149
23
+ livecodebench/prompts/code_execution.py,sha256=vRTY2AAKNLLmtZXMmNktZL_Xqru2b0VPKSWn4Au9hXM,6948
24
+ livecodebench/prompts/code_generation.py,sha256=mw9sQ6xw21jdxQH21ZK3AcsIAWerSybWcWC6iTnPHRc,14478
25
+ livecodebench/prompts/self_repair.py,sha256=sQesH9L1YGsveiiljUhK3R0d-QVo2ev862g79fZdfQc,17866
26
+ livecodebench/prompts/test_output_prediction.py,sha256=b7goRPLpLMglOIX8YIQAc6TKJEqMZKzGdeRMYGfiGZ8,12533
27
+ livecodebench/prompts/few_shot_examples/generation/func.json,sha256=dbUP_vGFxxqnAkmbAV2lCwPXcyGVMyGGx1nfoDBL8ao,2880
28
+ livecodebench/prompts/few_shot_examples/generation/stdin.json,sha256=KKOlC3mGmqnMXMLjxhHIs54astGS9rK5zg9qSwFO5yY,5330
29
+ livecodebench/runner/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
30
+ livecodebench/runner/base_runner.py,sha256=xQib-MNiy7HMVCnTtrR9F7pkXsNRHzYpOOebwLiYti4,7649
31
+ livecodebench/runner/claude3_runner.py,sha256=svec3zm52HYU8nW8Km-HnN9YxX8e5hpeXTdf8vtjO1M,2393
32
+ livecodebench/runner/claude_runner.py,sha256=h7dxvEgS1YCA8O8GrJBG_na8W1-Ig67K7LdIaamL9Vc,2356
33
+ livecodebench/runner/cohere_runner.py,sha256=ZIZ7PwQAo8LTAWBaRfsClD__qpponyZiYM-_DwIUvac,2379
34
+ livecodebench/runner/custom_evaluator.py,sha256=xHgr9bmFRrnL6o1BfKWBDFI9efXholDJ3bCkNUS1td8,5210
35
+ livecodebench/runner/deepseek_runner.py,sha256=MTWmdURzYPQc5E3WqPcCK02W91MGzod5PVpTkp5uUiQ,3045
36
+ livecodebench/runner/gemini_runner.py,sha256=xM47qJVpOKiy46aPNIY2c3sDsJlaP-NToG5kWN_CDwc,3918
37
+ livecodebench/runner/generic_oai_server_runner.py,sha256=6hQXXjwNwY66omGQzH4mqDk2rcB_-RiN4sh4iDYJFqs,3959
38
+ livecodebench/runner/main.py,sha256=pnFH6GHGjByX2yEctOyMHx8xODV8cXf3sAadS0lGunw,10065
39
+ livecodebench/runner/mistral_runner.py,sha256=hhfA5D-hCNI7sJ03370LNvBfWrL4LyYpzolpLv1Wx-k,2369
40
+ livecodebench/runner/oai_runner.py,sha256=astzwRImyb4sk2LukgOXYQqmJtgijIXQAcvOoiMuOTI,3406
41
+ livecodebench/runner/parser.py,sha256=wk7WJFdoSTsjygYQYhg1nr3HxRIpqj5P7lkaXzkLm3E,5376
42
+ livecodebench/runner/runner_utils.py,sha256=s5uA3bnJK-ZcU413wGmzqTU4oFNeWOkuFEHXdnUS2uQ,2593
43
+ livecodebench/runner/scenario_router.py,sha256=VAqnkYurKWakZqNJAyA40uAEUCghStO6UMthGf05u5Q,7950
44
+ livecodebench/runner/vllm_runner.py,sha256=_DQBcjElKFBWSpwbgJDX4NQ2kPDG7Vp5cmebycKactc,3347
45
+ livecodebench/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
46
+ livecodebench/utils/extraction_utils.py,sha256=AZr60OolLke-winWXH0Q3K7hzzEuqVuvtvqVz_cv6qc,3453
47
+ livecodebench/utils/multiprocess.py,sha256=Wr7Z-D_tezCEQPJA24Vl6JdGDCTS7VFrEDh20M040pI,7742
48
+ livecodebench/utils/path_utils.py,sha256=PWdzfKpIMoSt8RQ2Gl99lwT_fADabgCu2v5XHpzWDI4,2065
49
+ livecodebench/utils/scenarios.py,sha256=7sTU1QCg3czW3YvuwAQkpiFP710TYIYm0bs5p-htzog,1017
50
+ livecodebench/utils/seed_generator.py,sha256=fVnXs2P0OVaT_Bede1n998dgIGpW8Pw0L2oQQ2P28qI,1972
51
+ nvidia_livecodebench-25.8.dist-info/METADATA,sha256=qbXdSNVfUImIbq07Qq34P73-gReq8pm47Nx8CVpdJ_s,23155
52
+ nvidia_livecodebench-25.8.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
53
+ nvidia_livecodebench-25.8.dist-info/entry_points.txt,sha256=tJnehiGQk-BKEVcORgqRhktDyIuXiTTG1FVs2HkRo7g,225
54
+ nvidia_livecodebench-25.8.dist-info/licenses/LICENSE,sha256=EECZlIt468NvLpUbOnlzuVat-n05quwNFRL5eiaG0V0,1070
55
+ nvidia_livecodebench-25.8.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.27.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,4 @@
1
+ [console_scripts]
2
+ core-evals-live-code-bench = core_evals.livecodebench.framework_entrypoint:main
3
+ core_evals_live_code_bench = core_evals.livecodebench.framework_entrypoint:main
4
+ livecodebench = livecodebench.runner.main:main
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 LiveCodeBench
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.