Skip to content

Commit

Permalink
filter languages
Browse files Browse the repository at this point in the history
  • Loading branch information
urialon committed Mar 3, 2022
1 parent a5ec32b commit 504aafb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Evaluation/eval_codex_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def call_codex(code_str, save_probs):
excluded_dirs = args.dirs + '-excluded'
pathlib.Path(excluded_dirs).mkdir(parents=True, exist_ok=True)
for language in dirs:
if language not in languages_to_run:
if language.split('/')[-1] not in languages_to_run:
continue
print('Language:', language)
files = glob.glob(os.path.join(language, '**/*'), recursive=True)
Expand Down

0 comments on commit 504aafb

Please sign in to comment.