<commit_before># == Schema Information
#
# Table name: appliances
#
#  id                                  :integer          not null, primary key
#  appliance_set_id                    :integer          not null
#  appliance_type_id                   :integer          not null
#  created_at                          :datetime
#  updated_at                          :datetime
#  appliance_configuration_instance_id :integer          not null
#

class Appliance < ActiveRecord::Base

  belongs_to :appliance_set
  # This should also make sure the referenced entity exists; but we still should make a foreign key constraint in DB
  validates :appliance_set, presence: true

  belongs_to :appliance_type
  validates :appliance_type, presence: true

  belongs_to :appliance_configuration_instance
  validates :appliance_configuration_instance, presence: true

  has_many :http_mappings, dependent: :destroy

  has_and_belongs_to_many :virtual_machines

end<commit_msg>small code changes for model coding consistency ;)<commit_after># == Schema Information
#
# Table name: appliances
#
#  id                                  :integer          not null, primary key
#  appliance_set_id                    :integer          not null
#  appliance_type_id                   :integer          not null
#  created_at                          :datetime
#  updated_at                          :datetime
#  appliance_configuration_instance_id :integer          not null
#

class Appliance < ActiveRecord::Base

  belongs_to :appliance_set
  belongs_to :appliance_type
  belongs_to :appliance_configuration_instance

  validates_presence_of :appliance_set, :appliance_type, :appliance_configuration_instance

  has_many :http_mappings, dependent: :destroy
  has_and_belongs_to_many :virtual_machines

end
{'fraction_non_alphanumeric': 0.049162011173184354, 'fraction_numerical': 0.0, 'mean_word_length': 2.4376199616122842, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7184684', 'n_tokens_mistral': 497, 'n_tokens_neox': 468, 'n_words': 130}