



'''simple docstring'''




def        lowerCAmelCase_     (			_lowerCamelCase:     int ,   _lowerCamelCase:     int      ):
		if a < 0 or b < 0:
				raise ValueError("""the value of both inputs must be positive"""      )

		__SCREAMING_SNAKE_CASE :	Optional[Any]					 =	str(bin(_lowerCamelCase      )      )[2:]  # remove the leading "0b"
		__SCREAMING_SNAKE_CASE :	int					 =	str(bin(_lowerCamelCase      )      )[2:]  # remove the leading "0b"

		__SCREAMING_SNAKE_CASE :	str					 =	max(len(_lowerCamelCase      ) ,   len(_lowerCamelCase      )      )

		return "0b" + "".join(
		    str(int(char_a != char_b      )      )
		    for char_a, char_b in zip(a_binary.zfill(_lowerCamelCase      ) ,   b_binary.zfill(_lowerCamelCase      )      )      )


if __name__ == "__main__":
						import doctest

						doctest.testmod()




'''simple docstring'''




from unittest.mock import Mock, patch

from file_transfer.send_file import send_file


@patch("""socket.socket"""      )
@patch("""builtins.open"""      )
def        lowerCAmelCase_     (			_lowerCamelCase:     Dict ,   _lowerCamelCase:     List[Any]      ):
		# ===== initialization =====
		__SCREAMING_SNAKE_CASE :	Optional[int]					 =	Mock()
		__SCREAMING_SNAKE_CASE :	Optional[int]					 =	conn, Mock()
		__SCREAMING_SNAKE_CASE :	str					 =	iter([1, None]      )
		__SCREAMING_SNAKE_CASE :	Any					 =	lambda _lowerCamelCase      : next(_lowerCamelCase      )

		# ===== invoke =====
		send_file(filename="""mytext.txt""" ,   testing=_lowerCamelCase      )

		# ===== ensurance =====
		sock.assert_called_once()
		sock.return_value.bind.assert_called_once()
		sock.return_value.listen.assert_called_once()
		sock.return_value.accept.assert_called_once()
		conn.recv.assert_called_once()

		file.return_value.__enter__.assert_called_once()
		file.return_value.__enter__.return_value.read.assert_called()

		conn.send.assert_called_once()
		conn.close.assert_called_once()
		sock.return_value.shutdown.assert_called_once()
		sock.return_value.close.assert_called_once()