You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: homebrew_user.rb
    path of file: ./repos/chef/lib/chef/mixin
    
    the code of the file until where you have to start completion: #
# Author:: Joshua Timberman (<joshua@chef.io>)
# Author:: Graeme Mathieson (<mathie@woss.name>)
#
# Copyright:: Copyright (c) Chef Software Inc.
# Copyright:: Copyright (c) Chef Software Inc.
#
# 
    
      def calculate_owner
        brew_path = homebrew_bin_path
        if brew_path
          # By default, this follows symlinks which is what we want
          owner = ::File.stat(brew_path).uid
        else
          raise Chef::Exceptions::CannotDetermineHomebrewOwner,
            'Couldn\'t find the "brew" executable anywhere on the path.'
        end