



"""simple docstring"""







from pathlib import Path

import fire



def      __UpperCAmelCase      (    __lowerCamelCase						,     __lowerCamelCase						,     __lowerCamelCase	)							->      int:
		lowercase__   :    Tuple				=			Path(__lowerCamelCase	)
		lowercase__   :    Union[str, Any]				=			Path(__lowerCamelCase	)
		dest_dir.mkdir(exist_ok=__lowerCamelCase	)
		for path in src_dir.iterdir():
				lowercase__   :    Tuple				=			[x.rstrip() for x in list(path.open().readlines()	)][:n]
				lowercase__   :    int				=			dest_dir.joinpath(path.name	)
				print(__lowerCamelCase	)
				dest_path.open('''w'''	).write('''\n'''.join(__lowerCamelCase	)	)


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




def   _SCREAMING_SNAKE_CASE	( SCREAMING_SNAKE_CASE       ):
  if not nums:  # Makes sure that the list is not empty
    raise ValueError('''List is empty'''       )

  A_      :				Optional[int]		     =					sum(SCREAMING_SNAKE_CASE       ) / len(SCREAMING_SNAKE_CASE       )  # Calculate the average
  return sum(abs(x - average       ) for x in nums       ) / len(SCREAMING_SNAKE_CASE       )


if __name__ == "__main__":
     import doctest

     doctest.testmod()




