<commit_before>module Fog
  module Storage
    class AWS
      class Real

        # Get an expiring object url from S3
        #
        # ==== Parameters
        # * bucket_name<~String> - Name of bucket containing object
        # * object_name<~String> - Name of object to get expiring url for
        # * expires<~Time> - An expiry time for this url
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~String> - url for object
        #
        # ==== See Also
        # http://docs.amazonwebservices.com/AmazonS3/latest/dev/S3_QSAuth.html

        def get_object_url(bucket_name, object_name, expires)
          Formatador.display_line("[yellow][WARN] Fog::Storage::AWS => ##{get_object_url} is deprecated, use ##{get_object_https_url} instead[/] [light_black](#{caller.first})[/]")
          get_object_https_url(bucket_name, object_name, expires)
        end

      end

      class Mock # :nodoc:all

        def get_object_url(bucket_name, object_name, expires)
          Formatador.display_line("[yellow][WARN] Fog::Storage::AWS => ##{get_object_url} is deprecated, use ##{get_object_https_url} instead[/] [light_black](#{caller.first})[/]")
          get_object_https_url(bucket_name, object_name, expires)
        end

      end
    end
  end
end
<commit_msg>Fix deprecation messages.<commit_after>module Fog
  module Storage
    class AWS
      class Real

        # Get an expiring object url from S3
        #
        # ==== Parameters
        # * bucket_name<~String> - Name of bucket containing object
        # * object_name<~String> - Name of object to get expiring url for
        # * expires<~Time> - An expiry time for this url
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~String> - url for object
        #
        # ==== See Also
        # http://docs.amazonwebservices.com/AmazonS3/latest/dev/S3_QSAuth.html

        def get_object_url(bucket_name, object_name, expires)
          Formatador.display_line("[yellow][WARN] Fog::Storage::AWS => #get_object_url is deprecated, use #get_object_https_url instead[/] [light_black](#{caller.first})[/]")
          get_object_https_url(bucket_name, object_name, expires)
        end

      end

      class Mock # :nodoc:all

        def get_object_url(bucket_name, object_name, expires)
          Formatador.display_line("[yellow][WARN] Fog::Storage::AWS => #get_object_url is deprecated, use #get_object_https_url instead[/] [light_black](#{caller.first})[/]")
          get_object_https_url(bucket_name, object_name, expires)
        end

      end
    end
  end
end

{'fraction_non_alphanumeric': 0.11766945925361767, 'fraction_numerical': 0.002284843869002285, 'mean_word_length': 2.6486111111111112, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5442644', 'n_tokens_mistral': 843, 'n_tokens_neox': 803, 'n_words': 180}