diff --git a/src/garbage_code.py b/src/garbage_code.py new file mode 100644 index 0000000..e0b3f4e --- /dev/null +++ b/src/garbage_code.py @@ -0,0 +1,9 @@ +x = 1343242 +for i in range(0, 342342): + print(i) + +while True: + print(1) + break + +print("Hello world") \ No newline at end of file diff --git a/src/generate_comment.py b/src/generate_comment.py index 9a6984e..5a8c359 100644 --- a/src/generate_comment.py +++ b/src/generate_comment.py @@ -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.'}" @@ -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: