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

class Service < ActiveRecord::Base
  has_many :releases
  has_many :service_instances, :through => :releases
  has_many :contracts
  has_many :clients, :through => :contracts<commit_msg>added some database constraints to service model<commit_after># == Schema Information
# Schema version: 20080814141021
#
# Table name: services
#
#  id         :integer         not null, primary key
#  name       :string(255)     
#  created_at :datetime        
#  updated_at :datetime        
#

class Service < ActiveRecord::Base
  has_many :releases, :dependent => :destroy
  has_many :service_instances, :through => :releases, :dependent => :destroy
  has_many :contracts, :dependent => :destroy
  has_many :clients, :through => :contracts
{'fraction_non_alphanumeric': 0.09887869520897044, 'fraction_numerical': 0.034658511722731905, 'mean_word_length': 3.3839285714285716, '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': '4293431', 'n_tokens_mistral': 319, 'n_tokens_neox': 286, 'n_words': 83}