Skip to content

Commit 1813032

Browse files
author
amberlu
committed
update
1 parent 8ab4166 commit 1813032

File tree

291 files changed

+329
-3
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

291 files changed

+329
-3
lines changed

eval/data/background_comment_template.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ RESPONSE GUIDELINES:
2121
5. Ensure your response is in the format of ```python``` and includes the necessary background as a comment at the top.
2222

2323
Example:
24+
```python
2425
# Background: [Here, insert the necessary scientific knowledge required for the next step.]
2526

2627
[Insert the Python code here based on the provided function header and dependencies.]
28+
```

eval/scripts/test_generated_code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def run_script(script_path):
116116
print(f'correct problems: {correct_prob_num}/{DEV_PROB_NUM if dev_set else PROB_NUM - DEV_PROB_NUM}')
117117
print(f'correct steps: {len(correct_step)}/{DEV_STEP_NUM if dev_set else STEP_NUM}')
118118

119-
output_dir.mkdir(parents=True, exist_ok=True)
119+
Path(f'{output_dir}/{Path(model_name)}').mkdir(parents=True, exist_ok=True)
120120

121121
with open(f'{output_dir}/{model_name}.txt', 'w') as f:
122122
f.write(f'correct problems: {correct_prob_num}/{DEV_PROB_NUM if dev_set else PROB_NUM - DEV_PROB_NUM}\n')
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
fail
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pass
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
fail
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
fail
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
fail
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
fail
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
fail
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
fail

0 commit comments

Comments
 (0)