<commit_before>module Dota
  module API
    class Item
      include Utilities::Mapped

      attr_reader :id, :name

      def initialize(id)
        @id = id
        @internal_name = mapping[id][0]
        @name = mapping[id][1]
      end

      def image_url(type = :lg)
        # Possible values for type:
        # :lg - 85x64 PNG image
        # :eg - 27x20 PNG image
        if internal_name =~ /\Arecipe/
          "http://cdn.dota2.com/apps/dota2/images/items/recipe_#{type}.png"
        else
          "http://cdn.dota2.com/apps/dota2/images/items/#{internal_name}_#{type}.png"
        end
      end

      private

      attr_reader :internal_name
    end
  end
end<commit_msg>image recipe_eg.png doesnt exist<commit_after>module Dota
  module API
    class Item
      include Utilities::Mapped

      attr_reader :id, :name

      def initialize(id)
        @id = id
        @internal_name = mapping[id][0]
        @name = mapping[id][1]
      end

      def image_url(type = :lg)
        # Possible values for type:
        # :lg - 85x64 PNG image
        # :eg - 27x20 PNG image
        if internal_name =~ /\Arecipe/ and type != :eg
          "http://cdn.dota2.com/apps/dota2/images/items/recipe_#{type}.png"
        else
          "http://cdn.dota2.com/apps/dota2/images/items/#{internal_name}_#{type}.png"
        end
      end

      private

      attr_reader :internal_name
    end
  end
end
{'fraction_non_alphanumeric': 0.11197732104890148, 'fraction_numerical': 0.019844082211197732, 'mean_word_length': 1.887525562372188, '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': '617621', 'n_tokens_mistral': 496, 'n_tokens_neox': 466, 'n_words': 103}