<commit_before># == Schema Information
#
# Table name: show_buyers
#
#  id         :integer          not null, primary key
#  licence    :string(255)
#  avatar     :string(255)
#  created_at :datetime         not null
#  updated_at :datetime         not null
#

class ShowBuyer < ActiveRecord::Base
  include Contacts::Xml
  
  default_scope { where(:account_id => Account.current_id) }

  attr_accessible :licence, :structure_attributes, :schedulings_attributes, :avatar, :remote_avatar_url
  has_one :structure, as: :structurable, dependent: :destroy
  accepts_nested_attributes_for :structure

  has_many :schedulings, order: "id ASC"
  accepts_nested_attributes_for :schedulings, :reject_if => :all_blank, :allow_destroy => true<commit_msg>show_buyer schedulings dependent destroy<commit_after># == Schema Information
#
# Table name: show_buyers
#
#  id         :integer          not null, primary key
#  licence    :string(255)
#  avatar     :string(255)
#  created_at :datetime         not null
#  updated_at :datetime         not null
#

class ShowBuyer < ActiveRecord::Base
  include Contacts::Xml
  
  default_scope { where(:account_id => Account.current_id) }

  attr_accessible :licence, :structure_attributes, :schedulings_attributes, :avatar, :remote_avatar_url
  has_one :structure, as: :structurable, dependent: :destroy
  accepts_nested_attributes_for :structure

  has_many :schedulings, dependent: :destroy, order: "id ASC"
  accepts_nested_attributes_for :schedulings, :reject_if => :all_blank, :allow_destroy => true
{'fraction_non_alphanumeric': 0.09440104166666667, 'fraction_numerical': 0.0078125, 'mean_word_length': 4.450354609929078, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '3915184', 'n_tokens_mistral': 494, 'n_tokens_neox': 477, 'n_words': 118}