Commit graph

179 commits

Author SHA1 Message Date
Paul Gauthier (aider)
e91a580540 Aider wrote 29% of the code in this release (157/547 lines). 2024-07-16 15:41:54 +01:00
Paul Gauthier
b18dbf4772 renamed hf-embed -> help 2024-07-16 11:03:01 +01:00
Paul Gauthier
4fbe3d295a added [playwright] extra 2024-07-14 19:34:48 +01:00
Paul Gauthier
76dad84285 added [browser] extra; refac the pip install utils 2024-07-14 17:22:17 +01:00
Paul Gauthier
bafa8ab71c refactor reqs into requirements/ 2024-07-13 16:36:41 +01:00
Paul Gauthier
ea89ca6eb5 hf -> hf-embed 2024-07-10 17:26:56 +01:00
Paul Gauthier
4e07710d4e added aider[hf] 2024-07-10 15:40:40 +01:00
Paul Gauthier
0f8a17e6af Added Aider's contribution percentage to the release notes. 2024-07-07 13:23:30 -03:00
Paul Gauthier (aider)
365652b899 Accumulated lines written by authors with "(aider)" in their name and printed the percentage of lines edited by Aider in this release. 2024-07-07 13:22:21 -03:00
Paul Gauthier
ebd41533d1 Improved the formatting of the grand total output in the blame script. 2024-07-07 13:22:20 -03:00
Paul Gauthier (aider)
a619318dfe Added percentage contribution for each author to the blame report. 2024-07-07 13:17:19 -03:00
Paul Gauthier (aider)
0153a18bff Added grand total line count summary across all Python files. 2024-07-07 13:17:00 -03:00
Paul Gauthier (aider)
1a9adca83c Implemented script to get commit author line counts for all Python files in the repository. 2024-07-07 13:16:21 -03:00
Paul Gauthier
238b8d018a Added support for counting lines changed per author for a specified file since a given tag. 2024-07-07 13:16:19 -03:00
Paul Gauthier (aider)
1f57e24b47 Implemented the get_commit_authors function to retrieve the authors for each commit. 2024-07-07 13:10:33 -03:00
Paul Gauthier
e8a5af089f Implemented a function to get all commit hashes since a specified tag and added a function to get the commit authors. 2024-07-07 13:10:31 -03:00
Paul Gauthier (aider)
d5de256796 Added command-line argument support to get commit hashes since a specified tag. 2024-07-07 13:05:21 -03:00
Paul Gauthier (aider)
f39fc5faa3 Implemented the get_all_commit_hashes_since_tag function in the scripts/blame.py file. 2024-07-07 13:05:01 -03:00
Paul Gauthier
abe779daa9 Removed unused imports and functions from the blame.py script. 2024-07-07 13:04:59 -03:00
Paul Gauthier
18c272b5d3 Added all litellm API_KEYS to docs 2024-07-07 11:29:05 -03:00
Paul Gauthier
f8b000981b updated upd docs script 2024-07-07 07:16:15 -03:00
Paul Gauthier
2a506d4d15 update jekyll to aider/website/ 2024-07-05 13:30:18 -03:00
Paul Gauthier
6c92dedac1 updated cogs to aider/website/ 2024-07-05 10:13:54 -03:00
Paul Gauthier
499057c345 copy 2024-07-03 21:42:12 -03:00
Paul Gauthier
0704810d31 use new docs paths 2024-06-27 10:11:29 -07:00
Paul Gauthier
2cb4c0d5ab Updated .env docs 2024-06-18 12:57:19 -07:00
Paul Gauthier
5c87008bd0 Updated HISTORY 2024-06-16 12:16:19 -07:00
Paul Gauthier
3532bd7758 use cog to include get-started in readme 2024-06-11 18:51:36 -07:00
Paul Gauthier
f760eacfd6 fixed link 2024-06-06 15:25:23 -07:00
Paul Gauthier
30f4a905c1 renamed config/options and get_md_help() 2024-06-06 14:00:14 -07:00
Paul Gauthier
2d62e3fb1f add sample aider.conf.yml 2024-06-06 12:40:25 -07:00
Paul Gauthier
0e5342fdb8 copy 2024-06-06 11:01:27 -07:00
Paul Gauthier
0d9150c77b coq for languages.md 2024-06-05 20:24:19 -07:00
Paul Gauthier
e3cc69d0c8 coq for in-chat commands 2024-06-05 20:10:48 -07:00
Paul Gauthier
47346af823 aider: Set ARG based on the presence of a command line argument.
# Aider chat conversation:

USER: if no cmd line arg, set ARG=-r otherwise set ARG=$1

ASSISTANT: Here is the required change to set `ARG` based on the presence of a command line argument:

