


"""simple docstring"""


import os







def  __snake_case       (   )      ->		Optional[Any]:







		"""simple docstring"""





		A					       = os.path.dirname(os.path.realpath(UpperCamelCase__	)	)
		A					       = os.path.join(UpperCamelCase__ ,			'triangle.txt'	)

		with open(UpperCamelCase__	) as f:
				A					       = f.readlines()

		A					       = []
		for line in triangle:
				A					       = []
				for number in line.strip().split(' '	):
						numbers_from_line.append(int(UpperCamelCase__	)	)
				a.append(UpperCamelCase__	)

		for i in range(1 ,			len(UpperCamelCase__	)	):
				for j in range(len(a[i]	)	):
						A					       = a[i - 1][j] if j != len(a[i - 1]	) else 0
						A					       = a[i - 1][j - 1] if j > 0 else 0
						a[i][j] += max(UpperCamelCase__ ,			UpperCamelCase__	)
		return max(a[-1]	)


if __name__ == "__main__":
	print(solution())









"""simple docstring"""


from unittest.mock import Mock, patch

from file_transfer.send_file import send_file







@patch('socket.socket'	)
@patch('builtins.open'	)
def  __snake_case       (   UpperCamelCase__ ,			UpperCamelCase__	)      ->		Dict:







		"""simple docstring"""





		A					       = Mock()
		A					       = conn, Mock()
		A					       = iter([1, None]	)
		A					       = lambda UpperCamelCase__	: next(UpperCamelCase__	)

		# ===== invoke =====
		send_file(filename='mytext.txt' ,			testing=UpperCamelCase__	)

		# ===== 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()





