Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Chan <[email protected]>
  • Loading branch information
arthurscchan committed Dec 3, 2024
1 parent 721bcb5 commit 47cbbfc
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions llm_toolkit/prompt_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -1070,8 +1070,8 @@ def __init__(self,
self.error_str = '\n'.join(errors)

# Load templates.
self.template_file = self._find_template(template_dir,
'jvm_requirement_error_fixing.txt')
self.template_file = self._find_template(
template_dir, 'jvm_requirement_error_fixing.txt')

def _find_template(self, template_dir: str, template_name: str) -> str:
"""Finds template file based on |template_dir|."""
Expand Down Expand Up @@ -1106,7 +1106,7 @@ def build(self,

# Add the generated harness and error string to prompt
prompt_text = prompt_text.replace('{GENERATED_HARNESS}',
self.generated_harness)
self.generated_harness)
prompt_text = prompt_text.replace('{ERRORS}', self.error_str)

self._prompt.add_priming(prompt_text)
Expand Down Expand Up @@ -1595,4 +1595,3 @@ def post_process_generated_code(self, generated_code: str) -> str:
generated_code = generated_code.replace(
'extern "C" int LLVMFuzzerTestOneInput', 'int LLVMFuzzerTestOneInput')
return generated_code

0 comments on commit 47cbbfc

Please sign in to comment.