Skip to content

Commit

Permalink
Update plot
Browse files Browse the repository at this point in the history
  • Loading branch information
Muennighoff committed Aug 15, 2023
1 parent c6a6720 commit c6a4919
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 34 deletions.
33 changes: 29 additions & 4 deletions evaluation/other/rename.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,32 @@
import os
import json

RENAME_MAP = {
"humanevalxexpgen": "humanevalexplainsynthesize",
"hexexpgenerate": "humanevalexplainsynthesize",
"hexexplaingen": "humanevalexplainsynthesize",
"hexexpdesc": "humanevalexplaindescribe",
"humanevalxexpdescribe": "humanevalexplaindescribe",
"humanevalxexpdesc": "humanevalexplaindescribe",
"hexexplaindesc": "humanevalexplaindescribe",
"hexexpdescribe": "humanevalexplaindescribe",
"hexexplaindescribe": "humanevalexplaindescribe",
"hexbugs": "humanevalfix",
"humanevalxbugs": "humanevalfix",
"humanevalxgenerate": "humanevalsynthesize",
"hexgenerate": "humanevalsynthesize",
}

DIR = "evaluation"


RENAME_MAP = {
"humaneval-x-bugs": "humanevalfix"
}
# Rename all file paths in the directory & subdirectories
for root, dirs, files in os.walk(DIR):
for file in files:
if file.endswith(".json") and any(x in file for x in RENAME_MAP):
# Rename file
for k, v in RENAME_MAP.items():
if k in file:
new_file_name = file.replace(k, v)
os.rename(os.path.join(root, file), os.path.join(root, new_file_name))
print(f"Renamed {file} to {new_file_name}")
break
Binary file modified visuals/humanevalpack.pdf
Binary file not shown.
Binary file modified visuals/main.pdf
Binary file not shown.
60 changes: 30 additions & 30 deletions visuals/visuals.drawio

Large diffs are not rendered by default.

0 comments on commit c6a4919

Please sign in to comment.