scripts/update-docs.sh
```bash
<<<<<<< SEARCH
# exit when any command fails
set -e

cog $ARG website/index.md
cog $ARG website/docs/usage.md
=======
# exit when any command fails
set -e

if [ -z "$1" ]; then
  ARG=-r
else
  ARG=$1
fi

cog $ARG website/index.md
cog $ARG website/docs/usage.md
>>>>>>> REPLACE
```
2024-06-05 19:57:19 -07:00
Paul Gauthier
2c50455000 Updated cog commands in update-docs.sh script to use a variable for arguments. 2024-06-05 19:57:18 -07:00
Paul Gauthier
5ea4e506a6 cog to update index.md 2024-06-05 19:47:08 -07:00
Paul Gauthier
6f9e0ce37f cog to update usage.md 2024-06-05 19:43:24 -07:00
Paul Gauthier
a37f8f5e95 removed source:, added repository: 2024-06-05 15:04:17 -07:00
Paul Gauthier
af84441715 launch into bash 2024-06-05 10:30:02 -07:00
Paul Gauthier
46b953ebeb working local build of gh pages 2024-06-05 09:23:28 -07:00
Paul Gauthier
9aee429657 copy 2024-05-24 10:28:30 -07:00
Paul Gauthier
f2702cd685 ignore whitespace 2024-05-24 10:15:46 -07:00
Paul Gauthier
de1c4cfb9e added blog post 2024-05-24 09:59:59 -07:00
Paul Gauthier
d231ff0905 aider: Update show_commit_stats to correctly extract the number of insertions and deletions from the lines 1 file changed, 20 insertions(+), 1 deletion(-).
# Aider chat conversation:

USER: you need to parse these lines `1 file changed, 20 insertions(+), 1 deletion(-)`

ASSISTANT: To parse the lines `1 file changed, 20 insertions(+), 1 deletion(-)`, we need to update the `show_commit_stats` function to correctly extract the number of insertions and deletions from these lines.

Here are the *SEARCH/REPLACE* blocks:

scripts/blame.py
```python
<<<<<<< SEARCH
            if "insertion" in line:
                added_lines += int(line.split()[0])
            if "deletion" in line:
                deleted_lines += int(line.split()[0])
=======
            if "insertion" in line or "insertion(+)" in line:
                added_lines += int(line.split()[line.split().index("insertion(+)") - 1])
            if "deletion" in line or "deletion(-)" in line:
                deleted_lines += int(line.split()[line.split().index("deletion(-)") - 1])
>>>>>>> REPLACE
```
2024-05-24 09:46:34 -07:00
Paul Gauthier
aa75d54d4e Add debug statement to show each line processed in show_commit_stats function. 2024-05-24 09:46:32 -07:00
Paul Gauthier
fb717b8786 aider: Refactored show_commit_stats to print out lines added and deleted for each commit and report totals.
# Aider chat conversation:

USER: do the todp

ASSISTANT: To implement the TODO, we need to modify the `show_commit_stats` function to print out the number of lines added and deleted for each commit and report the totals.

Here are the *SEARCH/REPLACE* blocks:

scripts/blame.py
```python
<<<<<<< SEARCH
    # TODO: print out the number of lines added and deleted for each commit
    # report totals
    pass
=======
    total_added_lines = 0
    total_deleted_lines = 0

    for commit in commits:
        result = subprocess.run(
            ["git", "show", "--stat", "--oneline", commit],
            capture_output=True,
            text=True,
            check=True
        )

        added_lines = 0
        deleted_lines = 0
        for line in result.stdout.splitlines():
            if "insertion" in line:
                added_lines += int(line.split()[0])
            if "deletion" in line:
                deleted_lines += int(line.split()[0])

        total_added_lines += added_lines
        total_deleted_lines += deleted_lines

        print(f"Commit {commit}: +{added_lines} -{deleted_lines}")

    print(f"Total: +{total_added_lines} -{total_deleted_lines}")
>>>>>>> REPLACE
```
2024-05-24 09:43:33 -07:00
Paul Gauthier
a4694511a0 Updated get_lines_with_commit_hash to set verbose parameter to False, added show_commit_stats function, and called show_commit_stats in process_fnames. 2024-05-24 09:43:31 -07:00
Paul Gauthier
26210cfe6b aider: Import imgcat and display the image using the appropriate function call.
# Aider chat conversation:

USER: import imgcat and show it that way

ASSISTANT: To import `imgcat` and use it to display the image, we need to:

1. Import `imgcat` at the beginning of the script.
2. Replace the `subprocess.run(['imgcat', 'aider_plot.png'])` line with the appropriate `imgcat` function call.

Here are the *SEARCH/REPLACE* blocks:

scripts/blame.py
```python
<<<<<<< SEARCH
from aider.dump import dump
=======
from aider.dump import dump
from imgcat import imgcat
>>>>>>> REPLACE
```

scripts/blame.py
```python
<<<<<<< SEARCH
    subprocess.run(['imgcat', 'aider_plot.png'])
=======
    with open('aider_plot.png', 'rb') as f:
        imgcat(f.read())
>>>>>>> REPLACE
```
2024-05-24 09:36:26 -07:00
Paul Gauthier
46baf0cc18 aider: Save the plot as a PNG file and display it using imgcat.
# Aider chat conversation:

USER: save it as a png and imgcat it

ASSISTANT: To save the plot as a PNG file and display it using `imgcat`, we need to:

1. Save the plot as a PNG file.
2. Use `imgcat` to display the image.

Here are the *SEARCH/REPLACE* blocks:

scripts/blame.py
```python
<<<<<<< SEARCH
    plt.show()
=======
    plt.savefig('aider_plot.png')
    subprocess.run(['imgcat', 'aider_plot.png'])
>>>>>>> REPLACE
```
2024-05-24 09:36:14 -07:00