<commit_before>class Customer < ActiveRecord::Base
  belongs_to    :company
  has_many      :projects, :order => "name", :dependent => :destroy
  has_many      :work_logs
  has_many      :activities, :dependent => :destroy
  has_many      :project_files

  validates_length_of           :name,  :maximum=>200
  validates_presence_of         :name

  validates_presence_of         :company_id

  has_one :binary
  belongs_to :binary

  after_destroy { |r|
    File.delete(r.logo_path) rescue begin end
  }

  def path
    File.join("#{RAILS_ROOT}", 'store', 'logos', self.company_id.to_s)
  end
<commit_msg>[ClockingIT @ Remove old unused :activities relation]<commit_after>class Customer < ActiveRecord::Base
  belongs_to    :company
  has_many      :projects, :order => "name", :dependent => :destroy
  has_many      :work_logs
  has_many      :project_files

  validates_length_of           :name,  :maximum=>200
  validates_presence_of         :name

  validates_presence_of         :company_id

  has_one :binary
  belongs_to :binary

  after_destroy { |r|
    File.delete(r.logo_path) rescue begin end
  }

  def path
    File.join("#{RAILS_ROOT}", 'store', 'logos', self.company_id.to_s)
  end

{'fraction_non_alphanumeric': 0.1, 'fraction_numerical': 0.005, 'mean_word_length': 3.2140350877192985, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 10, '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': '2093318', 'n_tokens_mistral': 413, 'n_tokens_neox': 399, 'n_words': 87}