'''simple docstring'''


def       lowerCAmelCase					(		UpperCamelCase__				:   list[int]       ):


	"""simple docstring"""
	__UpperCAmelCase							=			[]
	if len(UpperCamelCase__       ) == 1:
		return [nums.copy()]
	for _ in range(len(UpperCamelCase__       )       ):
		__UpperCAmelCase							=			nums.pop(0       )
		__UpperCAmelCase							=			permute(UpperCamelCase__       )
		for perm in permutations:
			perm.append(UpperCamelCase__       )
		result.extend(UpperCamelCase__       )
		nums.append(UpperCamelCase__       )
	return result





def       lowerCAmelCase					(		UpperCamelCase__				:   List[str]       ):


	"""simple docstring"""

	def backtrack(UpperCamelCase__				:   str       ):
		if start == len(UpperCamelCase__       ) - 1:
			output.append(nums[:]       )
		else:
			for i in range(UpperCamelCase__    ,					len(UpperCamelCase__       )       ):
				__UpperCAmelCase				,			__UpperCAmelCase							=			nums[i], nums[start]
				backtrack(start + 1       )
				__UpperCAmelCase				,			__UpperCAmelCase							=			nums[i], nums[start]  # backtrack

	__UpperCAmelCase							=			[]
	backtrack(0       )
	return output


if __name__ == "__main__":
					import doctest

					# use res to print the data in permute2 function
					__lowerCAmelCase	:       Dict						  =	permutea([1, 2, 3])
					print(res)
					doctest.testmod()

'''simple docstring'''


from pathlib import Path

import fire





def       lowerCAmelCase					(		UpperCamelCase__				:   str    ,					UpperCamelCase__				:   str    ,					UpperCamelCase__				:   int       ):


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


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