Skip to content

Commit 763b61a

Browse files
committed
bug fix
1 parent 301382f commit 763b61a

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

lean_dojo_v2/lean_agent/database/dynamic_database.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ def trace_repository(
482482
if (
483483
total_theorems < 3 * BATCH_SIZE
484484
): # Should be enough theorems for train/val/test
485-
logger.info(f"Not enough theorems found in {url}")
485+
logger.info(f"Not enough theorems found in {repo.url}")
486486
return None
487487

488488
config = repo.get_config("lean-toolchain")

lean_dojo_v2/lean_dojo/data_extraction/trace.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -168,12 +168,12 @@ def _trace(repo: LeanGitRepo, build_deps: bool) -> None:
168168
packages_path = Path("lake-packages")
169169
build_path = Path("build")
170170

171+
shutil.copytree(
172+
Path(lean_prefix), str(packages_path / "lean4"), dirs_exist_ok=True
173+
)
171174

175+
# Modify dependency files to replace 'import all' with 'public import all'
172176
if build_deps:
173-
shutil.copytree(
174-
Path(lean_prefix), str(packages_path / "lean4"), dirs_exist_ok=True
175-
)
176-
# Modify dependency files to replace 'import all' with 'public import all'
177177
_modify_dependency_files(packages_path)
178178

179179
# Run ExtractData.lean to extract ASTs, tactic states, and premise information.
@@ -300,4 +300,4 @@ def trace(
300300
dst_dir.mkdir(parents=True)
301301
shutil.copytree(cached_path, dst_dir / cached_path.name, dirs_exist_ok=True)
302302

303-
return traced_repo
303+
return traced_repo

0 commit comments

Comments
 (0)