





'''simple docstring'''






from pathlib import Path

import fire







def 					_a						(       _lowerCamelCase    ,	_lowerCamelCase    ,	_lowerCamelCase ) ->				Any:



			"""simple docstring"""


			__snake_case					:      Tuple							      =     Path(lowerCamelCase_ )
			__snake_case					:      Optional[int]							      =     Path(lowerCamelCase_ )
			dest_dir.mkdir(exist_ok=lowerCamelCase_ )
			for path in src_dir.iterdir():
						__snake_case					:      Union[str, Any]							      =     [x.rstrip() for x in list(path.open().readlines() )][:n]
						__snake_case					:      Any							      =     dest_dir.joinpath(path.name )
						print(lowerCamelCase_ )
						dest_path.open("""w""" ).write("""\n""".join(lowerCamelCase_ ) )


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









'''simple docstring'''




from __future__ import annotations



def 		__A		(  lowerCamelCase_			,			lowerCamelCase_	):


		"""simple docstring"""



		if partitions <= 0:
				raise ValueError("""partitions must be a positive number!"""	)
		if partitions > number_of_bytes:
				raise ValueError("""partitions can not > number_of_bytes!"""	)
		SCREAMING_SNAKE_CASE :				int		=			number_of_bytes // partitions
		SCREAMING_SNAKE_CASE :				int		=			[]
		for i in range(lowerCamelCase_	):
				SCREAMING_SNAKE_CASE :				Optional[Any]		=			i * bytes_per_partition + 1
				SCREAMING_SNAKE_CASE :				Optional[int]		=			(
				    number_of_bytes if i == partitions - 1 else (i + 1) * bytes_per_partition
				)
				allocation_list.append(f'''{start_bytes}-{end_bytes}'''	)
		return allocation_list


if __name__ == "__main__":
							import doctest

							doctest.testmod()



