






"""simple docstring"""






from pathlib import Path

import fire



def  __lowerCamelCase					(					lowerCAmelCase__       ,lowerCAmelCase__       ,lowerCAmelCase__				):
				A__							 =       Path(lowerCAmelCase__				)
				A__							 =       Path(lowerCAmelCase__				)
				dest_dir.mkdir(exist_ok=lowerCAmelCase__				)
				for path in src_dir.iterdir():
								A__							 =       [x.rstrip() for x in list(path.open().readlines()				)][:n]
								A__							 =       dest_dir.joinpath(path.name				)
								print(lowerCAmelCase__				)
								dest_path.open('w'				).write('\n'.join(lowerCAmelCase__				)				)


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










"""simple docstring"""






import numpy as np



def  __lowerCamelCase					(					lowerCAmelCase__				):
				return 1 / (1 + np.exp(-vector				))



def  __lowerCamelCase					(					lowerCAmelCase__				):
				return vector * sigmoid(lowerCAmelCase__				)


if __name__ == "__main__":
					import doctest

					doctest.testmod()


