Skip to content

Commit

Permalink
fix: logs in needle_annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
ganler committed Apr 21, 2024
1 parent 082b30c commit 6d92053
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/curate/needle_annotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def main(
# a set of inference task to run; each item is a tuple of {repo, name, prompt}
tasks = []
for lang, repos in lists.items():
print(f"🔥 Selecting needle functions for {lang}")
print(f"🔥 Collecting unannotated needle functions for {lang}")
for repo in tqdm(repos):
if not repo.get("dependency"):
print(
Expand Down Expand Up @@ -110,6 +110,7 @@ def get_code(global_start_line, global_end_line):
}
)

print(f"🔥 {len(tasks)} needle functions to be annotated in total")
client = openai.Client()
with open(output_desc_path, "+a") as f_out:
for task in tqdm(tasks):
Expand Down

0 comments on commit 6d92053

Please sign in to comment.