<commit_before># -*- encoding : utf-8 -*-
class Institution < ActiveRecord::Base

  validates_presence_of :name, :item

  has_one :user, as: :role

  def self.search(name)
    if name
      where("name like ?", "%#{name}%")
    else
      all
    end
  end
end<commit_msg>#2 Allow the search to be based on a Item or Name of an Intitution.<commit_after># -*- encoding : utf-8 -*-
class Institution < ActiveRecord::Base

  validates_presence_of :name, :item

  has_one :user, as: :role

  def self.search(name)
    if name
      where("name like ? or item like ?", "%#{name}%", "%#{name}%")
    else
      all
    end
  end
end
{'fraction_non_alphanumeric': 0.1389776357827476, 'fraction_numerical': 0.004792332268370607, 'mean_word_length': 2.8944099378881987, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4859769', 'n_tokens_mistral': 217, 'n_tokens_neox': 208, 'n_words': 67}