<commit_before>class Item < ActiveRecord::Base
    belongs_to :user
    has_many :comments
      has_attached_file :avatar, styles: { medium: "300x300>", thumb: "100x100>" }, default_url: "/images/:style/missing.png"
  validates_attachment_content_type :avatar, content_type: /\Aimage\/.*\Z/

    def self.search(search)
        where("name LIKE ?", "%#{search}%")
        # if search
        #     find(:all, :conditions => ['name LIKE ?', "%#{search}%"])
        # else
        #     find(:all)
        # end
    end
end<commit_msg>minor search change<commit_after>class Item < ActiveRecord::Base
    belongs_to :user
    has_many :comments
      has_attached_file :avatar, styles: { medium: "300x300>", thumb: "100x100>" }, default_url: "/images/:style/missing.png"
  validates_attachment_content_type :avatar, content_type: /\Aimage\/.*\Z/

    def self.search(search)
        where("name LIKE ?", "%#{search}%")

    end
end
{'fraction_non_alphanumeric': 0.155005382131324, 'fraction_numerical': 0.02583423035522067, 'mean_word_length': 3.2465753424657535, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 8, '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': '3366411', 'n_tokens_mistral': 323, 'n_tokens_neox': 301, 'n_words': 65}