<commit_before>class Item < ActiveRecord::Base
    belongs_to :user
    has_many :comments, as: :commentable
    has_many :comments
    has_attached_file :avatar, styles: { medium: "300x300>", thumb: "100x100>" }
    validates_attachment_content_type :avatar, content_type: ["image/jpeg", "image/gif", "image/png"]

    def self.search(search)
        where("name LIKE ?", "%#{search}%")
    end
end<commit_msg>implementing aws s3<commit_after>class Item < ActiveRecord::Base
    belongs_to :user
    has_many :comments, as: :commentable
    has_many :comments
    has_attached_file :avatar,
      styles: { medium: "300x300>", thumb: "100x100>" },:storage => :s3,
      :path => ":attachment/:id/:style.:extension",
      :bucket => "rorproj"
    validates_attachment_content_type :avatar, content_type: ["image/jpeg", "image/gif", "image/png"]

    def self.search(search)
        where("name LIKE ?", "%#{search}%")
    end
end
{'fraction_non_alphanumeric': 0.15053763440860216, 'fraction_numerical': 0.02795698924731183, 'mean_word_length': 4.115384615384615, 'pattern_counts': {'":': 1, '<': 5, '<?xml version=': 0, '>': 10, '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': '762348', 'n_tokens_mistral': 326, 'n_tokens_neox': 308, 'n_words': 69}