original_docstring: Copy all data from the source stream into the destination stream in chunks
  	of size chunk_size
  	
  	:return: amount of bytes written
docstring: Copy all data from the source stream into the destination stream in chunks
  of size chunk_size
docstring_tokens: Copy all data from the source stream into the destination stream in chunks of size chunk_size
code: def stream_copy(source, destination, chunk_size=512*1024):
  	"""Copy all data from the source stream into the destination stream in chunks
  	of size chunk_size
  	
  	:return: amount of bytes written"""
  	br = 0
  	while True:
  		chunk = source.read(chunk_size)
  		destination.write(chunk)
  		br += len(chunk)
  		if len(chunk) < chunk_size:
  			break
  	# END reading output stream
  	return br
code_tokens: def stream_copy ( source , destination , chunk_size = 512 * 1024 ) : br = 0 while True : chunk = source . read ( chunk_size ) destination . write ( chunk ) br += len ( chunk ) if len ( chunk ) < chunk_size : break return br
short_docstring: Copy all data from the source stream into the destination stream in chunks
  of size chunk_size
short_docstring_tokens: Copy all data from the source stream into the destination stream in chunks of size chunk_size
comment: """Copy all data from the source stream into the destination stream in chunks
  	of size chunk_size
  	
  	:return: amount of bytes written"""$SEP$# END reading output stream