<commit_before>class Appliance < ActiveRecord::Base
  has_many :types

  validates :name, presence: true
  validates :abb, presence: true
  validates :preview, presence: true

  validates_uniqueness_of :name
  validates_uniqueness_of :abb

  has_attached_file :preview, :styles => { :thumb => "100x100>" }, :path => ':rails_root/public:url', :url => '/system/appliances/:id/:style/:filename'
end
<commit_msg>removed line that prevented appliances from saving<commit_after>class Appliance < ActiveRecord::Base
  has_many :types

  validates :name, presence: true
  validates :abb, presence: true
  #validates :preview, presence: true

  validates_uniqueness_of :name
  validates_uniqueness_of :abb

  has_attached_file :preview, :styles => { :thumb => "100x100>" }, :path => ':rails_root/public:url', :url => '/system/appliances/:id/:style/:filename'
end

{'fraction_non_alphanumeric': 0.12763466042154567, 'fraction_numerical': 0.01405152224824356, 'mean_word_length': 5.627906976744186, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, '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': '4505592', 'n_tokens_mistral': 293, 'n_tokens_neox': 278, 'n_words': 68}