Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
soldni committed Oct 26, 2024
1 parent 38cadda commit c271273
Show file tree
Hide file tree
Showing 6 changed files with 895 additions and 24 deletions.
1 change: 0 additions & 1 deletion python/dolma/cli/deduper.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,6 @@ def run(cls, parsed_config: DeduperConfig):
# perform some path validation to make sure we don't call the mixer with invalid config
total_matching_documents = 0
for document in parsed_config.documents:

if not any(
fnmatch.fnmatch(dict_config["dedupe"]["document_dir"], part) for part in document.split(os.sep)
):
Expand Down
1 change: 0 additions & 1 deletion python/dolma/cli/mixer.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ def run(cls, parsed_config: MixerConfig):
# perform some path validation to make sure we don't call the mixer with invalid config
total_matching_documents = 0
for document in stream_config.documents:

current_matching_documents = sum(1 for _ in glob_path(document))
if current_matching_documents == 0:
# only raise a warning if no documents are found for a single path
Expand Down
Loading

0 comments on commit c271273

Please sign in to comment.