




def 							_UpperCAmelCase  (UpperCamelCase_ : list      ,    UpperCamelCase_ : int = 0       ):
				'''simple docstring'''
				_lowerCAmelCase    :    Optional[int]										=      length or len(UpperCamelCase_       )
				_lowerCAmelCase    :    List[Any]										=      False
				for i in range(length - 1       ):
								if list_data[i] > list_data[i + 1]:
												_lowerCAmelCase					,    _lowerCAmelCase    :    Union[str, Any]										=      list_data[i + 1], list_data[i]
												_lowerCAmelCase    :    Optional[int]										=      True

				return list_data if not swapped else bubble_sort(UpperCamelCase_      ,    length - 1       )


if __name__ == "__main__":
	import doctest

	doctest.testmod()







import numpy as np




def 							_UpperCAmelCase  (UpperCamelCase_ : np.array       ):
				'''simple docstring'''
				return (2 / (1 + np.exp(-2 * vector       ))) - 1


if __name__ == "__main__":
	import doctest

	doctest.testmod()

