MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / expand_glob

Function expand_glob

tools/check_code_block_format.py:125–135  ·  view source on GitHub ↗
(files)

Source from the content-addressed store, hash-verified

123
124
125def expand_glob(files) -> list[Path]:
126 expanded = []
127 for file in files:
128 path = Path(file)
129 if path.is_dir():
130 expanded.extend(path.glob('**/*.py'))
131 expanded.extend(path.glob('**/*.cc'))
132 expanded.extend(path.glob('**/*.h'))
133 else:
134 expanded.append(path)
135 return expanded
136
137
138def format_code_block_with_suggestions(

Callers 1

mainFunction · 0.70

Calls 3

is_dirMethod · 0.45
extendMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected