mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-24 22:28:10 +09:00
🔖 Checkpoint: Edit /workspaces/claude-code-flow/benchmark/src/swarm_benchmark/swe_bench/official_integration.py
This commit is contained in:
1 parent
f4a6892fb6
commit
7a3b9102ec
3 files changed
+31
No files matched your search
@@ -0,0 +1 @@
|
||||
{"branch": "checkpoint/pre-edit-20250807-145954", "file": "/workspaces/claude-code-flow/benchmark/src/swarm_benchmark/swe_bench/official_integration.py", "timestamp": "2025-08-07T14:59:54Z", "type": "pre-edit", "original_branch": "swe-bench"}
|
||||
@@ -0,0 +1 @@
|
||||
{"tag": "checkpoint-20250807-145956", "file": "/workspaces/claude-code-flow/benchmark/src/swarm_benchmark/swe_bench/official_integration.py", "timestamp": "2025-08-07T14:59:56Z", "type": "post-edit", "branch": "swe-bench", "diff_summary": " .claude-flow/metrics/system-metrics.json | 48 ++++++++++++++++++++++ astropy_fix | 0 benchmark/.claude-flow/metrics/performance.json | 2 +- benchmark/.claude-flow/metrics/task-metrics.json | 6 +-- benchmark/.claude/checkpoints/1754578783.json | 1 + benchmark/.claude/checkpoints/1754578785.json | 1 + .../swe_bench/official_integration.py | 4 ++ 7 files changed, 58 insertions(+), 4 deletions(-) "}
|
||||
@@ -304,6 +304,35 @@ Return ONLY the git diff patch in proper format."""
|
||||
print(f" ⚠️ No patch found in content")
|
||||
|
||||
return result
|
||||
|
||||
def _find_generated_patch_files(self, instance_id: str) -> str:
|
||||
"""Look for generated patch files in the working directory."""
|
||||
import glob
|
||||
|
||||
# Look for patch files that might have been created
|
||||
potential_patterns = [
|
||||
f"*{instance_id}*.patch",
|
||||
f"*{instance_id}*.diff",
|
||||
"*.patch",
|
||||
"*.diff",
|
||||
f"astropy_fix/*.patch", # Check the cloned repo directory
|
||||
f"astropy_fix/*.diff"
|
||||
]
|
||||
|
||||
for pattern in potential_patterns:
|
||||
files = glob.glob(pattern)
|
||||
if files:
|
||||
# Read the first matching file
|
||||
try:
|
||||
with open(files[0], 'r') as f:
|
||||
content = f.read()
|
||||
if 'diff' in content or '---' in content or '+++' in content:
|
||||
print(f" ✅ Found patch file: {files[0]}")
|
||||
return content
|
||||
except Exception as e:
|
||||
print(f" ⚠️ Error reading patch file {files[0]}: {e}")
|
||||
|
||||
return ""
|
||||
|
||||
async def run_evaluation(
|
||||
self,
|
||||
|
||||
Reference in new issue
Block a user