<commit_before>module ActionView
  module Helpers
    module AssetTagHelper

      ##
      # Displays a version of an upload and sets stored width and height attributes
      #
      # === Parameters
      #
      # [model (Model)] model instance
      # [mounted_as (Sym)] attribute to which uploader is mounted
      # [version (Sym)] version of the upload
      # [options (Hash)] optional options hash
      #
      # === Examples
      #
      # retina_image_tag(@user, :avatar, :small)
      #
      def retina_image_tag(model, mounted_as, version, options={})
        dimensions = model.retina_dimensions[mounted_as.to_sym][version.to_sym]
        options    = dimensions.merge(options)

        image_tag(model.send(mounted_as).url(version), options)
      end

    end
  end
end<commit_msg>Better readable code<commit_after>module ActionView
  module Helpers
    module AssetTagHelper

      ##
      # Displays a version of an upload and sets stored width and height attributes
      #
      # === Parameters
      #
      # [model (Model)] model instance
      # [mounted_to (Sym)] attribute to which uploader is mounted
      # [version (Sym)] version of the upload
      # [options (Hash)] optional options hash
      #
      # === Examples
      #
      # retina_image_tag(@user, :avatar, :small)
      #
      def retina_image_tag(model, mounted_to, version, options={})
        dimensions = model.retina_dimensions[mounted_to.to_sym][version.to_sym]
        options    = dimensions.merge(options)

        image_tag(model.send(mounted_to).url(version), options)
      end

    end
  end
end
{'fraction_non_alphanumeric': 0.09458618543870566, 'fraction_numerical': 0.0, 'mean_word_length': 2.5812917594654787, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5295494', 'n_tokens_mistral': 469, 'n_tokens_neox': 450, 'n_words': 125}