8000 Agent update ablation code by nanjiangwill · Pull Request #108 · commit-0/commit0 · GitHub
[go: up one dir, main page]

Skip to content

Agent update ablation code #108

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix ruff format
  • Loading branch information
nanjiangwill committed Mar 29, 2025
commit 485edfd6305ff15657cbba9e05315fb38f1af00e
12 changes: 6 additions & 6 deletions agent/agent_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,9 +297,9 @@ def get_target_edit_files(
raise ValueError(
"topological_sort_files should not be longer than filtered_files"
)
assert len(topological_sort_files) == len(filtered_files), (
"all files should be included"
)
assert len(topological_sort_files) == len(
filtered_files
), "all files should be included"

# change to latest commit
local_repo.git.checkout(branch)
Expand Down Expand Up @@ -356,9 +356,9 @@ def get_target_edit_files_from_patch(
raise ValueError(
"topological_sort_files should not be longer than target_files_list"
)
assert len(topological_sort_files) == len(target_files_list), (
"all files should be included"
)
assert len(topological_sort_files) == len(
target_files_list
), "all files should be included"

topological_sort_files = [
file.replace(working_dir, "").lstrip("/") for file in topological_sort_files
Expand Down
0