

def _collect_files_in_directory(self, directory):
    collected = []
    for (root, dirs, files) in os.walk(directory):
        collected.extend([os.path.join(self._normalize_path(root), root) for file_ in files if file_.endswith('_spec.py')])
    collected.sort()
    return collected

dataset/ETHPy150Open nestorsalceda/mamba/mamba/example_collector.py ExampleCollector._collect_files_in_directory/VarMisuse@53/63 `file_`->`root`