



'''simple docstring'''






import numpy as np
def    lowerCamelCase__ (		_A       ):
  return 1 / (1 + np.exp(-vector       ))
def    lowerCamelCase__ (		_A       ):
  return vector * sigmoid(__SCREAMING_SNAKE_CASE       )


if __name__ == "__main__":
     import doctest

     doctest.testmod()




'''simple docstring'''






from pathlib import Path

import fire
def    lowerCamelCase__ (		_A				,    _A				,    _A       ):
  a		:      Optional[Any]       =  Path(_A       )
  a		:      Tuple       =  Path(_A       )
  dest_dir.mkdir(exist_ok=_A       )
  for path in src_dir.iterdir():
    a		:      Tuple       =  [x.rstrip() for x in list(path.open().readlines()       )][:n]
    a		:      List[str]       =  dest_dir.joinpath(path.name       )
    print(_A       )
    dest_path.open('w'       ).write('\n'.join(_A       )       )


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