File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
1
import os
2
2
import sys
3
3
import hydra
4
- import traceback
5
4
import multiprocessing
6
5
from datasets import load_dataset
7
6
from git import Repo
20
19
from commit0 .harness .get_pytest_ids import main as get_tests
21
20
from commit0 .harness .constants import RUN_AIDER_LOG_DIR , RepoInstance
22
21
from tqdm import tqdm
23
- from concurrent .futures import ThreadPoolExecutor , as_completed
24
22
25
23
26
24
class DirContext :
@@ -151,7 +149,9 @@ def main() -> None:
151
149
if len (filtered_dataset ) > 1 :
152
150
sys .stdout = open (os .devnull , "w" )
153
151
154
- with tqdm (total = len (filtered_dataset ), smoothing = 0 , desc = "Running Aider for repos" ) as pbar :
152
+ with tqdm (
153
+ total = len (filtered_dataset ), smoothing = 0 , desc = "Running Aider for repos"
154
+ ) as pbar :
155
155
with multiprocessing .Pool (processes = commit0_config .num_workers ) as pool :
156
156
results = []
157
157
@@ -160,7 +160,9 @@ def main() -> None:
160
160
result = pool .apply_async (
161
161
run_agent_for_repo ,
162
162
args = (commit0_config , agent_config , example ),
163
- callback = lambda _ : pbar .update (1 ) # Update progress bar on task completion
163
+ callback = lambda _ : pbar .update (
164
+ 1
165
+ ), # Update progress bar on task completion
164
166
)
165
167
results .append (result )
166
168
You can’t perform that action at this time.
0 commit comments