
def    lowerCamelCase__				(				__lowerCAmelCase  :  str    ,							__lowerCAmelCase  :  str				):




			"""simple docstring"""


			lowerCAmelCase_						=	len(__lowerCAmelCase				)
			lowerCAmelCase_						=	[]
			for i in range(len(__lowerCAmelCase				) - pat_len + 1				):
						lowerCAmelCase_						=	True
						for j in range(__lowerCAmelCase				):
									if s[i + j] != pattern[j]:
												lowerCAmelCase_						=	False
												break
						if match_found:
									position.append(__lowerCAmelCase				)
			return position


if __name__ == "__main__":
			assert naive_pattern_search("ABCDEFG", "DE") == [3]
			print(naive_pattern_search("ABAAABCDBBABCDDEBCABC", "ABC"))





from pathlib import Path

import fire






def    lowerCamelCase__				(				__lowerCAmelCase  :  str    ,							__lowerCAmelCase  :  str    ,							__lowerCAmelCase  :  int				):




			"""simple docstring"""


			lowerCAmelCase_						=	Path(__lowerCAmelCase				)
			lowerCAmelCase_						=	Path(__lowerCAmelCase				)
			dest_dir.mkdir(exist_ok=__lowerCAmelCase				)
			for path in src_dir.iterdir():
						lowerCAmelCase_						=	[x.rstrip() for x in list(path.open().readlines()				)][:n]
						lowerCAmelCase_						=	dest_dir.joinpath(path.name				)
						print(__lowerCAmelCase				)
						dest_path.open("w"				).write("\n".join(__lowerCAmelCase				)				)


if __name__ == "__main__":
			fire.Fire(minify)



