From 5a9446aa24cf5315c66bdd1c5ef3c281bb505822 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Sat, 13 May 2023 10:17:44 -0700 Subject: [PATCH] copy --- examples/semantic-search-replace.md | 43 ++--------------------------- 1 file changed, 3 insertions(+), 40 deletions(-) diff --git a/examples/semantic-search-replace.md b/examples/semantic-search-replace.md index c78eb06c4..d6f208c5a 100644 --- a/examples/semantic-search-replace.md +++ b/examples/semantic-search-replace.md @@ -1,8 +1,11 @@ # Semantic search & replace code with aider and gpt-4 > The user asks aider to modify a series of function calls. +> > Notice that it isn't replacing exact strings. > Aider deals with various formatting and semantic differences in the calls that it is updating. +> +> Some edits were elided from this transcript for brevity. --- @@ -19,15 +22,6 @@ aider/coder.py >>>>>>> UPDATED ``` -```python -aider/coder.py -<<<<<<< ORIGINAL - self.console.print("[red]No suitable git repo, will not automatically commit edits.") -======= - self.io.tool_error("No suitable git repo, will not automatically commit edits.") ->>>>>>> UPDATED -``` - ```python aider/coder.py <<<<<<< ORIGINAL @@ -37,33 +31,6 @@ aider/coder.py >>>>>>> UPDATED ``` -```python -aider/coder.py -<<<<<<< ORIGINAL - self.console.print("[red]Files are in different git repos.") -======= - self.io.tool_error("Files are in different git repos.") ->>>>>>> UPDATED -``` - -```python -aider/coder.py -<<<<<<< ORIGINAL - self.console.print("[red]Skipped adding new files to the git repo.") -======= - self.io.tool_error("Skipped adding new files to the git repo.") ->>>>>>> UPDATED -``` - -```python -aider/coder.py -<<<<<<< ORIGINAL - self.console.print("[red]Warning: no changes found in tracked files.") -======= - self.io.tool_error("Warning: no changes found in tracked files.") ->>>>>>> UPDATED -``` - ```python aider/coder.py <<<<<<< ORIGINAL @@ -77,10 +44,6 @@ aider/coder.py Please note that I couldn't find the `self.io.tool_error()` method in the provided code. You may need to create this method in the appropriate class or provide the correct method name to replace the `self.console.print()` calls. -*Applied edit to aider/coder.py* -*Applied edit to aider/coder.py* -*Applied edit to aider/coder.py* -*Applied edit to aider/coder.py* *Applied edit to aider/coder.py* *Applied edit to aider/coder.py* *Applied edit to aider/coder.py*