mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 09:14:59 +00:00
copy
This commit is contained in:
parent
8c9536bcdd
commit
ed6d30c849
1 changed files with 1 additions and 4 deletions
|
@ -92,7 +92,7 @@ default output format of `git diff`:
|
||||||
```
|
```
|
||||||
|
|
||||||
Choosing such a familiar, popular output format means that GPT has
|
Choosing such a familiar, popular output format means that GPT has
|
||||||
seen *many* examples in its training dat.
|
seen *many* examples in its training data.
|
||||||
It's been trained to generate
|
It's been trained to generate
|
||||||
text that conforms to the unified diff syntax.
|
text that conforms to the unified diff syntax.
|
||||||
|
|
||||||
|
@ -196,7 +196,6 @@ Consider this slightly more complex change, which renames the variable `n` to
|
||||||
-def factorial(n):
|
-def factorial(n):
|
||||||
+def factorial(number):
|
+def factorial(number):
|
||||||
"compute factorial"
|
"compute factorial"
|
||||||
|
|
||||||
- if n == 0:
|
- if n == 0:
|
||||||
+ if number == 0:
|
+ if number == 0:
|
||||||
return 1
|
return 1
|
||||||
|
@ -214,14 +213,12 @@ but it is much easier to see two different coherent versions of the
|
||||||
@@ ... @@
|
@@ ... @@
|
||||||
-def factorial(n):
|
-def factorial(n):
|
||||||
- "compute factorial"
|
- "compute factorial"
|
||||||
-
|
|
||||||
- if n == 0:
|
- if n == 0:
|
||||||
- return 1
|
- return 1
|
||||||
- else:
|
- else:
|
||||||
- return n * factorial(n-1)
|
- return n * factorial(n-1)
|
||||||
+def factorial(number):
|
+def factorial(number):
|
||||||
+ "compute factorial"
|
+ "compute factorial"
|
||||||
+
|
|
||||||
+ if number == 0:
|
+ if number == 0:
|
||||||
+ return 1
|
+ return 1
|
||||||
+ else:
|
+ else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue