Skip to content

Commit

Permalink
Change print
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanklut committed Mar 8, 2024
1 parent 19f9b39 commit 6493813
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datasets/preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,8 @@ def check_duplicates(self, input_paths: Sequence[Path]) -> None:
duplicate_warning = "Duplicates found in the following directories:\n"
for dir_path, count in count_per_dir.items():
duplicate_warning += f"Directory: {dir_path} Count: {duplicates_in_dir.get(dir_path, 0)}/{count}\n"
duplicate_warning += "Shared Duplicates:"
if dir_path in duplicates_makeup:
duplicate_warning += "Shared Duplicates:"
for other_dir, makeup_count in duplicates_makeup[dir_path].items():
duplicate_warning += f"\n\t{other_dir} Count: {makeup_count}/{count}"
duplicate_warning += "\n"
Expand Down

0 comments on commit 6493813

Please sign in to comment.