original_docstring: 
      Return the quickid hash for this handle.
      
docstring: Return the quickid hash for this handle.
docstring_tokens: Return the quickid hash for this handle .
code: def quickid_handle(handle, hashtype='md5', chunk_size=CHUNK_SIZE):
      '''
      Return the quickid hash for this handle.
      '''
      hasher = HASH_CLASSES[hashtype]()
      size = handle.seek(0, SEEK_END)
      handle.seek(0)
  
      if size <= 2 * chunk_size:
          hasher.update(handle.read())
      else:
          hasher.update(handle.read(chunk_size))
          handle.seek(-1 * chunk_size, SEEK_END)
          hasher.update(handle.read())
  
      output = FORMAT.format(
          size=size,
          hashtype=hashtype,
          chunk_size=chunk_size,
          hash=hasher.hexdigest(),
      )
      return output
code_tokens: def quickid_handle ( handle , hashtype = 'md5' , chunk_size = CHUNK_SIZE ) : hasher = HASH_CLASSES [ hashtype ] ( ) size = handle . seek ( 0 , SEEK_END ) handle . seek ( 0 ) if size <= 2 * chunk_size : hasher . update ( handle . read ( ) ) else : hasher . update ( handle . read ( chunk_size ) ) handle . seek ( - 1 * chunk_size , SEEK_END ) hasher . update ( handle . read ( ) ) output = FORMAT . format ( size = size , hashtype = hashtype , chunk_size = chunk_size , hash = hasher . hexdigest ( ) , ) return output
short_docstring: Return the quickid hash for this handle.
short_docstring_tokens: Return the quickid hash for this handle .
comment: '''
      Return the quickid hash for this handle.
      '''