Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/garbage_code.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
x = 1343242
for i in range(0, 342342):
print(i)

while True:
print(1)
break

print("Hello world")
6 changes: 3 additions & 3 deletions src/generate_comment.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def get_feedback(filename: str, system_prompt: str, user_prompt: str) -> str:
{"role": "system", "content": system_prompt},
{"role": "user", "content": user_prompt},
],
temperature=0,
temperature=0.2
)
comment = response.choices[0].message.content
text = f"This is a LLM-generated comment for `{filename}`: \n{comment if comment else 'Tests passed. No feedback generated for testing purposes.'}"
Expand Down Expand Up @@ -66,8 +66,8 @@ def main(files_to_process: list):
local_solutions_dir = os.path.join(os.getcwd(), 'src')
os.makedirs(local_solutions_dir, exist_ok=True)
system_prompt = """
You are a senior software engineer looking to give feedback on every PR you see in this repo

You are a senior software engineer looking to give feedback on every PR you see in this repo.
Make sure to be as nit picky and annoying as possible!
"""

for filename in files_to_process:
Expand Down