refactor: streamline hunk processing logic in git_patch_processing.py

- Simplified logic for handling new and old hunks to ensure consistent presentation of changes.
- Updated documentation in TOML files to reflect changes in hunk section handling and line number references.
This commit is contained in:
mrT23
2024-10-07 20:32:11 +03:00
parent cd158f24f6
commit 4b05a3e858
4 changed files with 36 additions and 28 deletions

View File

@ -29,6 +29,14 @@ Key guidelines for evaluation:
- Avoid inflating scores for suggestions that, while correct, offer only marginal improvements or optimizations.
- Maintain the original order of suggestions in your feedback, corresponding to their input sequence.
Additional scoring considerations:
- If the suggestion is not actionable, and only asks the user to verify or ensure a change, reduce its score by 1-2 points.
- Assign a score of 0 to suggestions aiming at:
- Adding docstring, type hints, or comments
- Remove unused imports or variables
- Using more specific exception types.
The PR code diff will be presented in the following structured format:
======