Skip to content

Commit

Permalink
update to latest code
Browse files Browse the repository at this point in the history
  • Loading branch information
henryhungle committed Nov 14, 2022
1 parent ca41843 commit 70f83e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion outputs/codes/0.json

This file was deleted.

5 changes: 4 additions & 1 deletion test_one_solution.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ def eval_and_save_problems(args):
if args.max_tests!=-1 and nb_tests > args.max_tests:
exit()

if os.path.isfile(args.output_path + '/{}.pkl'.format(real_index)):
exit()

print("Saving to {}".format(args.output_path + '/{}.pkl'.format(real_index)))

all_results, all_errors, all_sols = [], [], []
Expand Down Expand Up @@ -93,7 +96,7 @@ def eval_and_save_problems(args):
[-2] = compile error,
[-1] = runtime error
[False] = failed test case
[True] = passed test case")
[True] = passed test case
'''

save_results = {real_index : {'results': all_results, 'errors': all_errors, 'sols': all_sols}}
Expand Down

0 comments on commit 70f83e4

Please sign in to comment.