parameters: (file_path)
return_statement: return hash_result
docstring: Quickly compute a hash (md5) of a file
      :param file_path:   The file to hash
      :return:    The md5 hash result (hex string)
docstring_summary: Quickly compute a hash (md5) of a file
      :param file_path:   The file to hash
      :return:    The md5 hash result (hex string)
docstring_tokens: Quickly compute a hash ( md5 ) of a file : param file_path : The file to hash : return : The md5 hash result ( hex string )
function: def calculate_file_hash(file_path):
      """
      Quickly compute a hash (md5) of a file
      :param file_path:   The file to hash
      :return:    The md5 hash result (hex string)
      """
      with open(file_path) as file_to_hash:
          file_content = file_to_hash.read()
      digest = hashlib.md5()
      digest.update(file_content.encode('utf-8'))
      hash_result = digest.hexdigest()
      return hash_result
function_tokens: def calculate_file_hash ( file_path ) : with open ( file_path ) as file_to_hash : file_content = file_to_hash . read ( ) digest = hashlib . md5 ( ) digest . update ( file_content . encode ( 'utf-8' ) ) hash_result = digest . hexdigest ( ) return hash_result