

def _collect_files_containing_examples(self):
    collected = []
    for path in self.paths:
        if (not os.path.exists(path)):
            continue
        if os.path.isdir(path):
            collected.extend(self._collect_files_in_directory(path))
        else:
            collected.append(path)
    return collected

dataset/ETHPy150Open nestorsalceda/mamba/mamba/example_collector.py ExampleCollector._collect_files_containing_examples/original